snix/users/grfn/xanthous/src/Xanthous
Griffin Smith 8b97683f6e feat(xanthous): Track the volume and density of item types
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-23 21:52:08 +00:00
..
AI feat(xanthous): Add configurable natural attacks 2021-06-18 17:51:43 +00:00
App feat(xanthous): Track the volume and density of item types 2021-06-23 21:52:08 +00:00
Data feat(xanthous): Memoize characterVisiblePositions 2021-06-12 18:57:52 +00:00
Entities feat(xanthous): Track the volume and density of item types 2021-06-23 21:52:08 +00:00
Game feat(xanthous): Add an auto-rest command 2021-06-18 17:51:43 +00:00
Generators feat(xanthous): Extend speech generation to arbitrary words 2021-06-14 13:04:26 +00:00
Messages refactor(users/glittershark): Rename to grfn 2021-04-12 14:45:51 +00:00
Util refactor(users/glittershark): Rename to grfn 2021-04-12 14:45:51 +00:00
App.hs feat(xanthous): Track the volume and density of item types 2021-06-23 21:52:08 +00:00
Command.hs feat(xanthous): Add an auto-rest command 2021-06-18 17:51:43 +00:00
Data.hs feat(xanthous): Track the volume and density of item types 2021-06-23 21:52:08 +00:00
Game.hs refactor(users/glittershark): Rename to grfn 2021-04-12 14:45:51 +00:00
Messages.hs feat(xanthous): Add configurable natural attacks 2021-06-18 17:51:43 +00:00
messages.yaml feat(xanthous): Fistfighting builds knuckle calluses 2021-06-18 21:17:53 +00:00
Monad.hs refactor(users/glittershark): Rename to grfn 2021-04-12 14:45:51 +00:00
Orphans.hs feat(xanthous): Track the volume and density of item types 2021-06-23 21:52:08 +00:00
Prelude.hs feat(xanthous): Memoize characterVisiblePositions 2021-06-12 18:57:52 +00:00
Random.hs feat(xanthous): Extend speech generation to arbitrary words 2021-06-14 13:04:26 +00:00
Util.hs feat(xanthous): Fistfighting builds knuckle calluses 2021-06-18 21:17:53 +00:00