diff options
author | Griffin Smith <grfn@gws.fyi> | 2021-06-18T16·02-0400 |
---|---|---|
committer | grfn <grfn@gws.fyi> | 2021-06-18T17·51+0000 |
commit | 6f9d01b5079753b243d76cbe3351c831e70bf865 (patch) | |
tree | 976c8e60b68b7d5e6730a0b8e018c285299a6b05 /users/grfn/xanthous | |
parent | 72d9e11a8f92fd1035a5bcfd29cacf5d874e4526 (diff) |
feat(xanthous): Add an ooze creature type r/2672
This required making sayVerb optional, as oozes don't say anything Change-Id: I2c7f425ca26d92beef1097eda49d84f00c84c482 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3218 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
Diffstat (limited to 'users/grfn/xanthous')
-rw-r--r-- | users/grfn/xanthous/src/Xanthous/Entities/RawTypes.hs | 4 | ||||
-rw-r--r-- | users/grfn/xanthous/src/Xanthous/Entities/Raws/ooze.yaml | 12 |
2 files changed, 14 insertions, 2 deletions
diff --git a/users/grfn/xanthous/src/Xanthous/Entities/RawTypes.hs b/users/grfn/xanthous/src/Xanthous/Entities/RawTypes.hs index 5d30d73db6c5..ea5a90136e4e 100644 --- a/users/grfn/xanthous/src/Xanthous/Entities/RawTypes.hs +++ b/users/grfn/xanthous/src/Xanthous/Entities/RawTypes.hs @@ -81,8 +81,8 @@ data CreatureType = CreatureType , _friendly :: !Bool , _speed :: !TicksPerTile , _language :: !(Maybe LanguageName) - , _sayVerb :: Text -- ^ The verb, in present tense, for when the creature - -- says something + , _sayVerb :: !(Maybe Text) -- ^ The verb, in present tense, for when the + -- creature says something } deriving stock (Show, Eq, Ord, Generic) deriving anyclass (NFData, CoArbitrary, Function) diff --git a/users/grfn/xanthous/src/Xanthous/Entities/Raws/ooze.yaml b/users/grfn/xanthous/src/Xanthous/Entities/Raws/ooze.yaml new file mode 100644 index 000000000000..d13b5881dfdc --- /dev/null +++ b/users/grfn/xanthous/src/Xanthous/Entities/Raws/ooze.yaml @@ -0,0 +1,12 @@ +Creature: + name: ooze + description: an ooze + longDescription: | + A jiggling, amorphous, bright green caustic blob + char: + char: o + style: + foreground: green + maxHitpoints: 3 + speed: 100 + friendly: false |