Skip to content

Commit

Permalink
adds the prevention to other methods aswell
Browse files Browse the repository at this point in the history
  • Loading branch information
Gboster-0 committed Jan 4, 2025
1 parent c3fcc56 commit 495e861
Showing 1 changed file with 28 additions and 18 deletions.
46 changes: 28 additions & 18 deletions ModularTegustation/tegu_items/rcorp/objective.dm
Original file line number Diff line number Diff line change
Expand Up @@ -162,19 +162,24 @@ GLOBAL_VAR_INIT(rcorp_payload, null)
light_on = FALSE
update_light()

//Round End Effects
SSticker.SetRoundEndSound('sound/abnormalities/donttouch/end.ogg')
SSticker.force_ending = 1
for(var/mob/M in GLOB.player_list)
to_chat(M, span_userdanger("[uppertext(user.real_name)] has collected the bough!"))

switch(GLOB.rcorp_wincondition)
if(0)
to_chat(M, span_userdanger("R-CORP MAJOR VICTORY."))
if(1)
to_chat(M, span_userdanger("R-CORP MINOR VICTORY."))
if(2)
to_chat(M, span_userdanger("R-CORP SUPREME VICTORY."))
if(!SSticker.force_ending)
//Round End Effects
SSticker.SetRoundEndSound('sound/abnormalities/donttouch/end.ogg')
SSticker.force_ending = 1
for(var/mob/M in GLOB.player_list)
to_chat(M, span_userdanger("[uppertext(user.real_name)] has collected the bough!"))

switch(GLOB.rcorp_wincondition)
if(0)
to_chat(M, span_userdanger("R-CORP MAJOR VICTORY."))
if(1)
to_chat(M, span_userdanger("R-CORP MINOR VICTORY."))
if(2)
to_chat(M, span_userdanger("R-CORP SUPREME VICTORY."))
else
var/turf/turf = get_turf(src)
new /obj/effect/decal/cleanable/confetti(turf)
playsound(turf, 'sound/misc/sadtrombone.ogg', 100)

else
user.gib() //lol, idiot.
Expand All @@ -191,11 +196,16 @@ GLOBAL_VAR_INIT(rcorp_payload, null)


/mob/living/simple_animal/hostile/shrimp_vip/death(gibbed)
for(var/mob/M in GLOB.player_list)
to_chat(M, span_userdanger("THE VIP HAS BEEN SLAIN."))
to_chat(M, span_userdanger("R-CORP MAJOR VICTORY."))
SSticker.force_ending = 1
..()
if(!SSticker.force_ending)
for(var/mob/M in GLOB.player_list)
to_chat(M, span_userdanger("THE VIP HAS BEEN SLAIN."))
to_chat(M, span_userdanger("R-CORP MAJOR VICTORY."))
SSticker.force_ending = 1
else
var/turf/turf = get_turf(src)
new /obj/effect/decal/cleanable/confetti(turf)
playsound(turf, 'sound/misc/sadtrombone.ogg', 100)
return ..()

//Arbiter
/obj/effect/mob_spawn/human/arbiter/rcorp
Expand Down

0 comments on commit 495e861

Please sign in to comment.