Start work on clouds, damage, sensors

This commit is contained in:
2025-06-06 22:53:41 +01:00
parent d2d4642380
commit 7bee1549bf
25 changed files with 325 additions and 312 deletions
+7 -7
View File
@@ -13,7 +13,7 @@ import Dodge.LightSource
import Geometry
damageSensor ::
DamageType ->
SensorType ->
Float ->
Maybe Int ->
PlacementSpot ->
@@ -42,16 +42,16 @@ damageSensor dt wdth mtrid ps = pContID ps (PutLS $ lsPosCol (V3 0 0 30) 0.1) $
defaultSensorWall
)
damageTypeThreshold :: DamageType -> Int
damageTypeThreshold :: SensorType -> Int
damageTypeThreshold dt = case dt of
FLAMING -> 1000
LASERING -> 1000
ELECTRICAL -> 500
_ -> undefined
LaserSensor -> 1000
ElectricSensor -> 500
ThermalSensor -> 1000
PhysicalSensor -> 1000
lightSensor ::
Float ->
Maybe Int ->
PlacementSpot ->
Placement
lightSensor = damageSensor LASERING
lightSensor = damageSensor LaserSensor