Refactors vote code (#18403)

* Vote refactor

* Tweaks

* Review tweaks

* Tweak
This commit is contained in:
AffectedArc07
2022-07-20 22:13:41 +01:00
committed by GitHub
parent 444650ac7a
commit 20add76efb
18 changed files with 364 additions and 470 deletions
+1 -2
View File
@@ -8,7 +8,6 @@
status_info["mode"] = GLOB.master_mode
status_info["respawn"] = GLOB.configuration.general.respawn_enabled
status_info["enter"] = GLOB.enter_allowed
status_info["vote"] = GLOB.configuration.vote.allow_mode_votes
status_info["ai"] = GLOB.configuration.jobs.allow_ai
status_info["host"] = world.host ? world.host : null
status_info["players"] = list()
@@ -32,7 +31,7 @@
status_info["admins"] = admin_count
status_info["map_name"] = SSmapping.map_datum.fluff_name
status_info["round_id"] = GLOB.round_id
// Add more info if we are authed
if(key_valid)
if(SSticker && SSticker.mode)