Simplify item placement during generation
This commit is contained in:
@@ -16,7 +16,7 @@ import Picture
|
||||
import qualified Data.IntMap.Strict as IM
|
||||
import Control.Lens
|
||||
|
||||
defaultInanimate = defaultCreature & crIsAnimate .~ False
|
||||
defaultInanimate = defaultCreature & crState . crIsAnimate .~ False
|
||||
|
||||
lamp :: Creature
|
||||
lamp = defaultInanimate
|
||||
@@ -72,7 +72,7 @@ explosiveBarrel = defaultInanimate
|
||||
, _crState = defaultState {_goals = [[Wait]]
|
||||
,_faction = ChaseCritters
|
||||
,_crSpState = Barrel []
|
||||
,_crApplyDamage = \_ c -> (id, c)
|
||||
}
|
||||
, _crInv = IM.empty -- IM.fromList [(0,frontArmour)]
|
||||
,_crApplyDamage = \_ c -> (id, c)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user