Add destruction to mounted lights
This commit is contained in:
@@ -44,6 +44,11 @@ doWdWd we = case we of
|
||||
MakeTempLight x t ->
|
||||
(cWorld . lWorld . lights .:~ x)
|
||||
. (cWorld . lWorld . worldEvents .:~ MakeTempLight x (t -1))
|
||||
MakeTempLightFade _ _ 0 -> id
|
||||
MakeTempLightFade y x t ->
|
||||
(cWorld . lWorld . lights .:~ x)
|
||||
. (cWorld . lWorld . worldEvents
|
||||
.:~ MakeTempLightFade y (x&lsCol . each -~ y) (t -1))
|
||||
UseInvItem invid pt -> \w -> fromMaybe w (useItem invid pt w)
|
||||
WdWdBurstFireRepetition cid invid -> \w -> fromMaybe w $ do
|
||||
cr <- w ^? cWorld . lWorld . creatures . ix cid
|
||||
|
||||
Reference in New Issue
Block a user