diff options
author | Griffin Smith <root@gws.fyi> | 2019-11-16T02·20-0500 |
---|---|---|
committer | Griffin Smith <root@gws.fyi> | 2019-11-16T02·20-0500 |
commit | 7b90b02049f891f752fff7e0e228511077bbcb84 (patch) | |
tree | 306b998143a9b19a6ea496a8becc86a4ce0303ae /src/Xanthous/Entities/RawTypes.hs | |
parent | 87fedcb6c9bc251a5a23a632ccf985b674b84bc7 (diff) |
Recover character hitpoints over time
Wrap hitpoints in a newtype, and recover character hitpoints over time
Diffstat (limited to 'src/Xanthous/Entities/RawTypes.hs')
-rw-r--r-- | src/Xanthous/Entities/RawTypes.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Xanthous/Entities/RawTypes.hs b/src/Xanthous/Entities/RawTypes.hs index fd66140376bb..09b250fb310d 100644 --- a/src/Xanthous/Entities/RawTypes.hs +++ b/src/Xanthous/Entities/RawTypes.hs @@ -29,13 +29,13 @@ import Data.Aeson (ToJSON, FromJSON) -------------------------------------------------------------------------------- import Xanthous.Entities (EntityChar, HasChar(..)) import Xanthous.Messages (Message(..)) -import Xanthous.Data (TicksPerTile) +import Xanthous.Data (TicksPerTile, Hitpoints) -------------------------------------------------------------------------------- data CreatureType = CreatureType { _name :: !Text , _description :: !Text , _char :: !EntityChar - , _maxHitpoints :: !Word + , _maxHitpoints :: !Hitpoints , _friendly :: !Bool , _speed :: !TicksPerTile } |