More streaming refactoring
This commit is contained in:
@@ -6,7 +6,7 @@ import Dodge.Wall.Damage
|
||||
--import Dodge.SoundLogic
|
||||
import Dodge.Block.Debris
|
||||
import Dodge.Base.Collide
|
||||
import Dodge.Zone
|
||||
--import Dodge.Zone
|
||||
import Dodge.Creature.HandPos
|
||||
--import Dodge.ChainEffect
|
||||
import Dodge.Default.Weapon
|
||||
@@ -24,7 +24,7 @@ import Shape
|
||||
--import Sound.Data
|
||||
import LensHelp
|
||||
|
||||
import qualified Data.IntMap.Strict as IM
|
||||
--import qualified Data.IntMap.Strict as IM
|
||||
|
||||
shatterGun :: Item
|
||||
shatterGun = defaultWeapon
|
||||
@@ -46,9 +46,8 @@ shatterGunSPic _ = noPic $ colorSH blue $
|
||||
xa = 1
|
||||
xb = 9
|
||||
shootShatter :: Item -> Creature -> World -> World
|
||||
shootShatter it cr w = maybe w (uncurry $ shatterWall w sp ep) $ collidePointWallsWall sp ep
|
||||
$ IM.filter canshatter
|
||||
$ wallsAlongLine sp ep w
|
||||
shootShatter it cr w = maybe w (uncurry $ shatterWall w sp ep) $ sequence
|
||||
$ collidePointWallsFilterStream canshatter sp ep w
|
||||
where
|
||||
canshatter wl = case _wlOpacity wl of
|
||||
Opaque -> True
|
||||
|
||||
Reference in New Issue
Block a user