Alerts for breathing plasma/tritium (#24484)
* Alert autoremove v0 * Code cleanup and timing * comment * Tritium, code compression * not resolving manually * reduced lookups, new comp * fix-fix yes * use RemCompDeferred, handle OnUnpaused * missed a todo * entitysystem resolve * remove unnecessary component updates * remove AlertState from comp, move EntityUnpausedEvent actions to AlertStateComponent's Timespan * Code cleanup * comments * combines AutoRemove input into Clear * minor logic adjustment that does not really change anything but is less ambiguous
This commit is contained in:
@@ -68,9 +68,14 @@
|
||||
types:
|
||||
Poison:
|
||||
1
|
||||
# Cant be added until I add metabolism effects on reagent removal
|
||||
#- !type:AdjustAlert
|
||||
# alertType: Toxins
|
||||
# We need a metabolism effect on reagent removal
|
||||
- !type:AdjustAlert
|
||||
alertType: Toxins
|
||||
conditions:
|
||||
- !type:ReagentThreshold
|
||||
min: 1.5
|
||||
clear: True
|
||||
time: 5
|
||||
reactiveEffects:
|
||||
Flammable:
|
||||
methods: [ Touch ]
|
||||
@@ -109,9 +114,14 @@
|
||||
types:
|
||||
Radiation:
|
||||
1
|
||||
# Cant be added until I add metabolism effects on reagent removal
|
||||
#- !type:AdjustAlert
|
||||
# alertType: Toxins
|
||||
# We need a metabolism effect on reagent removal
|
||||
- !type:AdjustAlert
|
||||
alertType: Toxins
|
||||
conditions:
|
||||
- !type:ReagentThreshold
|
||||
min: 1.5
|
||||
clear: True
|
||||
time: 5
|
||||
|
||||
- type: reagent
|
||||
id: CarbonDioxide
|
||||
@@ -148,7 +158,7 @@
|
||||
type: Plant
|
||||
shouldHave: false
|
||||
factor: -4
|
||||
# Cant be added until I add metabolism effects on reagent removal
|
||||
# We need a metabolism effect on reagent removal
|
||||
#- !type:AdjustAlert
|
||||
# alertType: CarbonDioxide
|
||||
|
||||
|
||||
Reference in New Issue
Block a user