515 Compatibility (#19636)

* 515 compat

* double spaces

* Callback documentation, aa review

* spacing

* NAMEOF_STATIC

* big beta
This commit is contained in:
S34N
2022-11-08 23:08:40 +00:00
committed by GitHub
parent 2e7e556383
commit 667dd5d4ac
378 changed files with 928 additions and 919 deletions
@@ -755,7 +755,7 @@ Note that amputating the affected organ does in fact remove the infection from t
for(var/obj/item/I in embedded_objects)
UnregisterSignal(I, COMSIG_MOVABLE_MOVED) // Else it gets removed from the embedded list
I.forceMove(src)
RegisterSignal(I, COMSIG_MOVABLE_MOVED, .proc/remove_embedded_object)
RegisterSignal(I, COMSIG_MOVABLE_MOVED, PROC_REF(remove_embedded_object))
if(!owner.has_embedded_objects())
owner.clear_alert("embeddedobject")
@@ -848,7 +848,7 @@ Note that amputating the affected organ does in fact remove the infection from t
/obj/item/organ/external/proc/add_embedded_object(obj/item/I)
embedded_objects += I
I.forceMove(owner)
RegisterSignal(I, COMSIG_MOVABLE_MOVED, .proc/remove_embedded_object)
RegisterSignal(I, COMSIG_MOVABLE_MOVED, PROC_REF(remove_embedded_object))
//Remove all embedded objects from all limbs on the carbon mob
/mob/living/carbon/human/proc/remove_all_embedded_objects()