mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-20 12:29:23 +01:00
d7706ece53
1. Look up now follows your mob (no more auto-removal when you move, only when you go below a solid tile). Maybe add a hotkey? 2. Made the codebase work with the latest version of spacemandmm lint. 3. Advanced kits don't work on robotic limbs. 4. Density shifting should now always use set_density. Ported TRAIT_UNDENSE from CM to better control the density of living mobs. Fixes weird shifting behaviour with wall leaning -- what was happening is that mob density was getting reset to TRUE because the mob wasn't lying down. 5. TGUI say light prefs actually save. --------- Co-authored-by: Matt Atlas <liermattia@gmail.com>
9 lines
389 B
Plaintext
9 lines
389 B
Plaintext
/// Called on [/mob/living/Initialize(mapload)], for the mob to register to relevant signals.
|
|
/mob/living/proc/register_init_signals()
|
|
RegisterSignals(src, list(SIGNAL_ADDTRAIT(TRAIT_UNDENSE), SIGNAL_REMOVETRAIT(TRAIT_UNDENSE)), PROC_REF(undense_changed))
|
|
|
|
/// Called when [TRAIT_UNDENSE] is gained or lost
|
|
/mob/living/proc/undense_changed(datum/source)
|
|
SIGNAL_HANDLER
|
|
update_density()
|