Skip to content

Commit

Permalink
TGS Test Merge (#6737)
Browse files Browse the repository at this point in the history
  • Loading branch information
cm13-github committed Jul 17, 2024
2 parents 09b07ab + 43f33f8 commit 189751c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions code/game/objects/items/stacks/flags.dm
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
user.visible_message(SPAN_NOTICE("[user] starts taking [src] down..."), SPAN_NOTICE("You start taking [src] down..."))

playsound(loc, 'sound/effects/flag_raising.ogg', 30)
if(!do_after(user, 6 SECONDS, INTERRUPT_ALL, BUSY_ICON_GENERIC))
if(!do_after(user, 6 SECONDS, INTERRUPT_ALL, BUSY_ICON_GENERIC) || QDELETED(src))
return

playsound(loc, 'sound/effects/flag_raised.ogg', 30)
Expand Down Expand Up @@ -170,7 +170,11 @@
icon = 'icons/obj/structures/plantable_flag.dmi'
inhand_x_dimension = 64
inhand_y_dimension = 64
force = 15
throwforce = 5
hitsound = "swing_hit"
unacidable = TRUE
indestructible = TRUE
item_icons = list(
WEAR_L_HAND = 'icons/mob/humans/onmob/items_lefthand_64.dmi',
WEAR_R_HAND = 'icons/mob/humans/onmob/items_righthand_64.dmi'
Expand Down Expand Up @@ -233,12 +237,10 @@
if(play_warcry && user.faction == faction && user.a_intent == INTENT_HARM)
var/allies_nearby = 0
if(COOLDOWN_FINISHED(src, warcry_cooldown_item))
for (var/mob/living/carbon/human in orange(planted_flag, 7))
if (human.is_dead() || human.faction != faction)
for(var/mob/living/carbon/human in orange(planted_flag, 7))
if(human.is_dead() || human.faction != faction)
continue
allies_nearby++
if (prob(40) && human != user)
human.emote("warcry")

user.show_speech_bubble("warcry")
if(allies_nearby >= allies_required)
Expand Down

0 comments on commit 189751c

Please sign in to comment.