mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Added vars to change hide mode.
This commit is contained in:
@@ -13,6 +13,7 @@ datum/controller/vote
|
||||
var/list/voting = list()
|
||||
var/list/current_votes = list()
|
||||
var/auto_muted = 0
|
||||
var/hide_mode = 1
|
||||
|
||||
New()
|
||||
if(vote != src)
|
||||
@@ -117,17 +118,16 @@ datum/controller/vote
|
||||
var/text
|
||||
if(winners.len > 0)
|
||||
if(winners.len > 1)
|
||||
if(mode != "gamemode") // Here we are making sure we don't announce potential game modes
|
||||
if(mode != "gamemode" || hide_mode == 0) // Here we are making sure we don't announce potential game modes
|
||||
text = "<b>Vote Tied Between:</b>\n"
|
||||
for(var/option in winners)
|
||||
if(mode != "gamemode")
|
||||
text += "\t[option]\n"
|
||||
text += "\t[option]\n"
|
||||
. = pick(winners)
|
||||
|
||||
for(var/key in current_votes)
|
||||
if(choices[current_votes[key]] == .)
|
||||
round_voters += key // Keep track of who voted for the winning round.
|
||||
if(mode == "gamemode" && . == "extended") // Announce Extended gamemode, but not other gamemodes
|
||||
if((mode == "gamemode" && . == "extended") || hide_mode == 0) // Announce Extended gamemode, but not other gamemodes
|
||||
text += "<b>Vote Result: [.]</b>"
|
||||
else
|
||||
if(mode != "gamemode")
|
||||
|
||||
Reference in New Issue
Block a user