Refactor floor items, removing ids (not fully checked)
This commit is contained in:
@@ -163,9 +163,9 @@ destroyProjectile mitid pjid w =
|
||||
& removelink
|
||||
where
|
||||
removelink = fromMaybe id $ do
|
||||
itid <- fmap _unNInt mitid
|
||||
loc <- w ^? cWorld . lWorld . itemLocations . ix itid
|
||||
return $ pointerToItemLocation loc . itUse . uaParams . apProjectiles %~ delete pjid
|
||||
itid <- mitid
|
||||
-- loc <- w ^? cWorld . lWorld . itemLocations . ix itid
|
||||
return $ pointerToItemID itid . itUse . uaParams . apProjectiles %~ delete pjid
|
||||
|
||||
trySpin :: Projectile -> World -> World
|
||||
trySpin pj = fromMaybe id $ do
|
||||
|
||||
Reference in New Issue
Block a user