airalarm
![code/modules/atmospherics/machinery/air_alarm/_air_alarm.dm 3](git.png)
Vars | |
aidisabled | Boolean to prevent AI from tampering with this alarm. |
---|---|
air_sensor_chamber_id | Used to link air alarm to air sensor via map helpers |
alarm_manager | Represents a signel source of atmos alarms, complains to all the listeners if one of our thresholds is violated |
all_access | Used for air alarm helper called all_access to remove air alarm's required access. |
allow_link_change | Whether it is possible to link/unlink this air alarm from a sensor |
away_general_access | Used for air alarm helper called away_general_access to make air alarm's required access away_general_access. |
buildstage | Current build stage. [AIRALARM_BUILD_COMPLETE], [AIRALARM_BUILD_NO_WIRES], [AIRALARM_BUILD_NO_CIRCUIT] |
connected_sensor | Used for connecting air alarm to a remote tile/zone via air sensor instead of the tile/zone of the air alarm |
danger_level | Current alert level of our air alarm. AIR_ALARM_ALERT_NONE, [AIR_ALARM_ALERT_MINOR], [AIR_ALARM_ALERT_SEVERE] |
engine_access | Used for air alarm helper called engine_access to make air alarm's required access one of ACCESS_ATMOSPHERICS & ACCESS_ENGINEERING. |
locked | Boolean for whether the current air alarm can be tweaked by players or not. |
mixingchamber_access | Used for air alarm helper called mixingchamber_access to make air alarm's required access one of ACCESS_ATMOSPHERICS & ACCESS_ORDNANCE. |
my_area | A reference to the area we are in |
selected_mode | Currently selected mode of the alarm. An instance of /datum/air_alarm_mode. |
shorted | Boolean of whether alarm is currently shorted. Mess up some functionalities. |
syndicate_access | Used for air alarm helper called syndicate_access to make air alarm's required access syndicate_access. |
tlv_cold_room | Used for air alarm helper called tlv_cold_room to adjust alarm thresholds for cold room. |
tlv_collection | An assoc list of datum/tlvs, indexed by "pressure", "temperature", and datum/gas typepaths. |
tlv_no_checks | Used for air alarm helper called tlv_no_ckecks to remove alarm thresholds. |
unlocked | Used for air alarm helper called unlocked to make air alarm unlocked. |
warning_cooldown | Cooldown on sending warning messages |
warning_message | Warning message spoken by air alarms |
Procs | |
check_danger | Check the current air and update our danger level. /obj/machinery/airalarm/var/danger_level |
connect_sensor | Used to connect air alarm with a sensor |
disconnect_sensor | Used to reset the air alarm to default configuration after disconnecting from air sensor |
give_all_access | Used for all_access air alarm helper, which set air alarm's required access to null. |
give_away_general_access | Used for away_general_access air alarm helper, which set air alarm's required access to away_general_access. |
give_engine_access | Used for engine_access air alarm helper, which set air alarm's required access to away_general_access. |
give_mixingchamber_access | Used for mixingchamber_access air alarm helper, which set air alarm's required access to away_general_access. |
give_syndicate_access | Used for syndicate_access air alarm helper, which sets air alarm's required access to syndicate_access. |
set_tlv_cold_room | Used for air alarm cold room tlv helper, which sets cold room temperature and pressure alarm thresholds |
set_tlv_no_checks | Used for air alarm no tlv helper, which removes alarm thresholds |
setup_chamber_link | Used for air alarm link helper, which connects air alarm to a sensor with corresponding chamber_id |
unlock | Used for unlocked air alarm helper, which unlocks the air alarm. |
Var Details
aidisabled
![code/modules/atmospherics/machinery/air_alarm/_air_alarm.dm 29](git.png)
Boolean to prevent AI from tampering with this alarm.
air_sensor_chamber_id
![code/modules/atmospherics/machinery/air_alarm/_air_alarm.dm 75](git.png)
Used to link air alarm to air sensor via map helpers
alarm_manager
![code/modules/atmospherics/machinery/air_alarm/_air_alarm.dm 37](git.png)
Represents a signel source of atmos alarms, complains to all the listeners if one of our thresholds is violated
all_access
![code/modules/atmospherics/machinery/air_alarm/_air_alarm.dm 55](git.png)
Used for air alarm helper called all_access to remove air alarm's required access.
allow_link_change
![code/modules/atmospherics/machinery/air_alarm/_air_alarm.dm 77](git.png)
Whether it is possible to link/unlink this air alarm from a sensor
away_general_access
![code/modules/atmospherics/machinery/air_alarm/_air_alarm.dm 49](git.png)
Used for air alarm helper called away_general_access to make air alarm's required access away_general_access.
buildstage
![code/modules/atmospherics/machinery/air_alarm/_air_alarm.dm 34](git.png)
Current build stage. [AIRALARM_BUILD_COMPLETE], [AIRALARM_BUILD_NO_WIRES], [AIRALARM_BUILD_NO_CIRCUIT]
connected_sensor
![code/modules/atmospherics/machinery/air_alarm/_air_alarm.dm 73](git.png)
Used for connecting air alarm to a remote tile/zone via air sensor instead of the tile/zone of the air alarm
danger_level
![code/modules/atmospherics/machinery/air_alarm/_air_alarm.dm 19](git.png)
Current alert level of our air alarm. AIR_ALARM_ALERT_NONE, [AIR_ALARM_ALERT_MINOR], [AIR_ALARM_ALERT_SEVERE]
engine_access
![code/modules/atmospherics/machinery/air_alarm/_air_alarm.dm 51](git.png)
Used for air alarm helper called engine_access to make air alarm's required access one of ACCESS_ATMOSPHERICS & ACCESS_ENGINEERING.
locked
![code/modules/atmospherics/machinery/air_alarm/_air_alarm.dm 27](git.png)
Boolean for whether the current air alarm can be tweaked by players or not.
mixingchamber_access
![code/modules/atmospherics/machinery/air_alarm/_air_alarm.dm 53](git.png)
Used for air alarm helper called mixingchamber_access to make air alarm's required access one of ACCESS_ATMOSPHERICS & ACCESS_ORDNANCE.
my_area
![code/modules/atmospherics/machinery/air_alarm/_air_alarm.dm 24](git.png)
A reference to the area we are in
selected_mode
![code/modules/atmospherics/machinery/air_alarm/_air_alarm.dm 22](git.png)
Currently selected mode of the alarm. An instance of /datum/air_alarm_mode.
shorted
![code/modules/atmospherics/machinery/air_alarm/_air_alarm.dm 31](git.png)
Boolean of whether alarm is currently shorted. Mess up some functionalities.
syndicate_access
![code/modules/atmospherics/machinery/air_alarm/_air_alarm.dm 47](git.png)
Used for air alarm helper called syndicate_access to make air alarm's required access syndicate_access.
tlv_cold_room
![code/modules/atmospherics/machinery/air_alarm/_air_alarm.dm 58](git.png)
Used for air alarm helper called tlv_cold_room to adjust alarm thresholds for cold room.
tlv_collection
![code/modules/atmospherics/machinery/air_alarm/_air_alarm.dm 42](git.png)
An assoc list of datum/tlvs, indexed by "pressure", "temperature", and datum/gas typepaths.
tlv_no_checks
![code/modules/atmospherics/machinery/air_alarm/_air_alarm.dm 60](git.png)
Used for air alarm helper called tlv_no_ckecks to remove alarm thresholds.
unlocked
![code/modules/atmospherics/machinery/air_alarm/_air_alarm.dm 45](git.png)
Used for air alarm helper called unlocked to make air alarm unlocked.
warning_cooldown
![code/modules/atmospherics/machinery/air_alarm/_air_alarm.dm 70](git.png)
Cooldown on sending warning messages
warning_message
![code/modules/atmospherics/machinery/air_alarm/_air_alarm.dm 64](git.png)
Warning message spoken by air alarms
Proc Details
check_danger
Check the current air and update our danger level. /obj/machinery/airalarm/var/danger_level
connect_sensor
Used to connect air alarm with a sensor
disconnect_sensor
Used to reset the air alarm to default configuration after disconnecting from air sensor
give_all_access
Used for all_access air alarm helper, which set air alarm's required access to null.
give_away_general_access
Used for away_general_access air alarm helper, which set air alarm's required access to away_general_access.
give_engine_access
Used for engine_access air alarm helper, which set air alarm's required access to away_general_access.
give_mixingchamber_access
Used for mixingchamber_access air alarm helper, which set air alarm's required access to away_general_access.
give_syndicate_access
Used for syndicate_access air alarm helper, which sets air alarm's required access to syndicate_access.
set_tlv_cold_room
Used for air alarm cold room tlv helper, which sets cold room temperature and pressure alarm thresholds
set_tlv_no_checks
Used for air alarm no tlv helper, which removes alarm thresholds
setup_chamber_link
Used for air alarm link helper, which connects air alarm to a sensor with corresponding chamber_id
unlock
Used for unlocked air alarm helper, which unlocks the air alarm.