mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Hardened Loot handling part two
+ clippy advices + use LootSpec::Nothing for basic_summon explicitly
This commit is contained in:
parent
2475b97918
commit
ac5ea0cfe8
@ -96,7 +96,7 @@ impl<T: AsRef<str>> LootSpec<T> {
|
||||
warn!(?e, "Invalid item path");
|
||||
None
|
||||
},
|
||||
|i| Some(i),
|
||||
Option::Some,
|
||||
),
|
||||
Self::ItemQuantity(item, lower, upper) => {
|
||||
let range = *lower..=*upper;
|
||||
|
@ -187,7 +187,7 @@ impl CharacterBehavior for Data {
|
||||
.scale
|
||||
.unwrap_or(comp::Scale(1.0)),
|
||||
anchor: None,
|
||||
drop_item: None,
|
||||
drop_item: Some(crate::lottery::LootSpec::Nothing),
|
||||
rtsim_entity: None,
|
||||
projectile,
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user