Implement remote screen for launcher projectiles

This commit is contained in:
2024-09-27 10:39:21 +01:00
parent fb6fcff61c
commit 5f9fb183a9
35 changed files with 238 additions and 170 deletions
+3 -2
View File
@@ -18,7 +18,8 @@ import Dodge.Data.World
import Geometry.Data
sentinelAI :: World -> Creature -> Creature
sentinelAI w =
--sentinelAI w =
sentinelAI =
sentinelExtraWatchUpdate
[
( crHasTargetLOS
@@ -37,7 +38,7 @@ sentinelAI w =
]
)
]
w
-- w
where
advanceShoot = DoImpulses [UseItem, MoveForward 3]
tcid cr = _crID <$> _targetCr (_crIntention cr)
+3 -3
View File
@@ -247,11 +247,11 @@ invSideEff cr w =
w' & maybe id (\g -> doInvEffect g it cr) (it ^? itEffect . ieInv)
itemInvSideEffect :: Creature -> Item -> World -> World
itemInvSideEffect _ _
itemInvSideEffect _ _ = id
--itemInvSideEffect cr it
-- | hastorchattach = createAttachLight cr it
| otherwise = id
where
-- | otherwise = id
-- where
-- hastorchattach = it ^? itType . iyModules . ix ModHeldAttach == Just ATTACHTORCH && _itIsRoot it
--createAttachLight :: Creature -> Item -> World -> World