Pass item to item use function
This commit is contained in:
@@ -112,7 +112,7 @@ aTractorBeam
|
||||
-> World
|
||||
aTractorBeam col cr w
|
||||
= set (creatures . ix cid . crInv . ix itRef . itUse)
|
||||
(shoot $ aTractorBeam ((col + 1) `mod` 10))
|
||||
(\_ -> shoot $ aTractorBeam ((col + 1) `mod` 10))
|
||||
$ over projectiles (IM.insert i (tractorBeamAt col i pos dir)) w
|
||||
where
|
||||
i = newProjectileKey w
|
||||
|
||||
Reference in New Issue
Block a user