adds damage types and mods (weak/resist/immune), for all damage events

This commit is contained in:
Llywelwyn 2023-09-21 00:52:54 +01:00
parent 66013667d8
commit 8a44c94272
12 changed files with 131 additions and 10 deletions

View file

@ -5,6 +5,7 @@ use super::{
HungerClock,
HungerState,
TakingTurn,
DamageType,
};
use bracket_lib::prelude::*;
use specs::prelude::*;
@ -78,7 +79,7 @@ impl<'a> System<'a> for HungerSystem {
if hunger_clock.state == HungerState::Starving {
add_effect(
None,
EffectType::Damage { amount: 1 },
EffectType::Damage { amount: 1, damage_type: DamageType::Forced },
Targets::Entity { target: entity }
);
}