mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Changelog. Fixed a few qualities.
This commit is contained in:
parent
7c8242b5b1
commit
9ad5b0f6b7
@ -31,6 +31,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
- Overhauled clouds for more verticality and performance
|
- Overhauled clouds for more verticality and performance
|
||||||
- New tooltip for items with stats comparison
|
- New tooltip for items with stats comparison
|
||||||
- Improved bow feedback, added arrow particles
|
- Improved bow feedback, added arrow particles
|
||||||
|
- Retiered most sceptres and staves
|
||||||
|
- Loot tables can now recursively reference loot tables
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
|
@ -13,6 +13,6 @@ ItemDef(
|
|||||||
crit_mult: 1.7326007,
|
crit_mult: 1.7326007,
|
||||||
)),
|
)),
|
||||||
)),
|
)),
|
||||||
quality: Common,
|
quality: Moderate,
|
||||||
tags: [],
|
tags: [],
|
||||||
)
|
)
|
@ -13,6 +13,6 @@ ItemDef(
|
|||||||
crit_mult: 1.4444444,
|
crit_mult: 1.4444444,
|
||||||
)),
|
)),
|
||||||
)),
|
)),
|
||||||
quality: Moderate,
|
quality: Low,
|
||||||
tags: [],
|
tags: [],
|
||||||
)
|
)
|
@ -13,6 +13,6 @@ ItemDef(
|
|||||||
crit_mult: 1.4469842,
|
crit_mult: 1.4469842,
|
||||||
)),
|
)),
|
||||||
)),
|
)),
|
||||||
quality: Epic,
|
quality: Low,
|
||||||
tags: [],
|
tags: [],
|
||||||
)
|
)
|
@ -13,6 +13,6 @@ ItemDef(
|
|||||||
crit_mult: 1.6349206,
|
crit_mult: 1.6349206,
|
||||||
)),
|
)),
|
||||||
)),
|
)),
|
||||||
quality: Common,
|
quality: Low,
|
||||||
tags: [],
|
tags: [],
|
||||||
)
|
)
|
@ -13,6 +13,6 @@ ItemDef(
|
|||||||
crit_mult: 1.4571428,
|
crit_mult: 1.4571428,
|
||||||
)),
|
)),
|
||||||
)),
|
)),
|
||||||
quality: Moderate,
|
quality: Low,
|
||||||
tags: [],
|
tags: [],
|
||||||
)
|
)
|
@ -13,6 +13,6 @@ ItemDef(
|
|||||||
crit_mult: 1.5142857,
|
crit_mult: 1.5142857,
|
||||||
)),
|
)),
|
||||||
)),
|
)),
|
||||||
quality: Moderate,
|
quality: Common,
|
||||||
tags: [],
|
tags: [],
|
||||||
)
|
)
|
@ -13,6 +13,6 @@ ItemDef(
|
|||||||
crit_mult: 1.4017857,
|
crit_mult: 1.4017857,
|
||||||
)),
|
)),
|
||||||
)),
|
)),
|
||||||
quality: High,
|
quality: Moderate,
|
||||||
tags: [],
|
tags: [],
|
||||||
)
|
)
|
@ -13,6 +13,6 @@ ItemDef(
|
|||||||
crit_mult: 1.445269,
|
crit_mult: 1.445269,
|
||||||
)),
|
)),
|
||||||
)),
|
)),
|
||||||
quality: High,
|
quality: Moderate,
|
||||||
tags: [],
|
tags: [],
|
||||||
)
|
)
|
@ -13,6 +13,6 @@ ItemDef(
|
|||||||
crit_mult: 1.4114286,
|
crit_mult: 1.4114286,
|
||||||
)),
|
)),
|
||||||
)),
|
)),
|
||||||
quality: High,
|
quality: Moderate,
|
||||||
tags: [],
|
tags: [],
|
||||||
)
|
)
|
@ -13,6 +13,6 @@ ItemDef(
|
|||||||
crit_mult: 1.481203,
|
crit_mult: 1.481203,
|
||||||
)),
|
)),
|
||||||
)),
|
)),
|
||||||
quality: Epic,
|
quality: Moderate,
|
||||||
tags: [],
|
tags: [],
|
||||||
)
|
)
|
@ -114,7 +114,10 @@ impl LootSpec {
|
|||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
use crate::{assets::{AssetExt, Error}, comp::Item};
|
use crate::{
|
||||||
|
assets::{AssetExt, Error},
|
||||||
|
comp::Item,
|
||||||
|
};
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_loot_tables() {
|
fn test_loot_tables() {
|
||||||
@ -143,8 +146,18 @@ mod tests {
|
|||||||
Item::new_from_asset_expect(&item);
|
Item::new_from_asset_expect(&item);
|
||||||
},
|
},
|
||||||
LootSpec::ItemQuantity(item, lower, upper) => {
|
LootSpec::ItemQuantity(item, lower, upper) => {
|
||||||
assert!(*lower > 0, "Lower quantity must be more than 0. It is {}.", lower);
|
assert!(
|
||||||
assert!(upper >= lower, "Upper quantity must be at least the value of lower quantity. Upper value: {}, low value: {}.", upper, lower);
|
*lower > 0,
|
||||||
|
"Lower quantity must be more than 0. It is {}.",
|
||||||
|
lower
|
||||||
|
);
|
||||||
|
assert!(
|
||||||
|
upper >= lower,
|
||||||
|
"Upper quantity must be at least the value of lower quantity. Upper \
|
||||||
|
value: {}, low value: {}.",
|
||||||
|
upper,
|
||||||
|
lower
|
||||||
|
);
|
||||||
Item::new_from_asset_expect(&item);
|
Item::new_from_asset_expect(&item);
|
||||||
},
|
},
|
||||||
LootSpec::LootTable(loot_table) => {
|
LootSpec::LootTable(loot_table) => {
|
||||||
|
@ -347,7 +347,7 @@ pub fn handle_destroy(server: &mut Server, entity: EcsEntity, cause: HealthSourc
|
|||||||
2 => "common.loot_tables.armor.cloth",
|
2 => "common.loot_tables.armor.cloth",
|
||||||
3 => "common.loot_tables.weapons.starter",
|
3 => "common.loot_tables.weapons.starter",
|
||||||
4 => "common.loot_tables.humanoids",
|
4 => "common.loot_tables.humanoids",
|
||||||
_ => "common.loots_tables.fallback",
|
_ => "common.loot_tables.fallback",
|
||||||
},
|
},
|
||||||
Some(common::comp::Body::QuadrupedSmall(quadruped_small)) => {
|
Some(common::comp::Body::QuadrupedSmall(quadruped_small)) => {
|
||||||
match quadruped_small.species {
|
match quadruped_small.species {
|
||||||
@ -356,7 +356,6 @@ pub fn handle_destroy(server: &mut Server, entity: EcsEntity, cause: HealthSourc
|
|||||||
},
|
},
|
||||||
_ => match rng.gen_range(0..4) {
|
_ => match rng.gen_range(0..4) {
|
||||||
0 => "common.loot_tables.food.wild_ingredients",
|
0 => "common.loot_tables.food.wild_ingredients",
|
||||||
2 => "common.loot_tables.wild_animal",
|
|
||||||
_ => "common.loot_tables.wild_animal",
|
_ => "common.loot_tables.wild_animal",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user