procs
This commit is contained in:
@@ -53,9 +53,9 @@
|
||||
var/mob/living/carbon/human/victim = allocate(/mob/living/carbon/human)
|
||||
var/obj/item/storage/toolbox/toolbox = allocate(/obj/item/storage/toolbox)
|
||||
|
||||
RegisterSignal(toolbox, COMSIG_ITEM_PRE_ATTACK, .proc/pre_attack_hit)
|
||||
RegisterSignal(toolbox, COMSIG_ITEM_ATTACK, .proc/attack_hit)
|
||||
RegisterSignal(toolbox, COMSIG_ITEM_AFTERATTACK, .proc/post_attack_hit)
|
||||
RegisterSignal(toolbox, COMSIG_ITEM_PRE_ATTACK, PROC_REF(pre_attack_hit))
|
||||
RegisterSignal(toolbox, COMSIG_ITEM_ATTACK, PROC_REF(attack_hit))
|
||||
RegisterSignal(toolbox, COMSIG_ITEM_AFTERATTACK, PROC_REF(post_attack_hit))
|
||||
|
||||
attacker.put_in_active_hand(toolbox, forced = TRUE)
|
||||
attacker.a_intent_change(INTENT_HARM)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
/datum/unit_test/emoting/Run()
|
||||
var/mob/living/carbon/human/human = allocate(/mob/living/carbon/human)
|
||||
RegisterSignal(human, COMSIG_MOB_EMOTE, .proc/on_emote_used)
|
||||
RegisterSignal(human, COMSIG_MOB_EMOTE, PROC_REF(on_emote_used))
|
||||
|
||||
human.say("*shrug")
|
||||
TEST_ASSERT_EQUAL(emotes_used, 1, "Human did not shrug")
|
||||
|
||||
@@ -118,7 +118,7 @@ GLOBAL_VAR(test_log)
|
||||
tests_to_run = list(test_to_run)
|
||||
break
|
||||
|
||||
tests_to_run = sortTim(tests_to_run, /proc/cmp_unit_test_priority)
|
||||
tests_to_run = sortTim(tests_to_run, GLOBAL_PROC_REF(cmp_unit_test_priority))
|
||||
|
||||
var/list/test_results = list()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user