Skip to content

Commit

Permalink
Fix Warbanner and Warcry (#2614)
Browse files Browse the repository at this point in the history
CAPITAN!!
  • Loading branch information
scionalu authored Dec 17, 2024
1 parent 1464348 commit 51d7212
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions code/game/objects/items/fixerskills/level4/team.dm
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
human.physiology.pale_mod *= 0.6
affected+= human

addtimer(CALLBACK(src, PROC_REF(Recall),), 10 SECONDS, TIMER_UNIQUE | TIMER_OVERRIDE)
addtimer(CALLBACK(src, PROC_REF(Warcry),), 0.5 SECONDS, TIMER_UNIQUE | TIMER_OVERRIDE)
addtimer(CALLBACK(src, PROC_REF(Recall)), 10 SECONDS, TIMER_UNIQUE | TIMER_OVERRIDE)
addtimer(CALLBACK(src, PROC_REF(Warcry)), 0.5 SECONDS, TIMER_UNIQUE | TIMER_OVERRIDE)
StartCooldown()

/datum/action/cooldown/warbanner/proc/Recall()
Expand All @@ -45,6 +45,7 @@
human.physiology.white_mod /= 0.6
human.physiology.black_mod /= 0.6
human.physiology.pale_mod /= 0.6
affected-=human

/datum/action/cooldown/warbanner/proc/Warcry()
for(var/mob/living/carbon/human/human in affected)
Expand Down Expand Up @@ -84,18 +85,19 @@
for(var/mob/living/carbon/human/human in view(range, get_turf(src)))
if (human == owner && !affect_self)
continue
human.add_movespeed_modifier(/datum/movespeed_modifier/retreat)
human.add_movespeed_modifier(/datum/movespeed_modifier/warcry)
addtimer(CALLBACK(human, TYPE_PROC_REF(/mob, remove_movespeed_modifier), /datum/movespeed_modifier/warcry), 5 SECONDS, TIMER_UNIQUE | TIMER_OVERRIDE)
affected+=human

addtimer(CALLBACK(src, PROC_REF(Warcry),), 0.5 SECONDS, TIMER_UNIQUE | TIMER_OVERRIDE)
addtimer(CALLBACK(src, PROC_REF(Warcry)), 0.5 SECONDS, TIMER_UNIQUE | TIMER_OVERRIDE)
StartCooldown()

/datum/action/cooldown/warcry/proc/Warcry()
for(var/mob/living/carbon/human/human in affected)
if(human == owner)
continue
human.say("YES SIR!")
affected-=human

/datum/movespeed_modifier/warcry
variable = TRUE
Expand Down

0 comments on commit 51d7212

Please sign in to comment.