Area display names (#21070)

Little more tuneup of area metadata, and also replaces area.name in
several locations with dynamic area display names (for example:
announcement that something was beamed aboard a thruster will once more
indicate whether it was the port or starboard thruster).
This commit is contained in:
Batrachophreno
2025-08-01 19:51:44 +00:00
committed by GitHub
parent 944658fb86
commit 8c3e85f3fe
12 changed files with 497 additions and 434 deletions
+2 -1
View File
@@ -108,7 +108,8 @@
/atom/proc/get_alarm_name()
var/area/A = get_area(src)
return A.name
var/display_name = get_area_display_name(A)
return display_name
/area/get_alarm_name()
return name
+1 -1
View File
@@ -12,7 +12,7 @@
var/area/a = random_station_area()
spawn_loc = a.random_space()
location_name = a.name
location_name = get_area_display_name(a)
if(prob(90))
var/rarity = 4
@@ -2,7 +2,7 @@
#define VINE_GROWTH_STAGES 5
/proc/spacevine_infestation(var/potency_min=70, var/potency_max=100, var/maturation_min=1, var/maturation_max=3)
var/turf/T = pick_subarea_turf(/area/hallway, list(/proc/is_station_turf, /proc/not_turf_contains_dense_objects))
var/turf/T = pick_subarea_turf(/area/horizon/hallway, list(/proc/is_station_turf, /proc/not_turf_contains_dense_objects))
if(T)
var/datum/seed/seed = SSplants.create_random_seed(TRUE, SEED_NOUN_PITS)
seed.set_trait(TRAIT_SPREAD,2) // So it will function properly as vines.
@@ -15,8 +15,9 @@
vine.health = vine.max_health
vine.mature_time = 0
vine.process()
var/area_display_name = get_area_display_name(get_area(T))
log_and_message_admins("Spacevines spawned at \the [get_area(T)]", location = T)
log_and_message_admins("Spacevines spawned at \the [area_display_name]", location = T)
return
log_and_message_admins(SPAN_NOTICE("Event: Spacevines failed to find a viable turf."))
@@ -215,10 +215,7 @@
var/area/A = get_area(src)
var/area_name
if(holding_gps)
if(is_station_area(A))
area_name = get_area_display_name(A)
else
area_name = A.name
area_name = get_area_display_name(A)
. += "[area_name]"
. += ""
if(A.area_blurb)