Broken commit (removed loadKeyConfig)

This commit is contained in:
2021-08-27 11:58:11 +01:00
parent c4df048d31
commit 3ff04576ab
25 changed files with 122 additions and 200 deletions
+9 -3
View File
@@ -1,7 +1,13 @@
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE StrictData #-}
module Dodge.Creature.AlertLevel.Data
where
( AwakeLevel (..)
, AttentionDir (..)
, AwarenessLevel (..)
-- lenses
, getAttentiveTo
, getFixated
) where
import Control.Lens
data AwakeLevel
@@ -12,8 +18,8 @@ data AwakeLevel
| Overstrung
data AttentionDir
= AttentiveTo {_unAttentiveTo :: [Int]}
| Fixated {_unFixated :: Int }
= AttentiveTo {_getAttentiveTo :: [Int]}
| Fixated {_getFixated :: Int }
data AwarenessLevel
= AwarenessInt Int
+1 -1
View File
@@ -87,7 +87,7 @@ followImpulse cr w imp = case imp of
posFromID cid = _crPos $ _creatures w IM.! cid
rr a = fst $ randomR (-a,a) $ _randGen w
hitCr i = over (creatures . ix i . crState . crDamage) (addDam i)
. soundOnce (fromIntegral hitSound)
. soundOnce hitSound
addDam i dams = Blunt 100 cpos (posFromID i) (posFromID i) : dams
actionUpdateAI