diff options
| author | troido <troido@protonmail.com> | 2020-10-03 15:20:52 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-10-03 15:20:52 +0200 |
| commit | fa5ddaa570473ece02e0a3bfb35702211d21ce12 (patch) | |
| tree | 501498c9db9d7d2c985f86272b3405c98301556f /src/playerstate.rs | |
| parent | 5af83beb6f10023cef7eba192a0b190518fe967b (diff) | |
added dense grass; home is now part of monsterAI component
Diffstat (limited to 'src/playerstate.rs')
| -rw-r--r-- | src/playerstate.rs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/playerstate.rs b/src/playerstate.rs index 658aeb2..2bc0456 100644 --- a/src/playerstate.rs +++ b/src/playerstate.rs @@ -18,15 +18,17 @@ use crate::{ AttackType, Autofight, Faction, - Equipment, - equipment::Slot, - Ear + Slot, + Ear, + Stats, + Stat }, Result, aerr, Sprite, Encyclopedia, Pos, + hashmap }; #[allow(non_upper_case_globals)] @@ -96,8 +98,8 @@ impl PlayerState { ComponentWrapper::Movable(Movable{cooldown: 2}), ComponentWrapper::Autofight(Autofight::default()), ComponentWrapper::Faction(Faction::Good), - ComponentWrapper::Equipment(Equipment{slots: vec!(Slot::Hand, Slot::Body)}), - ComponentWrapper::Ear(Ear::default()) + ComponentWrapper::Ear(Ear::default()), + ComponentWrapper::Stats(Stats{skills: hashmap!{Stat::Gathering => 10}}) ]) } } |
