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
|
|
@ -4,6 +4,7 @@ use bracket_lib::prelude::*;
|
|||
use specs::prelude::*;
|
||||
use std::collections::VecDeque;
|
||||
use std::sync::Mutex;
|
||||
use crate::components::DamageType;
|
||||
|
||||
mod damage;
|
||||
mod hunger;
|
||||
|
|
@ -24,6 +25,7 @@ lazy_static! {
|
|||
pub enum EffectType {
|
||||
Damage {
|
||||
amount: i32,
|
||||
damage_type: DamageType,
|
||||
},
|
||||
Healing {
|
||||
amount: i32,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue