This commit is contained in:
2022-07-14 21:12:51 +01:00
parent 5463328d41
commit 893a3d5f17
5 changed files with 11 additions and 61 deletions
+1 -7
View File
@@ -21,8 +21,6 @@ import LensHelp
import RandomHelp
import qualified Data.Set as S
import Data.Maybe
--import Data.Tree
-- TODO fix case where the sensor created by sensInsideDoor blocks another door
-- for roomRectAutoLinks-- make the locked door a center door?
@@ -60,11 +58,7 @@ sensorRoomRunPast dt n = do
sensAboveDoor :: DamageType -> Float -> PlacementSpot -> Placement
sensAboveDoor sensetype wth ps = extTrigLitPos
(atFstLnkOutShiftBy (\(p,a) -> (p +.+ rotateV a (V2 18.5 (-2.5)), a)))
( \tp -> Just $ damageSensor sensetype wth (_plMID tp) --(upf $ fromJust $ _plMID tp)
ps )
where
upf trid mc w | _sensAmount (_mcSensor mc) > 900 = w & triggers . ix trid .~ const True
| otherwise = w
( \tp -> Just $ damageSensor sensetype wth (_plMID tp) ps )
sensInsideDoor :: DamageType -> Int -> Room -> Room
sensInsideDoor senseType outplid rm = rm