[TM] Verb Queue - Port of TG SSverb subsystem (#19863)

* Some verbs queue up now

* Damn you 515

* Screw you Topic

* Update client_procs.dm

* Fixes for unit testing

* Update MC.dm

* verb

* Update callback.dm

* Tweaks

* Linters might not have liked that,

* More tweaks, and fix

* Update verb_manager.dm
This commit is contained in:
Vi3trice
2023-01-29 15:05:38 +01:00
committed by GitHub
parent 47f71ccde1
commit caee0ec975
19 changed files with 328 additions and 5 deletions
+7
View File
@@ -249,6 +249,9 @@
return FALSE
if(HAS_TRAIT(src, TRAIT_FAKEDEATH))
return FALSE
return ..()
/mob/living/run_pointed(atom/A)
if(!..())
return FALSE
var/obj/item/hand_item = get_active_hand()
@@ -721,6 +724,10 @@
set name = "Resist"
set category = "IC"
DEFAULT_QUEUE_OR_CALL_VERB(VERB_CALLBACK(src, PROC_REF(run_resist)))
///proc extender of [/mob/living/verb/resist] meant to make the process queable if the server is overloaded when the verb is called
/mob/living/proc/run_resist()
if(!can_resist())
return
changeNext_move(CLICK_CD_RESIST)
@@ -843,8 +843,8 @@
else
return null
/mob/living/simple_animal/bot/mulebot/resist()
..()
/mob/living/simple_animal/bot/mulebot/run_resist()
. = ..()
if(load)
unload()
@@ -95,8 +95,7 @@
else
..()
/mob/living/simple_animal/diona/resist()
..()
/mob/living/simple_animal/diona/run_resist()
split()
/mob/living/simple_animal/diona/attack_hand(mob/living/carbon/human/M)