Add newtype to floor item ids
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
module Dodge.TractorBeam.Update where
|
||||
|
||||
import NewInt
|
||||
import Control.Lens
|
||||
import Dodge.Data.World
|
||||
import Geometry
|
||||
@@ -11,7 +12,7 @@ updateTractorBeam w pj
|
||||
| otherwise =
|
||||
( w
|
||||
& cWorld . lWorld . creatures %~ IM.map (tractCr pullVel pos outpos)
|
||||
& cWorld . lWorld . floorItems %~ IM.map (tractFlIt pullVel pos outpos)
|
||||
& cWorld . lWorld . floorItems . unNIntMap %~ IM.map (tractFlIt pullVel pos outpos)
|
||||
, Just (pj & tbTime -~ 1)
|
||||
)
|
||||
where
|
||||
|
||||
Reference in New Issue
Block a user