Files
lessthanthree 396b36393c [MIRROR] Incident displays: wallening edition [MDB IGNORE] [NO GBP] (#28784)
* [MIRROR] Incident displays: wallening edition [MDB IGNORE] (#3685)

* Incident displays: wallening edition (#84812)

## About The Pull Request

Redoes the delam/tram incident displays to be wallening compatible.

![image](https://github.com/tgstation/tgstation/assets/83487515/34c4c930-7fe8-4dda-b95a-60d3011cb047)

## Why It's Good For The Game

Looks better, and won't be jank when wallening comes.

## Changelog

🆑 LT3
image: Incident displays got a makeover
/🆑

* Automatic changelog for PR #84812 [ci skip]

* am template

* maps

* Update scram.dm

---------

Co-authored-by: orange man <61334995+comfyorange@users.noreply.github.com>
# Conflicts:
#	_maps/map_files/VoidRaptor/VoidRaptor.dmm
#	modular_skyrat/modules/delam_emergency_stop/code/scram.dm

* Automatic changelog for PR #3685 [ci skip]

* Delam scram counter penalty (#1977)

* penalties for delam scram

* do it in the main check

* max penalty of 16

* reset to 0, shrimple

* reset on activation
# Conflicts:
#	modular_skyrat/modules/delam_emergency_stop/code/scram.dm

* Automatic changelog for PR #1977 [ci skip]

* Update KiloStation.dmm

---------

Co-authored-by: NovaBot <154629622+NovaBot13@users.noreply.github.com>
2024-07-12 09:35:21 +05:30

21 lines
1.1 KiB
Plaintext

/// Location where we save the information about how many rounds it has been since the engine blew up
#define DELAMINATION_COUNT_FILEPATH "data/rounds_since_delamination.txt"
#define DELAMINATION_HIGHSCORE_FILEPATH "data/delamination_highscore.txt"
/datum/controller/subsystem/persistence/proc/load_delamination_counter()
if(!fexists(DELAMINATION_COUNT_FILEPATH))
return
rounds_since_engine_exploded = text2num(file2text(DELAMINATION_COUNT_FILEPATH))
if(fexists(DELAMINATION_HIGHSCORE_FILEPATH))
delam_highscore = text2num(file2text(DELAMINATION_HIGHSCORE_FILEPATH))
for(var/obj/machinery/incident_display/sign as anything in GLOB.map_incident_displays)
sign.update_delam_count(rounds_since_engine_exploded, delam_highscore)
/datum/controller/subsystem/persistence/proc/save_delamination_counter()
rustg_file_write("[rounds_since_engine_exploded + 1]", DELAMINATION_COUNT_FILEPATH)
if((rounds_since_engine_exploded + 1) > delam_highscore)
rustg_file_write("[rounds_since_engine_exploded + 1]", DELAMINATION_HIGHSCORE_FILEPATH)
#undef DELAMINATION_COUNT_FILEPATH
#undef DELAMINATION_HIGHSCORE_FILEPATH