diff options
| author | troido <troido@protonmail.com> | 2021-12-30 21:20:46 +0100 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2021-12-30 21:20:46 +0100 |
| commit | 755ae8512bfe3ff39a55c22a958e15399e886c5f (patch) | |
| tree | 167b34f51071ee6ec915b787094c8dadef2d4dde /src/playerstate.rs | |
| parent | d10d3e0368bd1178085ab8abd2ea24afe912b26f (diff) | |
entities can now have descriptions
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 2bc0456..0d5505a 100644 --- a/src/playerstate.rs +++ b/src/playerstate.rs @@ -21,7 +21,8 @@ use crate::{ Slot, Ear, Stats, - Stat + Stat, + Description }, Result, aerr, @@ -99,7 +100,8 @@ impl PlayerState { ComponentWrapper::Autofight(Autofight::default()), ComponentWrapper::Faction(Faction::Good), ComponentWrapper::Ear(Ear::default()), - ComponentWrapper::Stats(Stats{skills: hashmap!{Stat::Gathering => 10}}) + ComponentWrapper::Stats(Stats{skills: hashmap!{Stat::Gathering => 10}}), + ComponentWrapper::Description(Description{description: format!("a player named {}", self.id.0)}) ]) } } |
