Area sensitivity restoration - fixes ambience, ship hum, gravity, area blurbs, etc. (#21788)

Finally tracked this rat bastard down; requisite trait assignment was
removed from mobs at some point.

Drifting in zero-gravity works again (including throwing things to
change speed and direction).
Area text blurbs work again (my band-aid fix adding them to status
window has been removed).
Random ambience sounds now play again.
Ship hum works again while on the Horizon.
Probably fixes more stuff that its removal broke.
This commit is contained in:
Batrachophreno
2026-02-03 20:24:54 +00:00
committed by GitHub
parent 269c29a790
commit 6e308b69e3
4 changed files with 64 additions and 16 deletions
@@ -215,21 +215,6 @@
/mob/living/carbon/human/get_status_tab_items()
. = ..()
/// This needs to be updated to use signals.
var/holding_gps = FALSE
if(istype(src.get_active_hand(), /obj/item/gps) || istype(src.get_inactive_hand(), /obj/item/gps))
holding_gps = TRUE
var/area/A = get_area(src)
var/area_name
if(holding_gps)
area_name = get_area_display_name(A)
. += "[area_name]"
. += ""
if(A.area_blurb)
. += "[A.area_blurb]"
. += ""
. += "Intent: [a_intent]"
. += "Move Mode: [m_intent]"
if(is_diona() && DS)
+4
View File
@@ -103,6 +103,10 @@
become_hearing_sensitive()
// This impacts area/entered(), gravity drifting, and probably plenty more. This will likely
// need to be removed/moved if and when any 'moodlet' system is implemented (ref. TG component).
become_area_sensitive(INNATE_TRAIT)
/**
* Generate the tag for this mob
*