Add file, fix lamp doDamage space leak

This commit is contained in:
2021-05-12 20:48:55 +02:00
parent ead87af3c1
commit 9b3fbba393
13 changed files with 165 additions and 226 deletions
+7 -1
View File
@@ -478,6 +478,8 @@ data Impulse
| AddGoal Goal
| ArbitraryCreatureImpulse (World -> Creature -> Creature)
-- deriving (Eq,Ord,Show)
infixr 9 `WaitThen`
infixr 9 `DoActionThen`
data Action
= Attack
{_attackTargetID :: Int}
@@ -560,6 +562,9 @@ data Action
}
| NoAction
| StartSentinelPost
| UseTargetCID
{_useTargetCID :: Int -> Action
}
deriving (Generic)
-- deriving (Eq,Ord,Show)
data Strategy
@@ -570,9 +575,10 @@ data Strategy
| ShootAt Int
| FollowImpulses
| WatchAndWait
| StrategyActions [Action] Strategy
| StrategyActions Strategy [Action]
| GetTo Point2
| Reload
| Flee
deriving (Generic)
-- deriving (Eq,Ord,Show)
data Goal