Skip to content

Commit

Permalink
Admin logs for 3rd Party Victory events (#5658)
Browse files Browse the repository at this point in the history
# About the pull request

Adds logging in the event that W-Y, UPP, or CLF win during a xeno minor.

# Explain why it's good for the game

Would be good to track how common (or rare) these sorts of things are,
which would also be good feedback on if its worthwhile to make more
faction victory moments.


# Testing Photographs and Procedure
<details>
<summary>Screenshots & Videos</summary>

Put screenshots and videos here with an empty line between the
screenshots and the `<details>` tags.

</details>


# Changelog
:cl:
admin: added logging for 3rd party victory events
/:cl:
  • Loading branch information
blackdragonTOW authored Feb 9, 2024
1 parent 4a01f9b commit 8fe3ee5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code/game/gamemodes/colonialmarines/colonialmarines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -372,10 +372,16 @@
var/living = headcount["total_headcount"]
if ((headcount["WY_headcount"] / living) > MAJORITY)
musical_track = pick('sound/theme/lastmanstanding_wy.ogg')
log_game("3rd party victory: Weyland-Yutani")
message_admins("3rd party victory: Weyland-Yutani")
else if ((headcount["UPP_headcount"] / living) > MAJORITY)
musical_track = pick('sound/theme/lastmanstanding_upp.ogg')
log_game("3rd party victory: Union of Progressive Peoples")
message_admins("3rd party victory: Union of Progressive Peoples")
else if ((headcount["CLF_headcount"] / living) > MAJORITY)
musical_track = pick('sound/theme/lastmanstanding_clf.ogg')
log_game("3rd party victory: Colonial Liberation Front")
message_admins("3rd party victory: Colonial Liberation Front")
else if ((headcount["marine_headcount"] / living) > MAJORITY)
musical_track = pick('sound/theme/neutral_melancholy2.ogg') //This is the theme song for Colonial Marines the game, fitting
else
Expand Down

0 comments on commit 8fe3ee5

Please sign in to comment.