adds damage types and mods (weak/resist/immune), for all damage events
This commit is contained in:
parent
66013667d8
commit
8a44c94272
12 changed files with 131 additions and 10 deletions
|
|
@ -32,6 +32,7 @@ use super::{
|
|||
WantsToPickupItem,
|
||||
get_dest,
|
||||
Destination,
|
||||
DamageType,
|
||||
};
|
||||
use bracket_lib::prelude::*;
|
||||
use specs::prelude::*;
|
||||
|
|
@ -290,7 +291,7 @@ pub fn kick(i: i32, j: i32, ecs: &mut World) -> RunState {
|
|||
if rng.roll_dice(1, 20) == 20 {
|
||||
add_effect(
|
||||
None,
|
||||
EffectType::Damage { amount: 1 },
|
||||
EffectType::Damage { amount: 1, damage_type: DamageType::Physical },
|
||||
Targets::Entity { target: entity }
|
||||
);
|
||||
gamelog::Logger
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue