Allow eating edible items
Add menu support to the prompt system, and an "Eat" command that prompts for an item to eat and eats the item the character specifies, restoring an amount of hitpoints configurable via the item raw type.
This commit is contained in:
parent
262fc7fb41
commit
de8052cef8
16 changed files with 289 additions and 73 deletions
|
|
@ -4,7 +4,7 @@ cabal-version: 1.12
|
|||
--
|
||||
-- see: https://github.com/sol/hpack
|
||||
--
|
||||
-- hash: ad4acf50f6be0dc7ae6c68d9920b61c2d32b5d759aae7311a124d159b4a9bc7f
|
||||
-- hash: ac15bf59fd57f7a0bc23f010aec83824f819592494145cbce3e1db36e23f1107
|
||||
|
||||
name: xanthous
|
||||
version: 0.1.0.0
|
||||
|
|
@ -103,6 +103,7 @@ library
|
|||
, reflection
|
||||
, stache
|
||||
, tomland
|
||||
, vector
|
||||
, vty
|
||||
, yaml
|
||||
default-language: Haskell2010
|
||||
|
|
@ -183,6 +184,7 @@ executable xanthous
|
|||
, reflection
|
||||
, stache
|
||||
, tomland
|
||||
, vector
|
||||
, vty
|
||||
, xanthous
|
||||
, yaml
|
||||
|
|
@ -202,6 +204,7 @@ test-suite test
|
|||
Xanthous.OrphansSpec
|
||||
Xanthous.Util.GraphicsSpec
|
||||
Xanthous.Util.InflectionSpec
|
||||
Xanthous.UtilSpec
|
||||
Paths_xanthous
|
||||
hs-source-dirs:
|
||||
test
|
||||
|
|
@ -244,6 +247,7 @@ test-suite test
|
|||
, tasty-hunit
|
||||
, tasty-quickcheck
|
||||
, tomland
|
||||
, vector
|
||||
, vty
|
||||
, xanthous
|
||||
, yaml
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue