Simplify item placement during generation

This commit is contained in:
2021-04-25 13:21:24 +02:00
parent 30736997c3
commit 17986651c5
13 changed files with 95 additions and 95 deletions
+14 -1
View File
@@ -3,10 +3,22 @@
module Dodge.Creature.State.Data
where
import Geometry
import Dodge.Data.DamageType
import Control.Lens
data ItemDropType
data CreatureState = CrSt
{ _goals :: [[Goal]]
, _stance :: Stance
, _faction :: Faction
, _crDamage :: [DamageType]
, _crPastDamage :: Int
, _crSpState :: CrSpState
, _crDropsOnDeath :: CreatureDropType
, _crIsAnimate :: Bool
}
data CreatureDropType
= DropAll
| DropAmount Int
| DropSpecific [Int]
@@ -89,6 +101,7 @@ data Faction
| NoFaction
deriving (Eq,Show)
makeLenses ''CreatureState
makeLenses ''CrSpState
makeLenses ''Goal
makeLenses ''Carriage