Add airlocks
This commit is contained in:
@@ -61,10 +61,16 @@ placeSpot ps w = case ps of
|
||||
-> placePressPlate pp p rot w
|
||||
PS {_psType = RandPS rgen}
|
||||
-> placeSpot (set psType evaluatedType ps) (set randGen g w)
|
||||
where (evaluatedType, g) = runState rgen (_randGen w)
|
||||
where
|
||||
(evaluatedType, g) = runState rgen (_randGen w)
|
||||
|
||||
PS {_psPos = p, _psRot = rot, _psType = PutTriggerDoor col f a b}
|
||||
-> addTriggerDoor col f (shiftPointBy (p,rot) a) (shiftPointBy (p,rot) b) w
|
||||
PS {_psPos = p, _psRot = rot, _psType = PutDoor col f pss}
|
||||
-> putDoor col f (map (mapBoth $ shiftPointBy (p,rot)) pss) w
|
||||
where
|
||||
mapBoth fn (x,y) = (fn x, fn y)
|
||||
|
||||
PS {_psPos = p, _psRot = rot, _psType = PutDoubleDoor col f a b}
|
||||
-> putDoubleDoor col f (shiftPointBy (p,rot) a) (shiftPointBy (p,rot) b) w
|
||||
|
||||
PS {_psPos = p, _psRot = rot, _psType = PutAutoDoor a b}
|
||||
-> addAutoDoor (shiftPointBy (p,rot) a) (shiftPointBy (p,rot) b) w
|
||||
|
||||
Reference in New Issue
Block a user