mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 03:27:05 +01:00
515 Compatibility (#19636)
* 515 compat * double spaces * Callback documentation, aa review * spacing * NAMEOF_STATIC * big beta
This commit is contained in:
@@ -249,7 +249,7 @@
|
||||
if(!current_area)
|
||||
return
|
||||
if(on)
|
||||
RegisterSignal(current_area, COMSIG_AREA_POWER_CHANGE, .proc/AreaPowerCheck)
|
||||
RegisterSignal(current_area, COMSIG_AREA_POWER_CHANGE, PROC_REF(AreaPowerCheck))
|
||||
else
|
||||
UnregisterSignal(current_area, COMSIG_AREA_POWER_CHANGE)
|
||||
|
||||
|
||||
@@ -313,7 +313,7 @@ GLOBAL_LIST_INIT(default_medbay_channels, list(
|
||||
universal_speak = TRUE
|
||||
|
||||
/mob/living/automatedannouncer/New()
|
||||
lifetime_timer = addtimer(CALLBACK(src, .proc/autocleanup), 10 SECONDS, TIMER_STOPPABLE)
|
||||
lifetime_timer = addtimer(CALLBACK(src, PROC_REF(autocleanup)), 10 SECONDS, TIMER_STOPPABLE)
|
||||
..()
|
||||
|
||||
/mob/living/automatedannouncer/Destroy()
|
||||
@@ -463,7 +463,7 @@ GLOBAL_LIST_INIT(default_medbay_channels, list(
|
||||
tcm.zlevels = list(position.z)
|
||||
if(!instant)
|
||||
// Simulate two seconds of lag
|
||||
addtimer(CALLBACK(src, .proc/broadcast_callback, tcm), 2 SECONDS)
|
||||
addtimer(CALLBACK(src, PROC_REF(broadcast_callback), tcm), 2 SECONDS)
|
||||
else
|
||||
// Nukeops + Deathsquad headsets are instant and should work the same, whether there is comms or not, on all z levels
|
||||
for(var/z in 1 to world.maxz)
|
||||
@@ -591,7 +591,7 @@ GLOBAL_LIST_INIT(default_medbay_channels, list(
|
||||
/obj/item/radio/emp_act(severity)
|
||||
on = FALSE
|
||||
disable_timer++
|
||||
addtimer(CALLBACK(src, .proc/enable_radio), rand(100, 200))
|
||||
addtimer(CALLBACK(src, PROC_REF(enable_radio)), rand(100, 200))
|
||||
|
||||
if(listening)
|
||||
visible_message("<span class='warning'>[src] buzzes violently!</span>")
|
||||
|
||||
Reference in New Issue
Block a user