Cleanup
This commit is contained in:
@@ -1547,16 +1547,12 @@ explodeRemoteRocket itid ptid n w
|
||||
$ set (projectiles . ix ptid . ptPict) blank
|
||||
$ set (itPoint . wpFire) (flip const)
|
||||
$ resetName
|
||||
-- $ resetScope
|
||||
$ makeExplosionAt (_ptPos (_projectiles w IM.! ptid)) w
|
||||
-- $ makeShrapnelBombAt (_ptPos (_projectiles w IM.! ptid)) w
|
||||
where resetName = set (itPoint . itName) "REMOTELAUNCHER"
|
||||
-- resetScope = creatures . ix n . crInv . ix j . itScope . _Just . scopePos .~ (0,0)
|
||||
itPoint = pointToItem $ _itemPositions w IM.! itid
|
||||
|
||||
throwRemoteBomb :: Int -> World -> World
|
||||
throwRemoteBomb n w = setLocation $ removePict $ resetFire
|
||||
-- $ resetName $ over projectiles addG $ set randGen g w
|
||||
$ resetName $ over projectiles addG w
|
||||
where addG = IM.insert i
|
||||
$ Projectile { _ptPos = p
|
||||
|
||||
Reference in New Issue
Block a user