mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-10 06:34:45 +01:00
515 Compatibility (#19636)
* 515 compat * double spaces * Callback documentation, aa review * spacing * NAMEOF_STATIC * big beta
This commit is contained in:
@@ -315,7 +315,7 @@ GLOBAL_LIST_EMPTY(fax_blacklist)
|
||||
flick(receive_anim, src)
|
||||
|
||||
playsound(loc, 'sound/goonstation/machines/printer_dotmatrix.ogg', 50, 1)
|
||||
addtimer(CALLBACK(src, .proc/print_fax, incoming), 2 SECONDS)
|
||||
addtimer(CALLBACK(src, PROC_REF(print_fax), incoming), 2 SECONDS)
|
||||
return TRUE
|
||||
|
||||
/obj/machinery/photocopier/faxmachine/proc/print_fax(obj/item/incoming)
|
||||
|
||||
@@ -360,7 +360,7 @@ GLOBAL_LIST_INIT(SpookyGhosts, list("ghost","shade","shade2","ghost-narsie","hor
|
||||
if(user.mind && user.mind.assigned_role == "Chaplain" && see_ghosts)
|
||||
if(prob(24))
|
||||
handle_haunt(user)
|
||||
addtimer(CALLBACK(src, .proc/reset_cooldown), 6.4 SECONDS) // fucking magic numbers
|
||||
addtimer(CALLBACK(src, PROC_REF(reset_cooldown)), 6.4 SECONDS) // fucking magic numbers
|
||||
|
||||
/obj/item/camera/proc/reset_cooldown()
|
||||
icon_state = icon_on
|
||||
@@ -484,7 +484,7 @@ GLOBAL_LIST_INIT(SpookyGhosts, list("ghost","shade","shade2","ghost-narsie","hor
|
||||
icon_state = icon_off
|
||||
on = FALSE
|
||||
on_cooldown = TRUE
|
||||
addtimer(CALLBACK(src, .proc/reset_cooldown), 6.4 SECONDS) // magic numbers here too
|
||||
addtimer(CALLBACK(src, PROC_REF(reset_cooldown)), 6.4 SECONDS) // magic numbers here too
|
||||
|
||||
/obj/item/camera/digital/captureimage(atom/target, mob/user, flag)
|
||||
if(saved_pictures.len >= max_storage)
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
/obj/machinery/door_control/ticket_machine_button/attack_hand(mob/user)
|
||||
if(allowed(usr) || user.can_advanced_admin_interact())
|
||||
icon_state = "doorctrl1"
|
||||
addtimer(CALLBACK(src, /atom/.proc/update_icon), 15)
|
||||
addtimer(CALLBACK(src, TYPE_PROC_REF(/atom, update_icon)), 15)
|
||||
for(var/obj/machinery/ticket_machine/M in GLOB.machines)
|
||||
if(M.id == id)
|
||||
if(cooldown)
|
||||
@@ -179,7 +179,7 @@
|
||||
tickets += theirticket
|
||||
if(emagged) //Emag the machine to destroy the HOP's life.
|
||||
ready = FALSE
|
||||
addtimer(CALLBACK(src, .proc/reset_cooldown), cooldown)//Small cooldown to prevent piles of flaming tickets
|
||||
addtimer(CALLBACK(src, PROC_REF(reset_cooldown)), cooldown)//Small cooldown to prevent piles of flaming tickets
|
||||
theirticket.fire_act()
|
||||
user.drop_item()
|
||||
user.adjust_fire_stacks(1)
|
||||
|
||||
Reference in New Issue
Block a user