about summary refs log tree commit diff
path: root/users/grfn/xanthous/src/Xanthous/Entities/RawTypes.hs (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2021-06-23 r/2679 feat(xanthous) Generate random volume+density for itemsGriffin Smith9-25/+108
Generate random volumes and densities for items based on the ranges for those two quantities in the raw when building instances of items. Since this is the first time creating an item is impure, this also lifts entity generation into a (random) monadic context Change-Id: I2de4880e8144f7ff9e1304eb32806ed1d7affa18 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3226 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-06-23 r/2678 feat(xanthous): Track the volume and density of item typesGriffin Smith12-33/+255
Allow the itemType raw to have density and volume fields, both of which represent *intervals* of both density and volume (because both can hypothetically vary a bit). The idea here is that when we're making an *instance* of one of these items, we pick a random value in the range. Lots of stuff in this commit is datatype and typeclass instances to support things like intervals being fields on datatypes that get serialized to saved games - including a manual definition of Ord for Item since Ord isn't well-defined for intervals Change-Id: Ia088f2f75cdce9d00560297e5c269e3310b85bc3 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3225 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-06-19 r/2677 fix(gws.fyi): Remove reference to freenodeGriffin Smith1-1/+1
I'm not on freenode anymore Change-Id: I72891f8db468cd318a069e4f409150717c6b9360 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3223 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-06-18 r/2676 feat(xanthous): Fistfighting builds knuckle callusesGriffin Smith8-20/+229
2000 ticks after the character damages their fists by hitting something, the character now develops calluses on their fists (scaled by *how* damaged they've become) that reduce the chance of them receiving additional damage from hitting things - up to a max of 5, which prevents *all* damage from fistfighting. This is all tracked in a new "Knuckles" struct in a new "Body" struct on the character datatype, which manages stepping itself forward as part of the Brain impl on the character. Change-Id: Ica269f16fb340fb25900d2c77fbad32f10c00be2 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3222 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-06-18 r/2675 feat(xanthous): Add an auto-rest commandGriffin Smith6-12/+35
Add a command that automatically rests (essentially just stepping the game forwards) until the character's hitpoints are back to full. Currently due to the time it takes for the character to heal this takes a bit too long - my thought there is to make the per-step delay for autocommands different depending on the specific autocommand. Change-Id: I40378c29d3d9d19e9787af1f015bde65fd08868c Reviewed-on: https://cl.tvl.fyi/c/depot/+/3221 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-06-18 r/2674 feat(xanthous): Add configurable natural attacksGriffin Smith7-12/+69
Allow configuring the natural attacks (eg, part of their body rather than an item) of a creature. Each attack has a description and a damage associated with it. Change-Id: I69698a8ac4ee2da91e4c88e419593627519522a5 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3220 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-06-18 r/2673 feat(gs/emacs): Bind g R to lsp-find-references in haskell-modeGriffin Smith1-0/+1
Change-Id: I49330e11a4cf402a4d06e7b657d3216eec9e5867 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3219 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-06-18 r/2672 feat(xanthous): Add an ooze creature typeGriffin Smith2-2/+14
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
2021-06-18 r/2671 feat(xanthous): Install qpdf in the shellGriffin Smith1-2/+4
This gets us the zlib-flate command line utility, which is useful for decompressing our zlib-compressed save files and poking around in the JSON Change-Id: Ia0d8259d261c4313322d68cc8409ba13f9fb570c Reviewed-on: https://cl.tvl.fyi/c/depot/+/3217 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-06-18 r/2670 feat(gs/home): Install gronGriffin Smith1-0/+1
this is pretty useful Change-Id: If79af3f8f3bd1d1e810f4af6eebfc618eb4c603b Reviewed-on: https://cl.tvl.fyi/c/depot/+/3216 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-06-18 r/2669 fix(xanthous): Wipe memoized vision when the game updatesGriffin Smith2-3/+9
If the game steps forward, entities could be moving around, so we need to wipe the memoized character vision. Change-Id: If6ea6a8c4bed7aefef90a0a2ab17eff0af9b9bbe Reviewed-on: https://cl.tvl.fyi/c/depot/+/3215 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-06-16 r/2668 feat(gs/emacs): Add command to pull down all assigned JIRA ticketsGriffin Smith1-1/+7
as org-mode headlines, using org-tracker-headlines-from-assigned-to-me Change-Id: Ie2ce8ec768702a71fb74c36024a3974c2d675571 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3214 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-06-16 r/2667 fix(gs/emacs): Fix typo in org-tracker-state-alistGriffin Smith1-1/+1
Change-Id: I219cb09a05dd4ac4d4196dde1dea10838d330b71 Reviewed-on: