mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-09 16:05:07 +00:00
## About The Pull Request hey turns out the overlays for this were not working for a good while, probably ever since #67144 because that merged the procs for deconstruct/lights overlay handling into one but didn't adjust the code or something. this PR fixes that plus adds an overlay update during toggling safety of the nuke so both overlays work as expected. also fixes disarming of the nuke still showing the red armed lights. also adds more to the decsription of the devices because why the hell not (worst case if overlays break again people can examine the damn thing to make sure)  ## Why It's Good For The Game Fixes #68322 more feedback equal good ## Changelog 🆑 fix: fixed nuclear devices not showing the overlays for deconstruction states and lights for arming state properly qol: more examine feedback for nuclear devices (deconstruction/arming state) /🆑
48 lines
2.0 KiB
Plaintext
48 lines
2.0 KiB
Plaintext
// Nuclear bomb de/construction status
|
|
///Pristine condition, no tampering has occurred yet
|
|
#define NUKESTATE_INTACT 5
|
|
///Front panel has been unscrewed
|
|
#define NUKESTATE_UNSCREWED 4
|
|
///Front panel has been removed with a crowbar, exposing the reinforced cover
|
|
#define NUKESTATE_PANEL_REMOVED 3
|
|
///Reinforced cover has been welded, preparing it for removal
|
|
#define NUKESTATE_WELDED 2
|
|
///Reinforced cover has been removed with a crowbar, revealing the core
|
|
#define NUKESTATE_CORE_EXPOSED 1
|
|
///Nuke core removed with the special kit
|
|
#define NUKESTATE_CORE_REMOVED 0
|
|
|
|
// Nuclear bomb UI modes
|
|
///Device is locked and is awaiting the disk for further operations (additionally shows time left if armed)
|
|
#define NUKEUI_AWAIT_DISK 0
|
|
///Device is awaiting activation codes input
|
|
#define NUKEUI_AWAIT_CODE 1
|
|
///Device is awaiting timer input
|
|
#define NUKEUI_AWAIT_TIMER 2
|
|
///Device is awaiting confirmation of arming process and shows the time set
|
|
#define NUKEUI_AWAIT_ARM 3
|
|
///Device is counting down to setting off the charge
|
|
#define NUKEUI_TIMING 4
|
|
///Device is setting off the charge, aka `proc/actually_explode()`
|
|
#define NUKEUI_EXPLODED 5
|
|
|
|
// Nuclear bomb states
|
|
///Device has not received activation codes and no timer have been set, all lights are off
|
|
#define NUKE_OFF_LOCKED 0
|
|
///Device has received activation codes and the timer is set; awaiting arming and the safety warning lights are on
|
|
#define NUKE_OFF_UNLOCKED 1
|
|
///Device is counting down to setting off the charge, red lights are on
|
|
#define NUKE_ON_TIMING 2
|
|
///Device is setting off the charge, aka `proc/actually_explode()`, red lights are blinking fast
|
|
#define NUKE_ON_EXPLODING 3
|
|
|
|
// Nuclear bomb detonation statuses
|
|
// These line up with roundend reports
|
|
#define DETONATION_HIT_STATION STATION_DESTROYED_NUKE
|
|
#define DETONATION_HIT_SYNDIE_BASE NUKE_SYNDICATE_BASE
|
|
#define DETONATION_NEAR_MISSED_STATION NUKE_NEAR_MISS
|
|
#define DETONATION_MISSED_STATION NUKE_MISS_STATION
|
|
|
|
/// Default code for nukes, intentionally impossible to enter on the UI
|
|
#define NUKE_CODE_UNSET "ADMIN"
|