From f844ed18e29465177a339f244800fb7a2e77daa9 Mon Sep 17 00:00:00 2001 From: troido Date: Tue, 3 Mar 2020 19:11:32 +0100 Subject: factions now work --- src/playerstate.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/playerstate.rs') 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) ] } } -- cgit