From eb06cb3364c510e3ebe10a9de752d3b53d398359 Mon Sep 17 00:00:00 2001 From: Pinta <124479862+deertools@users.noreply.github.com> Date: Fri, 29 Mar 2024 12:33:21 -0400 Subject: [PATCH] procs --- code/__HELPERS/icons.dm | 2 +- code/datums/components/archaeology.dm | 2 +- code/datums/components/construction.dm | 2 +- code/datums/components/earprotection.dm | 2 +- code/datums/components/knockoff.dm | 6 +++--- code/datums/components/phantomthief.dm | 2 +- code/datums/components/wearertargeting.dm | 4 ++-- code/game/machinery/doors/airlock.dm | 6 +++--- code/game/machinery/hologram.dm | 2 +- code/game/objects/items/RCD.dm | 2 +- code/modules/mob/living/emote.dm | 2 +- code/modules/mob/living/say.dm | 2 +- 12 files changed, 17 insertions(+), 17 deletions(-) diff --git a/code/__HELPERS/icons.dm b/code/__HELPERS/icons.dm index 5b5fb1eb..aea75308 100644 --- a/code/__HELPERS/icons.dm +++ b/code/__HELPERS/icons.dm @@ -1245,7 +1245,7 @@ GLOBAL_LIST_EMPTY(transformation_animation_objects) for(var/A in transformation_objects) vis_contents += A if(reset_after) - addtimer(CALLBACK(src,.proc/_reset_transformation_animation,filter_index),time) + addtimer(CALLBACK(src,PROC_REF(_reset_transformation_animation),filter_index),time) /* * Resets filters and removes transformation animations helper objects from vis contents. diff --git a/code/datums/components/archaeology.dm b/code/datums/components/archaeology.dm index e2e2366e..9a52c3d2 100644 --- a/code/datums/components/archaeology.dm +++ b/code/datums/components/archaeology.dm @@ -15,7 +15,7 @@ archdrops[i][ARCH_PROB] = 100 stack_trace("ARCHAEOLOGY WARNING: [parent] contained a null probability value in [i].") callback = _callback - RegisterSignal(parent, COMSIG_PARENT_ATTACKBY,.proc/Dig) + RegisterSignal(parent, COMSIG_PARENT_ATTACKBY,PROC_REF(Dig)) RegisterSignal(parent, COMSIG_ATOM_EX_ACT,PROC_REF(BombDig)) RegisterSignal(parent, COMSIG_ATOM_SING_PULL,PROC_REF(SingDig)) diff --git a/code/datums/components/construction.dm b/code/datums/components/construction.dm index 5d56f555..5fddfab9 100644 --- a/code/datums/components/construction.dm +++ b/code/datums/components/construction.dm @@ -16,7 +16,7 @@ return COMPONENT_INCOMPATIBLE RegisterSignal(parent, COMSIG_PARENT_EXAMINE,PROC_REF(examine)) - RegisterSignal(parent, COMSIG_PARENT_ATTACKBY,.proc/action) + RegisterSignal(parent, COMSIG_PARENT_ATTACKBY,PROC_REF(action)) update_parent(index) /datum/component/construction/proc/examine(datum/source, mob/user, list/examine_list) diff --git a/code/datums/components/earprotection.dm b/code/datums/components/earprotection.dm index 9256c431..6439e49b 100644 --- a/code/datums/components/earprotection.dm +++ b/code/datums/components/earprotection.dm @@ -1,7 +1,7 @@ /datum/component/wearertargeting/earprotection signals = list(COMSIG_CARBON_SOUNDBANG) mobtype = /mob/living/carbon - proctype = .proc/reducebang + proctype = PROC_REF(reducebang) /datum/component/wearertargeting/earprotection/Initialize(_valid_slots) . = ..() diff --git a/code/datums/components/knockoff.dm b/code/datums/components/knockoff.dm index cc13b357..99ab8778 100644 --- a/code/datums/components/knockoff.dm +++ b/code/datums/components/knockoff.dm @@ -7,8 +7,8 @@ /datum/component/knockoff/Initialize(knockoff_chance,zone_override,slots_knockoffable) if(!isitem(parent)) return COMPONENT_INCOMPATIBLE - RegisterSignal(parent, COMSIG_ITEM_EQUIPPED,.proc/OnEquipped) - RegisterSignal(parent, COMSIG_ITEM_DROPPED,.proc/OnDropped) + RegisterSignal(parent, COMSIG_ITEM_EQUIPPED,PROC_REF(OnEquipped)) + RegisterSignal(parent, COMSIG_ITEM_DROPPED,PROC_REF(OnDropped)) src.knockoff_chance = knockoff_chance @@ -41,4 +41,4 @@ RegisterSignal(H, COMSIG_HUMAN_DISARM_HIT,PROC_REF(Knockoff), TRUE) /datum/component/knockoff/proc/OnDropped(datum/source, mob/living/M) - UnregisterSignal(M, COMSIG_HUMAN_DISARM_HIT) \ No newline at end of file + UnregisterSignal(M, COMSIG_HUMAN_DISARM_HIT) diff --git a/code/datums/components/phantomthief.dm b/code/datums/components/phantomthief.dm index 7afe6499..ac9b78ac 100644 --- a/code/datums/components/phantomthief.dm +++ b/code/datums/components/phantomthief.dm @@ -3,7 +3,7 @@ /datum/component/wearertargeting/phantomthief dupe_mode = COMPONENT_DUPE_UNIQUE_PASSARGS signals = list(COMSIG_COMBAT_TOGGLED) - proctype = .proc/handlefilterstuff + proctype = PROC_REF(handlefilterstuff) var/filter_x var/filter_y var/filter_size diff --git a/code/datums/components/wearertargeting.dm b/code/datums/components/wearertargeting.dm index 3ef6e51a..f4244d4c 100644 --- a/code/datums/components/wearertargeting.dm +++ b/code/datums/components/wearertargeting.dm @@ -3,7 +3,7 @@ /datum/component/wearertargeting var/list/valid_slots = list() var/list/signals = list() - var/proctype = .proc/pass + var/proctype = GLOBAL_PROC_REF(pass) var/mobtype = /mob/living /datum/component/wearertargeting/Initialize() @@ -19,4 +19,4 @@ UnregisterSignal(equipper, signals) /datum/component/wearertargeting/proc/on_drop(datum/source, mob/user) - UnregisterSignal(user, signals) \ No newline at end of file + UnregisterSignal(user, signals) diff --git a/code/game/machinery/doors/airlock.dm b/code/game/machinery/doors/airlock.dm index 1c2d3c95..3dc99b47 100644 --- a/code/game/machinery/doors/airlock.dm +++ b/code/game/machinery/doors/airlock.dm @@ -114,7 +114,7 @@ set_frequency(frequency) if(closeOtherId != null) - addtimer(CALLBACK(.proc/update_other_id), 5) + addtimer(CALLBACK(PROC_REF(update_other_id)), 5) if(glass) airlock_material = "glass" if(security_level > AIRLOCK_SECURITY_METAL) @@ -1107,11 +1107,11 @@ if(!beingcrowbarred) //being fireaxe'd var/obj/item/twohanded/fireaxe/F = I if(F.wielded) - INVOKE_ASYNC(src, (density ? .proc/open :PROC_REF(close)), 2) + INVOKE_ASYNC(src, (density ? PROC_REF(open) : PROC_REF(close)), 2) else to_chat(user, "You need to be wielding the fire axe to do that!") else - INVOKE_ASYNC(src, (density ? .proc/open :PROC_REF(close)), 2) + INVOKE_ASYNC(src, (density ? PROC_REF(open) :PROC_REF(close)), 2) if(istype(I, /obj/item/crowbar/power)) if(isElectrified()) diff --git a/code/game/machinery/hologram.dm b/code/game/machinery/hologram.dm index dea57769..5ccebdfc 100644 --- a/code/game/machinery/hologram.dm +++ b/code/game/machinery/hologram.dm @@ -637,7 +637,7 @@ For the other part of the code, check silicon say.dm. Particularly robot talk.*/ if(HOLORECORD_SOUND) playsound(src,entry[2],50,1) if(HOLORECORD_DELAY) - addtimer(CALLBACK(src,.proc/replay_entry,entry_number+1),entry[2]) + addtimer(CALLBACK(src,PROC_REF(replay_entry),entry_number+1),entry[2]) return if(HOLORECORD_LANGUAGE) var/datum/language_holder/holder = replay_holo.get_language_holder() diff --git a/code/game/objects/items/RCD.dm b/code/game/objects/items/RCD.dm index 20de4280..ed2afe7f 100644 --- a/code/game/objects/items/RCD.dm +++ b/code/game/objects/items/RCD.dm @@ -453,7 +453,7 @@ RLD choices += list( "Change Window Type" = image(icon = 'icons/mob/radial.dmi', icon_state = "windowtype") ) - var/choice = show_radial_menu(user,src,choices, custom_check = CALLBACK(src,.proc/check_menu,user)) + var/choice = show_radial_menu(user,src,choices, custom_check = CALLBACK(src,PROC_REF(check_menu),user)) if(!check_menu(user)) return switch(choice) diff --git a/code/modules/mob/living/emote.dm b/code/modules/mob/living/emote.dm index c22b2de1..f6c9b095 100644 --- a/code/modules/mob/living/emote.dm +++ b/code/modules/mob/living/emote.dm @@ -127,7 +127,7 @@ H.CloseWings() else H.OpenWings() - addtimer(CALLBACK(H, open ? /mob/living/carbon/human.proc/OpenWings : /mob/living/carbon/human.proc/CloseWings), wing_time) + addtimer(CALLBACK(H, open ? TYPE_PROC_REF(/mob/living/carbon/human, OpenWings) : TYPE_PROC_REF(/mob/living/carbon/human, CloseWings)), wing_time) /datum/emote/living/flap/aflap key = "aflap" diff --git a/code/modules/mob/living/say.dm b/code/modules/mob/living/say.dm index a440781b..015b3930 100644 --- a/code/modules/mob/living/say.dm +++ b/code/modules/mob/living/say.dm @@ -310,7 +310,7 @@ GLOBAL_LIST_INIT(department_radio_keys, list( speech_bubble_recipients.Add(M.client) var/image/I = image('icons/mob/talk.dmi', src, "[bubble_type][say_test(message)]", FLY_LAYER) I.appearance_flags = APPEARANCE_UI_IGNORE_ALPHA - INVOKE_ASYNC(GLOBAL_PROC, /.proc/flick_overlay, I, speech_bubble_recipients, 30) + INVOKE_ASYNC(GLOBAL_PROC, GLOBAL_PROC_REF(flick_overlay), I, speech_bubble_recipients, 30) /mob/proc/binarycheck() return FALSE