From d3d112acf76e7519c9b4db046f6bc136db18ad75 Mon Sep 17 00:00:00 2001
From: variableundefined <40092670+variableundefined@users.noreply.github.com>
Date: Tue, 23 Oct 2018 17:42:05 +0800
Subject: [PATCH] Improve win rate tracking for internal playerbase. Add in
shadowling win rate tracking.
---
code/game/gamemodes/blob/blob_finish.dm | 6 ++--
code/game/gamemodes/cult/cult.dm | 4 +--
code/game/gamemodes/meteor/meteor.dm | 4 +--
code/game/gamemodes/nuclear/nuclear.dm | 37 ++++++++++----------
code/game/gamemodes/revolution/revolution.dm | 4 +--
code/game/gamemodes/shadowling/shadowling.dm | 4 +++
code/game/gamemodes/wizard/raginmages.dm | 2 +-
code/game/gamemodes/wizard/wizard.dm | 2 +-
8 files changed, 33 insertions(+), 30 deletions(-)
diff --git a/code/game/gamemodes/blob/blob_finish.dm b/code/game/gamemodes/blob/blob_finish.dm
index 9220d82c8f6..a00449d00b5 100644
--- a/code/game/gamemodes/blob/blob_finish.dm
+++ b/code/game/gamemodes/blob/blob_finish.dm
@@ -10,19 +10,19 @@
/datum/game_mode/blob/declare_completion()
if(blobwincount <= blobs.len)
- feedback_set_details("round_end_result","win - blob took over")
+ feedback_set_details("round_end_result","blob win - blob took over")
to_chat(world, "The blob has taken over the station!")
to_chat(world, "The entire station was eaten by the Blob")
log_game("Blob mode completed with a blob victory.")
else if(station_was_nuked)
- feedback_set_details("round_end_result","halfwin - nuke")
+ feedback_set_details("round_end_result","blob halfwin - nuke")
to_chat(world, "Partial Win: The station has been destroyed!")
to_chat(world, "Directive 7-12 has been successfully carried out preventing the Blob from spreading.")
log_game("Blob mode completed with a tie (station destroyed).")
else if(!blob_cores.len)
- feedback_set_details("round_end_result","loss - blob eliminated")
+ feedback_set_details("round_end_result","blob loss - blob eliminated")
to_chat(world, "The staff has won!")
to_chat(world, "The alien organism has been eradicated from the station")
log_game("Blob mode completed with a crew victory.")
diff --git a/code/game/gamemodes/cult/cult.dm b/code/game/gamemodes/cult/cult.dm
index 670a33bfa3c..441292366f0 100644
--- a/code/game/gamemodes/cult/cult.dm
+++ b/code/game/gamemodes/cult/cult.dm
@@ -273,11 +273,11 @@ var/global/list/all_cults = list()
bonus_check()
if(!check_cult_victory())
- feedback_set_details("round_end_result","win - cult win")
+ feedback_set_details("round_end_result","cult win - cult win")
feedback_set("round_end_result",acolytes_survived)
to_chat(world, " The cult wins! It has succeeded in serving its dark masters!")
else
- feedback_set_details("round_end_result","loss - staff stopped the cult")
+ feedback_set_details("round_end_result","cult loss - staff stopped the cult")
feedback_set("round_end_result",acolytes_survived)
to_chat(world, " The staff managed to stop the cult!")
diff --git a/code/game/gamemodes/meteor/meteor.dm b/code/game/gamemodes/meteor/meteor.dm
index 8b7bc3ed345..ee0ef02d1dc 100644
--- a/code/game/gamemodes/meteor/meteor.dm
+++ b/code/game/gamemodes/meteor/meteor.dm
@@ -54,8 +54,8 @@
else
to_chat(world, "Nobody survived the meteor storm!")
- feedback_set_details("round_end_result","end - evacuation")
- feedback_set("round_end_result",survivors)
+ feedback_set_details("round_end_result","meteor end - evacuation")
+ feedback_set("round_end_result", "Meteor survivors: [survivors]")
..()
return 1
diff --git a/code/game/gamemodes/nuclear/nuclear.dm b/code/game/gamemodes/nuclear/nuclear.dm
index 552f9ab7063..2e84dad4d99 100644
--- a/code/game/gamemodes/nuclear/nuclear.dm
+++ b/code/game/gamemodes/nuclear/nuclear.dm
@@ -309,51 +309,50 @@ proc/issyndicate(mob/living/M as mob)
//derp //Used for tracking if the syndies actually haul the nuke to the station //no
//herp //Used for tracking if the syndies got the shuttle off of the z-level //NO, DON'T FUCKING NAME VARS LIKE THIS
- if(!disk_rescued && station_was_nuked && !syndies_didnt_escape)
- feedback_set_details("round_end_result","win - syndicate nuke")
+ if(!disk_rescued && station_was_nuked && !syndies_didnt_escape)
+ feedback_set_details("round_end_result","nuclear win - syndicate nuke")
to_chat(world, "Syndicate Major Victory!")
to_chat(world, "[syndicate_name()] operatives have destroyed [station_name()]!")
- else if(!disk_rescued && station_was_nuked && syndies_didnt_escape)
- feedback_set_details("round_end_result","halfwin - syndicate nuke - did not evacuate in time")
+ else if(!disk_rescued && station_was_nuked && syndies_didnt_escape)
+ feedback_set_details("round_end_result","nuclear halfwin - syndicate nuke - did not evacuate in time")
to_chat(world, "Total Annihilation")
to_chat(world, "[syndicate_name()] operatives destroyed [station_name()] but did not leave the area in time and got caught in the explosion. Next time, don't lose the disk!")
- else if(!disk_rescued && !station_was_nuked && nuke_off_station && !syndies_didnt_escape)
- feedback_set_details("round_end_result","halfwin - blew wrong station")
+ else if(!disk_rescued && !station_was_nuked && nuke_off_station && !syndies_didnt_escape)
+ feedback_set_details("round_end_result","nuclear halfwin - blew wrong station")
to_chat(world, "Crew Minor Victory")
to_chat(world, "[syndicate_name()] operatives secured the authentication disk but blew up something that wasn't [station_name()]. Next time, don't lose the disk!")
- else if(!disk_rescued && !station_was_nuked && nuke_off_station && syndies_didnt_escape)
- feedback_set_details("round_end_result","halfwin - blew wrong station - did not evacuate in time")
+ else if(!disk_rescued && !station_was_nuked && nuke_off_station && syndies_didnt_escape)
+ feedback_set_details("round_end_result","nuclear halfwin - blew wrong station - did not evacuate in time")
to_chat(world, "[syndicate_name()] operatives have earned Darwin Award!")
to_chat(world, "[syndicate_name()] operatives blew up something that wasn't [station_name()] and got caught in the explosion. Next time, don't lose the disk!")
- else if( disk_rescued && is_operatives_are_dead())
- feedback_set_details("round_end_result","loss - evacuation - disk secured - syndi team dead")
+ else if(disk_rescued && is_operatives_are_dead())
+ feedback_set_details("round_end_result","nuclear loss - evacuation - disk secured - syndi team dead")
to_chat(world, "Crew Major Victory!")
to_chat(world, "The Research Staff has saved the disc and killed the [syndicate_name()] Operatives")
- else if( disk_rescued )
- feedback_set_details("round_end_result","loss - evacuation - disk secured")
+ else if(disk_rescued)
+ feedback_set_details("round_end_result","nuclear loss - evacuation - disk secured")
to_chat(world, "Crew Major Victory")
to_chat(world, "The Research Staff has saved the disc and stopped the [syndicate_name()] Operatives!")
- else if(!disk_rescued && is_operatives_are_dead())
- feedback_set_details("round_end_result","loss - evacuation - disk not secured")
+ else if(!disk_rescued && is_operatives_are_dead())
+ feedback_set_details("round_end_result","nuclear loss - evacuation - disk not secured")
to_chat(world, "Syndicate Minor Victory!")
to_chat(world, "The Research Staff failed to secure the authentication disk but did manage to kill most of the [syndicate_name()] Operatives!")
- else if(!disk_rescued && crew_evacuated)
- feedback_set_details("round_end_result","halfwin - detonation averted")
+ else if(!disk_rescued && crew_evacuated)
+ feedback_set_details("round_end_result","nuclear halfwin - detonation averted")
to_chat(world, "Syndicate Minor Victory!")
to_chat(world, "[syndicate_name()] operatives recovered the abandoned authentication disk but detonation of [station_name()] was averted. Next time, don't lose the disk!")
- else if(!disk_rescued && !crew_evacuated)
- feedback_set_details("round_end_result","halfwin - interrupted")
+ else if(!disk_rescued && !crew_evacuated)
+ feedback_set_details("round_end_result","nuclear halfwin - interrupted")
to_chat(world, "Neutral Victory")
to_chat(world, "Round was mysteriously interrupted!")
-
..()
return
diff --git a/code/game/gamemodes/revolution/revolution.dm b/code/game/gamemodes/revolution/revolution.dm
index 11baf813890..1e1f9ba1005 100644
--- a/code/game/gamemodes/revolution/revolution.dm
+++ b/code/game/gamemodes/revolution/revolution.dm
@@ -324,10 +324,10 @@
//////////////////////////////////////////////////////////////////////
/datum/game_mode/revolution/declare_completion()
if(finished == 1)
- feedback_set_details("round_end_result","win - heads killed")
+ feedback_set_details("round_end_result","revolution win - heads killed")
to_chat(world, "The heads of staff were killed or exiled! The revolutionaries win!")
else if(finished == 2)
- feedback_set_details("round_end_result","loss - rev heads killed")
+ feedback_set_details("round_end_result","revolution loss - rev heads killed")
to_chat(world, "The heads of staff managed to stop the revolution!")
..()
return 1
diff --git a/code/game/gamemodes/shadowling/shadowling.dm b/code/game/gamemodes/shadowling/shadowling.dm
index 06e912c9da8..7cbb1634de2 100644
--- a/code/game/gamemodes/shadowling/shadowling.dm
+++ b/code/game/gamemodes/shadowling/shadowling.dm
@@ -256,12 +256,16 @@ Made by Xhuis
/datum/game_mode/shadowling/declare_completion()
if(check_shadow_victory() && SSshuttle.emergency.mode >= SHUTTLE_ESCAPE) //Doesn't end instantly - this is hacky and I don't know of a better way ~X
+ feedback_set_details("round_end_result","shadowling win - shadowling ascension")
to_chat(world, "The shadowlings have ascended and taken over the station!")
else if(shadowling_dead && !check_shadow_victory()) //If the shadowlings have ascended, they can not lose the round
+ feedback_set_details("round_end_result","shadowling loss - shadowling killed")
to_chat(world, "The shadowlings have been killed by the crew!")
else if(!check_shadow_victory() && SSshuttle.emergency.mode >= SHUTTLE_ESCAPE)
+ feedback_set_details("round_end_result","shadowling loss - crew escaped")
to_chat(world, "The crew escaped the station before the shadowlings could ascend!")
else
+ feedback_set_details("round_end_result","shadowling loss - generic failure")
to_chat(world, "The shadowlings have failed!")
..()
return 1
diff --git a/code/game/gamemodes/wizard/raginmages.dm b/code/game/gamemodes/wizard/raginmages.dm
index 37d8aed5a39..bb62b7bebea 100644
--- a/code/game/gamemodes/wizard/raginmages.dm
+++ b/code/game/gamemodes/wizard/raginmages.dm
@@ -180,6 +180,6 @@
/datum/game_mode/wizard/raginmages/declare_completion()
if(finished)
- feedback_set_details("round_end_result","loss - wizard killed")
+ feedback_set_details("round_end_result","raging wizard loss - wizard killed")
to_chat(world, " The crew has managed to hold off the wizard attack! The Space Wizards Federation has been taught a lesson they will not soon forget!")
..(1)
diff --git a/code/game/gamemodes/wizard/wizard.dm b/code/game/gamemodes/wizard/wizard.dm
index d33fcc48294..d6657ef98c1 100644
--- a/code/game/gamemodes/wizard/wizard.dm
+++ b/code/game/gamemodes/wizard/wizard.dm
@@ -192,7 +192,7 @@
/datum/game_mode/wizard/declare_completion(var/ragin = 0)
if(finished && !ragin)
- feedback_set_details("round_end_result","loss - wizard killed")
+ feedback_set_details("round_end_result","wizard loss - wizard killed")
to_chat(world, " The wizard[(wizards.len>1)?"s":""] has been killed by the crew! The Space Wizards Federation has been taught a lesson they will not soon forget!")
..()
return 1