diff options
| author | troido <troido@protonmail.com> | 2020-03-03 19:11:32 +0100 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-03-03 19:11:32 +0100 |
| commit | f844ed18e29465177a339f244800fb7a2e77daa9 (patch) | |
| tree | c3445f869eb072a35162e008609cc1dc75c427fb /src/playerstate.rs | |
| parent | 986c82723cf9a4adada02287309999f4ebbf94e3 (diff) | |
factions now work
Diffstat (limited to 'src/playerstate.rs')
| -rw-r--r-- | src/playerstate.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/playerstate.rs b/src/playerstate.rs index 4ccd6af..c7b5f8c 100644 --- a/src/playerstate.rs +++ b/src/playerstate.rs @@ -15,7 +15,8 @@ use crate::{ Healing, Movable, AttackType, - Autofight + Autofight, + Faction }, Result, aerr, @@ -134,7 +135,8 @@ impl PlayerState { ComponentWrapper::Fighter(Fighter{attack: AttackType::Attack(5), cooldown: 8, range: 1}), ComponentWrapper::Healing(Healing{delay: 50, health: 1, next_heal: None}), ComponentWrapper::Movable(Movable{cooldown: 2}), - ComponentWrapper::Autofight(Autofight::default()) + ComponentWrapper::Autofight(Autofight::default()), + ComponentWrapper::Faction(Faction::Good) ] } } |
