Cortical Borer Fixes (#18760)

* borer fixes

* Update code/modules/mob/living/simple_mob/subtypes/animal/borer/borer_powers.dm

Co-authored-by: Cameron Lennox <killer65311@gmail.com>

* corrections

* foundation cleanups

* utility procs

* some fixes

* assorted fixes

* tweaks

* reorganizing

* not needed

* ghost cleanup

* organization

* motion tracker fix

* yet more cleanup

* logging

* cache rounding

---------

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
Will
2025-11-25 20:15:07 -05:00
committed by GitHub
co-authored by Cameron Lennox
parent 4e2a1c6acd
commit c81ae60a60
18 changed files with 676 additions and 454 deletions
@@ -268,7 +268,7 @@
dat += "<br>"
// if (M.reagents && M.reagents.get_reagent_amount(REAGENT_ID_INAPROVALINE))
// user.show_message(span_notice("Bloodstream Analysis located [M.reagents:get_reagent_amount(REAGENT_ID_INAPROVALINE)] units of rejuvenation chemicals."))
if (M.has_brain_worms())
if (advscan >= 2 && M.has_brain_worms()) // Borers need to hide
dat += span_warning("Subject suffering from aberrant brain activity. Recommend further scanning.")
dat += "<br>"
else if (M.getBrainLoss() >= 60 || !M.has_brain())
@@ -19,11 +19,14 @@
/obj/item/motiontracker/Initialize(mapload)
RegisterSignal(SSmotiontracker, COMSIG_MOVABLE_MOTIONTRACKER, PROC_REF(handle_motion_tracking))
. = ..()
if(ismob(loc))
var/mob/M = loc
M.motiontracker_subscribe()
/obj/item/motiontracker/Destroy(force, ...)
if(ismob(loc))
var/mob/M = loc
M.motiontracker_subscribe()
M.motiontracker_unsubscribe()
UnregisterSignal(SSmotiontracker, COMSIG_MOVABLE_MOTIONTRACKER)
. = ..()