Add indicator light to switch doors
This commit is contained in:
+5
-3
@@ -14,7 +14,9 @@ import Dodge.Layout.Tree.Annotate
|
||||
import Dodge.Layout.Tree.Shift
|
||||
import Dodge.Creature
|
||||
import Dodge.LevelGen.Data
|
||||
import Dodge.LevelGen.Switch
|
||||
import Dodge.Item.Weapon.Launcher
|
||||
import Dodge.PlacementSpot
|
||||
import MonadHelp
|
||||
import Data.Tree
|
||||
import Color
|
||||
@@ -34,9 +36,9 @@ initialAnoTree = padSucWithCorridors $ treeFromTrunk
|
||||
[[StartRoom]
|
||||
,[ChainAnos
|
||||
[[SetLabel 0 $ return $ roomRectAutoLinks 200 200
|
||||
& rmExtPmnt ?~ triggerSwitch red
|
||||
(anyLnkInPS 5 & psLnkRoomEff .~ (putWireStart 0 . extractRoomPos) )
|
||||
& rmLinkEff .~ [putWireEnd 0]
|
||||
& rmExtPmnt ?~ triggerSwitchSPicLight (drawSwitchWire red red)
|
||||
(anyLnkInPS 5 & psLnkRoomEff .~ (putWireStart 0 . extractRoomPos) )
|
||||
& rmLinkEff .~ [putWireEnd 0]
|
||||
]
|
||||
,[UseLabel 0 $ return switchDoorRoom]
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user