mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 11:05:03 +01:00
Migrates /obj/item/melee/baton to the new Attack Chain, Adds Universal Poking (#28241)
* Update stunbaton.dm * Update stunbaton.dm * update * Update stunbaton.dm * Update code/game/objects/items/weapons/stunbaton.dm Co-authored-by: warriorstar-orion <orion@snowfrost.garden> Signed-off-by: CRUNCH <143041327+Fordoxia@users.noreply.github.com> * update based on review * Create test_attack_chain_stunbaton.dm * update --------- Signed-off-by: CRUNCH <143041327+Fordoxia@users.noreply.github.com> Co-authored-by: warriorstar-orion <orion@snowfrost.garden>
This commit is contained in:
@@ -560,7 +560,7 @@
|
||||
var/threat = C.assess_threat(src)
|
||||
var/prev_intent = a_intent
|
||||
a_intent = INTENT_HELP
|
||||
baton.attack__legacy__attackchain(C, src)
|
||||
baton.pre_attack(C, src)
|
||||
a_intent = prev_intent
|
||||
baton_delayed = TRUE
|
||||
addtimer(VARSET_CALLBACK(src, baton_delayed, FALSE), BATON_COOLDOWN)
|
||||
|
||||
@@ -267,7 +267,7 @@
|
||||
var/threat = C.assess_threat(src)
|
||||
var/prev_intent = a_intent
|
||||
a_intent = harmbaton ? INTENT_HARM : INTENT_HELP
|
||||
baton.attack__legacy__attackchain(C, src)
|
||||
baton.pre_attack(C, src)
|
||||
a_intent = prev_intent
|
||||
baton_delayed = TRUE
|
||||
addtimer(VARSET_CALLBACK(src, baton_delayed, FALSE), BATON_COOLDOWN)
|
||||
|
||||
Reference in New Issue
Block a user