Heavy abilities

This commit is contained in:
Sam
2022-03-05 15:51:41 -05:00
parent 8a578bf3f6
commit 500e0ae3d0
21 changed files with 243 additions and 138 deletions

View File

@ -183,7 +183,16 @@ impl StateExt for State {
},
Effect::Poise(poise) => {
let inventories = self.ecs().read_storage::<Inventory>();
let change = Poise::apply_poise_reduction(poise, inventories.get(entity), &msm);
let char_states = self.ecs().read_storage::<comp::CharacterState>();
let stats = self.ecs().read_storage::<comp::Stats>();
let change = Poise::apply_poise_reduction(
poise,
inventories.get(entity),
&msm,
char_states.get(entity),
stats.get(entity),
);
// Check to make sure the entity is not already stunned
if let Some(character_state) = self
.ecs()