Split gasses and clouds
This commit is contained in:
@@ -15,14 +15,11 @@ makeGasCloud ::
|
||||
Point2 ->
|
||||
World ->
|
||||
World
|
||||
makeGasCloud pos vel = cWorld . lWorld . clouds .:~ theCloud
|
||||
where
|
||||
theCloud =
|
||||
Cloud
|
||||
{ _clPos = addZ 20 pos
|
||||
, _clVel = addZ 0 vel
|
||||
, _clTimer = 400
|
||||
, _clType = GasCloud
|
||||
makeGasCloud pos vel = cWorld . lWorld . gasses .:~ Gas
|
||||
{ _gsPos = addZ 20 pos
|
||||
, _gsVel = addZ 0 vel
|
||||
, _gsTimer = 400
|
||||
, _gsType = PoisonGas
|
||||
}
|
||||
|
||||
{- Attach poison cloud damage to creatures near cloud. -}
|
||||
|
||||
Reference in New Issue
Block a user