Work on room generation/laser run past
This commit is contained in:
@@ -17,11 +17,18 @@ damageSensor dt wdth mtrid ps = pContID ps (PutLS $ lsPosCol (V3 0 0 30) 0.1) $
|
||||
PutMachine
|
||||
(reverse $ square wdth)
|
||||
( defaultMachine
|
||||
& mcMaterial .~ mattype
|
||||
& mcMounts . at OTTrigger .~ mtrid
|
||||
& mcMounts . at OTLightSource ?~ lsid
|
||||
& mcType .~ McDamSensor (DamSensor 0 dt)
|
||||
)
|
||||
Nothing
|
||||
where
|
||||
mattype = case dt of
|
||||
LaserSensor -> Photovoltaic
|
||||
ElectricSensor -> LightningRod
|
||||
ThermalSensor -> Pyroelectric
|
||||
PhysicalSensor -> Piezoelectric
|
||||
|
||||
lightSensor :: Float -> Maybe Int -> PlacementSpot -> Placement
|
||||
lightSensor = damageSensor LaserSensor
|
||||
|
||||
Reference in New Issue
Block a user