mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 05:30:05 +01:00
Airlock name mapping helper (#65581)
* Airlock Autoname Helper * BYOND moment * Update mapping_helpers.dmi * Update airlock.dm
This commit is contained in:
@@ -121,6 +121,7 @@
|
||||
var/detonated = FALSE
|
||||
var/abandoned = FALSE
|
||||
var/cutAiWire = FALSE
|
||||
var/autoname = FALSE
|
||||
var/doorOpen = 'sound/machines/airlock.ogg'
|
||||
var/doorClose = 'sound/machines/airlockclose.ogg'
|
||||
var/doorDeni = 'sound/machines/deniedbeep.ogg' // i'm thinkin' Deni's
|
||||
@@ -204,6 +205,8 @@
|
||||
panel_open = TRUE
|
||||
if(cutAiWire)
|
||||
wires.cut(WIRE_AI)
|
||||
if(autoname)
|
||||
name = get_area_name(src, TRUE)
|
||||
update_appearance()
|
||||
|
||||
|
||||
|
||||
@@ -180,6 +180,16 @@
|
||||
else
|
||||
airlock.cutAiWire = TRUE
|
||||
|
||||
/obj/effect/mapping_helpers/airlock/autoname
|
||||
name = "airlock autoname helper"
|
||||
icon_state = "airlock_autoname"
|
||||
|
||||
/obj/effect/mapping_helpers/airlock/autoname/payload(obj/machinery/door/airlock/airlock)
|
||||
if(airlock.autoname)
|
||||
log_mapping("[src] at [AREACOORD(src)] tried to autoname the [airlock] but it's already autonamed!")
|
||||
else
|
||||
airlock.autoname = TRUE
|
||||
|
||||
//needs to do its thing before spawn_rivers() is called
|
||||
INITIALIZE_IMMEDIATE(/obj/effect/mapping_helpers/no_lava)
|
||||
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Reference in New Issue
Block a user