mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 02:24:11 +01:00
Stunbaton delayed knockdown now respects antistuns (#21069)
* stunbaton delayed knockdown now moved into status effect * renaming proc to keep its meaning * made STATUS_EFFECT_DELAYED as status effect for any delayed logic, removed STATUS_EFFECT_BATONNED * cleanup, little bug fixing * cleanup * whoopsie * updates * signal string changed * Update code/datums/status_effects/neutral.dm Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com> --------- Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com>
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
user.SetWeakened(0)
|
||||
user.setStaminaLoss(0)
|
||||
user.SetKnockDown(0)
|
||||
SEND_SIGNAL(user, COMSIG_LIVING_CLEAR_STUNS)
|
||||
user.reagents.add_reagent("synaptizine", 15)
|
||||
user.reagents.add_reagent("stimulative_cling", 1)
|
||||
|
||||
|
||||
@@ -64,6 +64,7 @@
|
||||
U.SetSleeping(0)
|
||||
U.SetConfused(0)
|
||||
U.adjustStaminaLoss(-100)
|
||||
SEND_SIGNAL(U, COMSIG_LIVING_CLEAR_STUNS)
|
||||
to_chat(user, "<span class='notice'>You instill your body with clean blood and remove any incapacitating effects.</span>")
|
||||
var/datum/antagonist/vampire/V = U.mind.has_antag_datum(/datum/antagonist/vampire)
|
||||
var/rejuv_bonus = V.get_rejuv_bonus()
|
||||
|
||||
@@ -486,6 +486,7 @@
|
||||
RestoreEars()
|
||||
heal_overall_damage(1000, 1000)
|
||||
ExtinguishMob()
|
||||
SEND_SIGNAL(src, COMSIG_LIVING_CLEAR_STUNS)
|
||||
fire_stacks = 0
|
||||
on_fire = 0
|
||||
suiciding = 0
|
||||
|
||||
@@ -576,7 +576,7 @@
|
||||
C.SetStuttering(10 SECONDS)
|
||||
C.adjustStaminaLoss(60)
|
||||
baton_delayed = TRUE
|
||||
addtimer(CALLBACK(C, PROC_REF(KnockDown), 10 SECONDS), 2.5 SECONDS)
|
||||
C.apply_status_effect(STATUS_EFFECT_DELAYED, 2.5 SECONDS, CALLBACK(C, TYPE_PROC_REF(/mob/living/, KnockDown), 10 SECONDS), COMSIG_LIVING_CLEAR_STUNS)
|
||||
addtimer(VARSET_CALLBACK(src, baton_delayed, FALSE), BATON_COOLDOWN)
|
||||
add_attack_logs(src, C, "batoned")
|
||||
if(declare_arrests)
|
||||
|
||||
@@ -266,7 +266,7 @@
|
||||
C.SetStuttering(10 SECONDS)
|
||||
C.adjustStaminaLoss(60)
|
||||
baton_delayed = TRUE
|
||||
addtimer(CALLBACK(C, PROC_REF(KnockDown), 10 SECONDS), 2.5 SECONDS)
|
||||
C.apply_status_effect(STATUS_EFFECT_DELAYED, 2.5 SECONDS, CALLBACK(C, TYPE_PROC_REF(/mob/living/, KnockDown), 10 SECONDS), COMSIG_LIVING_CLEAR_STUNS)
|
||||
addtimer(VARSET_CALLBACK(src, baton_delayed, FALSE), BATON_COOLDOWN)
|
||||
add_attack_logs(src, C, "batoned")
|
||||
if(declare_arrests)
|
||||
|
||||
Reference in New Issue
Block a user