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
@@ -114,7 +114,7 @@ GLOBAL_LIST_INIT(hallucinations, list(
* * delay - Delay in deciseconds.
*/
/obj/effect/hallucination/proc/clear_icon_in(image/I, delay)
addtimer(CALLBACK(src, .proc/clear_icon, I), delay)
addtimer(CALLBACK(src, PROC_REF(clear_icon), I), delay)
/**
* Clears all images from the hallucination.
@@ -141,4 +141,4 @@ GLOBAL_LIST_INIT(hallucinations, list(
if(time == 0) // whatever
target?.playsound_local(source, snd, volume, vary, frequency)
return
addtimer(CALLBACK(target, /mob/.proc/playsound_local, source, snd, volume, vary, frequency), time)
addtimer(CALLBACK(target, TYPE_PROC_REF(/mob, playsound_local), source, snd, volume, vary, frequency), time)