feat(gs/xanthous): Creatures drop their items when they die

When a creature is killed, it now drops all the contents of its
inventory on the ground.

Change-Id: Ie95c397308ba2c9861f10e58b99c91c9cc759c56
This commit is contained in:
Griffin Smith 2021-11-25 10:14:00 -05:00 committed by grfn
parent a3d220b631
commit 604319850c
3 changed files with 24 additions and 4 deletions

View file

@ -42,7 +42,7 @@ import Xanthous.Data
import Xanthous.Data.Entities
import Xanthous.Entities.Creature.Hippocampus
import Xanthous.Util.QuickCheck (GenericArbitrary(..))
import Xanthous.Entities.Common (Inventory)
import Xanthous.Entities.Common (Inventory, HasInventory(..))
--------------------------------------------------------------------------------
data Creature = Creature