Nuke remaining .proc/s (#7981)

Co-authored-by: Selis <sirlionfur@hotmail.de>
This commit is contained in:
Raeschen
2024-03-16 17:04:00 +01:00
committed by GitHub
parent 012fab0160
commit 0ab7b1cdee
23 changed files with 46 additions and 46 deletions

View File

@@ -30,12 +30,12 @@
CALLBACK(src, .some_proc_here)
when the above doesn't apply:
.proc/procname
PROC_REF(procname)
Example:
CALLBACK(src, .proc/some_proc_here)
CALLBACK(src, PROC_REF(some_proc_here))
proc defined on a parent of a some type:
Example: /some/type/.proc/some_proc_here
Example: /some/type/PROC_REF(some_proc_here)
Other wise you will have to do the full typepath of the proc (/type/of/thing/proc/procname)
*/

View File

@@ -728,7 +728,7 @@ var/global/datum/controller/occupations/job_master
to_chat(pred, "<span class='warning'>You must be within station grounds to accept.</span>")
return
if(backup)
addtimer(CALLBACK(src, .proc/m_backup_client, C), 5 SECONDS)
addtimer(CALLBACK(src, PROC_REF(m_backup_client), C), 5 SECONDS)
log_admin("[key_name(C)] has vore spawned into [key_name(pred)]")
message_admins("[key_name(C)] has vore spawned into [key_name(pred)]")
to_chat(C, "<span class='notice'>You have been spawned via vore. You are free to roleplay how you got there as you please, such as teleportation or having had already been there.</span>")
@@ -880,7 +880,7 @@ var/global/datum/controller/occupations/job_master
item_to_be = item
item_carrier = carrier
if(backup)
addtimer(CALLBACK(src, .proc/m_backup_client, C), 5 SECONDS)
addtimer(CALLBACK(src, PROC_REF(m_backup_client), C), 5 SECONDS)
else
var/confirm = alert(C, "\The [item.name] is currently not in any character's possession! Do you still want to spawn as it?", "Confirm", "No", "Yes")
if(confirm != "Yes")
@@ -888,7 +888,7 @@ var/global/datum/controller/occupations/job_master
log_and_message_admins("[key_name(C)] has item spawned into \a [item.name] that was not held by anyone")
item_to_be = item
if(backup)
addtimer(CALLBACK(src, .proc/m_backup_client, C), 5 SECONDS)
addtimer(CALLBACK(src, PROC_REF(m_backup_client), C), 5 SECONDS)
if(istype(item, /obj/item/capture_crystal))
var/obj/item/capture_crystal/cryst = item
if(cryst.spawn_mob_type)

View File

@@ -273,7 +273,7 @@
force_open()
if(autoclose && src.operating && !(stat & BROKEN || stat & NOPOWER))
addtimer(CALLBACK(src, PROC_REF(close), 15 SECONDS))
addtimer(CALLBACK(src, PROC_REF(close)), 15 SECONDS)
return 1
// Proc: close()

View File

@@ -53,7 +53,7 @@
/obj/item/mail/Initialize()
. = ..()
RegisterSignal(src, COMSIG_MOVABLE_DISPOSING, .proc/disposal_handling)
RegisterSignal(src, COMSIG_MOVABLE_DISPOSING, PROC_REF(disposal_handling))
// Icons
// Add some random stamps.

View File

@@ -48,7 +48,7 @@
"Security" = radial_image_security
)
var/choice = show_radial_menu(user, src, choices, custom_check = CALLBACK(src, .proc/check_menu, user), require_near = TRUE, tooltips = TRUE)
var/choice = show_radial_menu(user, src, choices, custom_check = CALLBACK(src, PROC_REF(check_menu), user), require_near = TRUE, tooltips = TRUE)
if(!check_menu(user))
return
switch(choice)

View File

@@ -63,7 +63,7 @@
transform = matrix()*0.75
animate(src, transform = matrix()*1.5, time = timetoburst)
// Queue the actual bursting
addtimer(CALLBACK(src, ./proc/burst, creator), timetoburst)
addtimer(CALLBACK(src, PROC_REF(burst), creator), timetoburst)
/obj/effect/resonance/proc/burst(var/creator = null)
var/turf/T = get_turf(src)

View File

@@ -828,7 +828,7 @@
playsound_local(get_turf(src), suit_inhale_sound, 100, pressure_affected = FALSE, volume_channel = VOLUME_CHANNEL_AMBIENCE)
if(!exhale) // Did we fail exhale? If no, play it after inhale finishes.
addtimer(CALLBACK(src, .proc/play_exhale, M), 5 SECONDS)
addtimer(CALLBACK(src, PROC_REF(play_exhale), M), 5 SECONDS)
/mob/living/carbon/human/proc/play_exhale(var/mob/living/M)
var/suit_exhale_sound

View File

@@ -360,7 +360,7 @@
. = ..()
reagents.add_reagent("nutriment", 4)
reagents.add_reagent("slimejelly", 1)
addtimer(CALLBACK(src, ./proc/Grow), rand(120 SECONDS, 150 SECONDS))
addtimer(CALLBACK(src, PROC_REF(Grow)), rand(120 SECONDS, 150 SECONDS))
/obj/item/weapon/reagent_containers/food/snacks/egg/slime/proc/Grow()
grown = 1

View File

@@ -146,7 +146,7 @@
/datum/ai_holder/simple_mob/armadillo/torta/on_hear_say(mob/living/speaker, message)
. = ..()
addtimer(CALLBACK(src, .proc/grande, message), 1 SECOND)
addtimer(CALLBACK(src, PROC_REF(grande), message), 1 SECOND)
/datum/ai_holder/simple_mob/armadillo/torta/proc/grande(var/message)
var/mob/living/simple_mob/animal/passive/armadillo/bol = holder

View File

@@ -765,7 +765,7 @@ I think I covered everything.
var/atom/movable/AM = am
if(AM == src || AM.anchored)
continue
addtimer(CALLBACK(src, .proc/yeet, am), 1)
addtimer(CALLBACK(src, PROC_REF(yeet), am), 1)
playsound(src, "sound/weapons/punchmiss.ogg", 50, 1)
//Split repulse into two parts so I can recycle this later
@@ -798,7 +798,7 @@ I think I covered everything.
do_windup_animation(A, charge_warmup)
//callbacks are more reliable than byond's process scheduler
addtimer(CALLBACK(src, .proc/chargeend, A), charge_warmup)
addtimer(CALLBACK(src, PROC_REF(chargeend), A), charge_warmup)
/mob/living/simple_mob/vore/bigdragon/proc/chargeend(var/atom/A, var/explicit = 0, var/gentle = 0)
@@ -836,7 +836,7 @@ I think I covered everything.
set_AI_busy(TRUE)
flames = 1
build_icons()
addtimer(CALLBACK(src, .proc/firebreathend, A), charge_warmup)
addtimer(CALLBACK(src, PROC_REF(firebreathend), A), charge_warmup)
playsound(src, "sound/magic/Fireball.ogg", 50, 1)
/mob/living/simple_mob/vore/bigdragon/proc/firebreathend(var/atom/A)

View File

@@ -210,7 +210,7 @@ GLOBAL_LIST_INIT(pitcher_plant_lure_messages, list(
prey_excludes += H
vore_selected.release_specific_contents(H)
N = 1
//addtimer(CALLBACK(src, .proc/removeMobFromPreyExcludes, weakref(H)), 1 MINUTES) //At the time of this PR, removeMobFromPreyExcludes breaks prey_excludes by deleting the list which causes problems with the Crossed() vore override before. This can be commented back in if that gets fixed.
//addtimer(CALLBACK(src, PROC_REF(removeMobFromPreyExcludes), weakref(H)), 1 MINUTES) //At the time of this PR, removeMobFromPreyExcludes breaks prey_excludes by deleting the list which causes problems with the Crossed() vore override before. This can be commented back in if that gets fixed.
break
else
to_chat(user, "The victim slips from your grasp!")

View File

@@ -156,7 +156,7 @@
"<span class='italics'>You hear a loud electrical crack!</span>")
playsound(src, 'sound/effects/lightningshock.ogg', 100, 1, extrarange = 5)
tesla_zap(src, 5, power_gen * 0.05)
addtimer(CALLBACK(GLOBAL_PROC, PROC_REF(explosion), get_turf(src), 2, 3, 4, 8), 100) // Not a normal explosion.
addtimer(CALLBACK(GLOBAL_PROC, GLOBAL_PROC_REF(explosion), get_turf(src), 2, 3, 4, 8), 100) // Not a normal explosion.
/obj/machinery/power/rtg/abductor/bullet_act(obj/item/projectile/Proj)
. = ..()

View File

@@ -182,7 +182,7 @@
exploded = 1
// CHOMPEdit Start - Looping Alarms. We want to stop the alarm here.
if(stationcrystal) // Are we an on-station crystal?
addtimer(CALLBACK(src, .proc/reset_alarms), 10 SECONDS, TIMER_STOPPABLE)
addtimer(CALLBACK(src, PROC_REF(reset_alarms)), 10 SECONDS, TIMER_STOPPABLE)
// CHOMPEdit End
sleep(pull_time)

View File

@@ -148,7 +148,7 @@
if(istype(O,/obj/item/stack/material/supermatter))
var/obj/item/stack/material/supermatter/S = O
set_light(l_range = max(1, S.get_amount()/10), l_power = max(1, S.get_amount()/10), l_color = "#8A8A00")
addtimer(CALLBACK(src, .proc/puny_protons), 30 SECONDS)
addtimer(CALLBACK(src, PROC_REF(puny_protons)), 30 SECONDS)
//CHOMPedit end
return 0

View File

@@ -38,7 +38,7 @@ GLOBAL_LIST_EMPTY(bicon_cache) // Cache of the <img> tag results, not the icons
base64 = icon2base64(A.examine_icon(), key)
GLOB.bicon_cache[key] = base64
if(changes_often)
addtimer(CALLBACK(GLOBAL_PROC, .proc/expire_bicon_cache, key), 50 SECONDS, TIMER_UNIQUE)
addtimer(CALLBACK(GLOBAL_PROC, GLOBAL_PROC_REF(expire_bicon_cache), key), 50 SECONDS, TIMER_UNIQUE)
// May add a class to the img tag created by bicon
if(use_class)

View File

@@ -316,7 +316,7 @@ GLOBAL_LIST_EMPTY(bicon_cache) // Cache of the <img> tag results, not the icons
base64 = icon2base64(A.examine_icon(), key)
GLOB.bicon_cache[key] = base64
if(changes_often)
addtimer(CALLBACK(GLOBAL_PROC, PROC_REF(expire_bicon_cache), key), 50 SECONDS, TIMER_UNIQUE)
addtimer(CALLBACK(GLOBAL_PROC, GLOBAL_PROC_REF(expire_bicon_cache), key), 50 SECONDS, TIMER_UNIQUE)
// May add a class to the img tag created by bicon
if(use_class)

View File

@@ -119,7 +119,7 @@ rborosilicate = 12
"BAY" = image(icon = 'modular_chomp/icons/mob/radial.dmi', icon_state = "bay"),
"ERIS" = image(icon = 'modular_chomp/icons/mob/radial.dmi', icon_state = "eris")
)
var/selected_girder_type = show_radial_menu(user, src, wall_types, custom_check = CALLBACK(src, .proc/check_menu, user), require_near = TRUE, tooltips = TRUE)
var/selected_girder_type = show_radial_menu(user, src, wall_types, custom_check = CALLBACK(src, PROC_REF(check_menu), user), require_near = TRUE, tooltips = TRUE)
if(!check_menu(user))
return
switch(selected_girder_type)
@@ -167,7 +167,7 @@ rborosilicate = 12
"Light Switch" = image(icon = 'modular_chomp/icons/mob/radial.dmi', icon_state = "lightswitch"),
"Entertainment Monitor" = image(icon = 'modular_chomp/icons/mob/radial.dmi', icon_state = "entertainment")
)
var/selected_wall_frame_type = show_radial_menu(user, src, wall_frame_types, custom_check = CALLBACK(src, .proc/check_menu, user), require_near = TRUE, tooltips = TRUE)
var/selected_wall_frame_type = show_radial_menu(user, src, wall_frame_types, custom_check = CALLBACK(src, PROC_REF(check_menu), user), require_near = TRUE, tooltips = TRUE)
if(!check_menu(user))
return
switch(selected_wall_frame_type)
@@ -230,7 +230,7 @@ rborosilicate = 12
"HOSTILE TO ALL" = image(icon = 'modular_chomp/icons/mob/radial.dmi', icon_state = "turret1"),
"HOSTILE TO ENEMIES" = image(icon = 'modular_chomp/icons/mob/radial.dmi', icon_state = "turret2")
)
var/selected_turret_faction = show_radial_menu(user, src, turret_factions, custom_check = CALLBACK(src, .proc/check_menu, user), require_near = ranged?FALSE:TRUE, tooltips = TRUE)
var/selected_turret_faction = show_radial_menu(user, src, turret_factions, custom_check = CALLBACK(src, PROC_REF(check_menu), user), require_near = ranged?FALSE:TRUE, tooltips = TRUE)
if(!check_menu(user))
return
switch(selected_turret_faction)
@@ -292,13 +292,13 @@ rborosilicate = 12
"External" = get_airlock_image(/obj/machinery/door/airlock/glass_external),
)
var/airlockcat = show_radial_menu(user, src, solid_or_glass_choices, custom_check = CALLBACK(src, .proc/check_menu, user), require_near = TRUE)
var/airlockcat = show_radial_menu(user, src, solid_or_glass_choices, custom_check = CALLBACK(src, PROC_REF(check_menu), user), require_near = TRUE)
if(!check_menu(user))
return
switch(airlockcat)
if("Solid")
if(advanced_airlock_setting == 1)
var/airlockpaint = show_radial_menu(user, src, solid_choices, radius = 42, custom_check = CALLBACK(src, .proc/check_menu, user), require_near = TRUE)
var/airlockpaint = show_radial_menu(user, src, solid_choices, radius = 42, custom_check = CALLBACK(src, PROC_REF(check_menu), user), require_near = TRUE)
if(!check_menu(user))
return
switch(airlockpaint)
@@ -337,7 +337,7 @@ rborosilicate = 12
if("Glass")
if(advanced_airlock_setting == 1)
var/airlockpaint = show_radial_menu(user, src , glass_choices, radius = 42, custom_check = CALLBACK(src, .proc/check_menu, user), require_near = TRUE)
var/airlockpaint = show_radial_menu(user, src , glass_choices, radius = 42, custom_check = CALLBACK(src, PROC_REF(check_menu), user), require_near = TRUE)
if(!check_menu(user))
return
switch(airlockpaint)

View File

@@ -527,7 +527,7 @@
blob.update_icon(1)
//Flip them to the protean panel
addtimer(CALLBACK(src, .proc/nano_set_panel, C), 4)
addtimer(CALLBACK(src, PROC_REF(nano_set_panel), C), 4)
//Return our blob in case someone wants it
return blob
@@ -628,7 +628,7 @@
qdel(blob)
//Flip them to the protean panel
addtimer(CALLBACK(src, .proc/nano_set_panel, C), 4)
addtimer(CALLBACK(src, PROC_REF(nano_set_panel), C), 4)
//Return ourselves in case someone wants it
return src

View File

@@ -50,7 +50,7 @@
var/datum/species/protean/S = P.species
S.OurRig = src
if(P.back)
addtimer(CALLBACK(src, .proc/AssimilateBag, P, 1, P.back), 3)
addtimer(CALLBACK(src, PROC_REF(AssimilateBag), P, 1, P.back), 3)
myprotean = P
else
to_chat(P, "<span class='notice'>You should have spawned with a backpack to assimilate into your RIG. Try clicking it with a backpack.</span>")
@@ -273,7 +273,7 @@
playsound(src, 'sound/machines/defib_success.ogg', 50, 0)
new /obj/effect/gibspawner/robot(src.loc)
src.atom_say("Contact received! Reassembly nanites calibrated. Estimated time to resucitation: 1 minute 30 seconds")
addtimer(CALLBACK(src, .proc/make_alive, myprotean?:humanform), 900)
addtimer(CALLBACK(src, PROC_REF(make_alive), myprotean?:humanform), 900)
return
if(istype(W,/obj/item/weapon/rig))
if(!assimilated_rig)
@@ -425,7 +425,7 @@
/obj/item/weapon/cell/protean/New()
charge = maxcharge
update_icon()
addtimer(CALLBACK(src, .proc/search_for_protean), 60)
addtimer(CALLBACK(src, PROC_REF(search_for_protean)), 60)
/obj/item/weapon/cell/protean/proc/search_for_protean()
if(istype(src.loc, /obj/item/weapon/rig/protean))

View File

@@ -152,7 +152,7 @@
playsound(src, "sound/weapons/punchmiss.ogg", 50, 1)
// throw_at returns FALSE if it will not call it's callback - useful to prevent state jamming
if(!throw_at(T, 10, pounce_speed, callback = CALLBACK(src, .proc/pouncefinish, foundpt, foundpm, T)))
if(!throw_at(T, 10, pounce_speed, callback = CALLBACK(src, PROC_REF(pouncefinish), foundpt, foundpm, T)))
if(status_flags & LEAPING)
status_flags &= ~LEAPING
flying = 0
@@ -328,7 +328,7 @@
var/atom/movable/AM = am
if(AM == src || AM.anchored)
continue
addtimer(CALLBACK(src, .proc/speen_throw, am), 1)
addtimer(CALLBACK(src, PROC_REF(speen_throw), am), 1)
playsound(src, "sound/weapons/punchmiss.ogg", 50, 1)
/mob/living/simple_mob/proc/speen_throw(var/atom/movable/AM, var/gentle = 0, var/damage = 10)

View File

@@ -358,7 +358,7 @@
/mob/living/simple_mob/vore/candy/marshmellowserpent/do_special_attack(atom/A)
set_AI_busy(TRUE)
do_windup_animation(A, 20)
addtimer(CALLBACK(src, .proc/chargeend, A), 20)
addtimer(CALLBACK(src, PROC_REF(chargeend), A), 20)
/mob/living/simple_mob/vore/candy/marshmellowserpent/proc/chargeend(atom/A)
if(stat) //you are dead

View File

@@ -604,7 +604,7 @@
step = 1
// The time between each step is the volume required by a step multiplied by the delay_modifier (in ticks/deciseconds).
addtimer(CALLBACK(src, .proc/perform_reaction, r_id, step), recipes[r_id][step + 1] * delay_modifier)
addtimer(CALLBACK(src, PROC_REF(perform_reaction), r_id, step), recipes[r_id][step + 1] * delay_modifier)
// This proc carries out the actual steps in each reaction.
/obj/machinery/chemical_synthesizer/proc/perform_reaction(var/r_id, var/step as num)
@@ -638,7 +638,7 @@
var/obj/item/weapon/reagent_containers/chem_disp_cartridge/C = cartridges[label]
if(quantity > C.reagents.total_volume)
visible_message("<span class='notice'>The [src] flashes an 'insufficient reagents' warning.</span>")
addtimer(CALLBACK(src, .proc/perform_reaction, r_id, step), 1 MINUTE)
addtimer(CALLBACK(src, PROC_REF(perform_reaction), r_id, step), 1 MINUTE)
return
// After all this mess of code, we reach the line where the magic happens.
@@ -662,7 +662,7 @@
var/delay = reagents.total_volume
update_icon() // Update the icon first to remove underlays, then switch to the new icon_state.
icon_state = "synth_finished"
addtimer(CALLBACK(src, .proc/bottle_product, r_id), delay)
addtimer(CALLBACK(src, PROC_REF(bottle_product), r_id), delay)
else
follow_recipe(r_id, step)

View File

@@ -22,7 +22,7 @@
mobspawned.init_vore()
if(neutral == TRUE)
mobspawned.faction = "neutral"
RegisterSignal(mobspawned, COMSIG_PARENT_QDELETING, .proc/clean_mob)
RegisterSignal(mobspawned, COMSIG_PARENT_QDELETING, PROC_REF(clean_mob))
/obj/machinery/button/mob_spawner_button/proc/clean_mob()
SIGNAL_HANDLER