diff options
author | Griffin Smith <root@gws.fyi> | 2019-12-23T03·46-0500 |
---|---|---|
committer | Griffin Smith <root@gws.fyi> | 2019-12-23T03·46-0500 |
commit | 5b1c7799a76480335f838356ad78bed50715d4c0 (patch) | |
tree | 65c9e863e31da7400bba1c11770d06ed69e9b2b3 /src/Xanthous/Command.hs | |
parent | 0f754eb2a07062e8490ae3af04e7c7ff4d94cc55 (diff) |
Add wielded, wieldable items
Split the character's inventory up into wielded items (in one or both hands) and the backpack, and display wielded items when drawing the inventory panel. Currently there's no way to actually *wield* items though, so this is all unused/untested. Also, add the ability for items to be "wieldable", which gives specific descriptions for when attacking with them and also modified damage.
Diffstat (limited to 'src/Xanthous/Command.hs')
-rw-r--r-- | src/Xanthous/Command.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Xanthous/Command.hs b/src/Xanthous/Command.hs index a14a4d071307..7b689c6466e4 100644 --- a/src/Xanthous/Command.hs +++ b/src/Xanthous/Command.hs @@ -20,7 +20,7 @@ data Command | Look | Save | Read - | Inventory + | ShowInventory -- | TODO replace with `:` commands | ToggleRevealAll @@ -36,7 +36,7 @@ commandFromKey (KChar ';') [] = Just Look commandFromKey (KChar 'e') [] = Just Eat commandFromKey (KChar 'S') [] = Just Save commandFromKey (KChar 'r') [] = Just Read -commandFromKey (KChar 'i') [] = Just Inventory +commandFromKey (KChar 'i') [] = Just ShowInventory commandFromKey (KChar 'r') [MMeta] = Just ToggleRevealAll |