mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-31 09:00:25 +01:00
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:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user