Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix of a bug caused by config file options being case insensitive

TODO: perhaps make the options case sensitive; it costs too much debugging.
  • Loading branch information...
commit 4b4d2cba36e5927fddf0766099784d7b358687bd 1 parent 6d9a881
Mikolaj Konarski Mikolaj authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/Monster.hs
6 src/Monster.hs
View
@@ -17,9 +17,9 @@ defaultBaseHP = 50
-- | Hit points of the player. Experimentally balanced for multiple heroes.
playerHP :: Config.CP -> Int
playerHP config =
- let b = Config.getDefault defaultBaseHP config "heroes" "base_HP"
- k = Config.getDefault 1 config "heroes" "extra_heroes"
- in b `div` k
+ let b = Config.getDefault defaultBaseHP config "heroes" "base_hp"
+ k = Config.getDefault 0 config "heroes" "extra_heroes"
+ in b `div` (k + 1)
-- | Time the player can be traced by monsters. TODO: Make configurable.
smellTimeout :: Time
Please sign in to comment.
Something went wrong with that request. Please try again.