Move towards debris slowing movement
This commit is contained in:
@@ -8,8 +8,11 @@ import LensHelp
|
|||||||
import Data.Maybe
|
import Data.Maybe
|
||||||
import Data.IntMap.Merge.Strict
|
import Data.IntMap.Merge.Strict
|
||||||
|
|
||||||
|
getCrDexterity :: Creature -> Int
|
||||||
|
getCrDexterity cr = _dexterity (_crStatistics cr)
|
||||||
|
|
||||||
getCrStrength :: Creature -> Int
|
getCrStrength :: Creature -> Int
|
||||||
getCrStrength cr = strFromHeldItem cr + strFromEquipment cr + _crStrength (_crStatistics cr)
|
getCrStrength cr = strFromHeldItem cr + strFromEquipment cr + _strength (_crStatistics cr)
|
||||||
|
|
||||||
strFromEquipment :: Creature -> Int
|
strFromEquipment :: Creature -> Int
|
||||||
strFromEquipment = sum . fmap equipmentStrValue . crCurrentEquipment
|
strFromEquipment = sum . fmap equipmentStrValue . crCurrentEquipment
|
||||||
|
|||||||
+3
-3
@@ -378,9 +378,9 @@ data CamouflageStatus
|
|||||||
| Invisible
|
| Invisible
|
||||||
deriving (Eq,Ord,Enum)
|
deriving (Eq,Ord,Enum)
|
||||||
data CreatureStatistics = CreatureStatistics
|
data CreatureStatistics = CreatureStatistics
|
||||||
{ _crStrength :: Int
|
{ _strength :: Int
|
||||||
, _crDexterity :: Int
|
, _dexterity :: Int
|
||||||
, _crIntelligence :: Int
|
, _intelligence :: Int
|
||||||
}
|
}
|
||||||
data Vocalization
|
data Vocalization
|
||||||
= Mute
|
= Mute
|
||||||
|
|||||||
Reference in New Issue
Block a user