Tweak walk cycle parameters

This commit is contained in:
2021-06-09 00:01:56 +02:00
parent fb7a90df71
commit 3371e2ae79
16 changed files with 112 additions and 81 deletions
+10
View File
@@ -20,6 +20,16 @@ decCharMode' = itCharMode %~ cycleR
cycleR (xs :|> x) = x <| xs
cycleR xs = xs
scrollCharMode
:: Float -- ^ Amount scrolled
-> Creature
-> World
-> World
scrollCharMode x cr
| x > 0 = incCharMode (_crInvSel cr)
| x < 0 = decCharMode (_crInvSel cr)
| otherwise = id
incCharMode
:: Int -- ^ Inventory selection
-> World