prop damage fix

This commit is contained in:
Llywelwyn 2023-08-14 07:04:12 +01:00
parent e8084b8975
commit 62a76ff191

View file

@ -487,6 +487,10 @@ pub fn spawn_named_prop(raws: &RawMaster, ecs: &mut World, key: &str, pos: Spawn
let effect_name = effect.0.as_str();
match effect_name {
"damage" => {
let (n_dice, sides, modifier) = parse_dice_string(effect.1.as_str());
eb = eb.with(InflictsDamage { n_dice, sides, modifier })
}
"healing" => {
let (n_dice, sides, modifier) = parse_dice_string(effect.1.as_str());
eb = eb.with(ProvidesHealing { n_dice, sides, modifier })
}