tvl-depot/test/Xanthous/Data
Griffin Smith 052bc8455a Add a drop command
Add a drop command, bound to 'd', which prompts the character for an
item in their inventory, removes it from the inventory, and places it on
the ground. Along the way I had to fix a bug in the
`EntityMap.atPosition` lens, which was always appending to the existing
entities at the position on set, without removing the entities that were
already there - the rabbit hole of quickchecking the lens laws here also
lead to replacing the target of this lens with a newtype called
`VectorBag`, which ignores order (since the entitymap makes no
guarantees about order of entities at a given position).
2019-12-23 17:22:56 -05:00
..
EntityCharSpec.hs Use menus for combat and picking up items 2019-11-29 22:59:15 -05:00
EntityMapSpec.hs Add a drop command 2019-12-23 17:22:56 -05:00