Hardened Loot handling part two

+ clippy advices
+ use LootSpec::Nothing for basic_summon explicitly
This commit is contained in:
juliancoffee 2021-09-23 00:19:15 +03:00
parent 2475b97918
commit ac5ea0cfe8
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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,
});