mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Voting System (#31884)
* Voting System
The current voting system is very confusing and difficult to use or modify, so I updated it.
I also have added another voting method, described in #31803. Do not be alarmed, weighted voting is still used, but other methods will be available.
* Everything appears to work
Weighted and majority definitely work
* Update voting.dm
* admin can change from votable or nonvotable
* Revert "admin can change from votable or nonvotable"
This reverts commit 6d0c547958.
* done
* Update voting.js
* done done
* a
* Update voting.dm
* can change voting method
* Update voting.dm
* Update persistence_misc.dm
* a
* Update admin.dm
This commit is contained in:
@@ -32,6 +32,8 @@
|
||||
var/allow_admin_ooccolor = 0 // Allows admins with relevant permissions to have their own ooc colour
|
||||
var/allow_vote_restart = 0 // allow votes to restart
|
||||
var/allow_vote_mode = 0 // allow votes to change mode
|
||||
var/toggle_maps = 0 // Change from votable maps = 0 to all compiled maps = 1
|
||||
var/toggle_vote_method = 0 // Toggle voting methods: Weighted = 0, Majority = 1
|
||||
var/allow_admin_jump = 1 // allows admin jumping
|
||||
var/allow_admin_spawning = 1 // allows admin item spawning
|
||||
var/allow_admin_rev = 1 // allows admin revives
|
||||
@@ -203,9 +205,6 @@
|
||||
var/discord_password
|
||||
var/kill_phrase = "All your bases are belong to us."
|
||||
|
||||
// Weighted Votes
|
||||
var/weighted_votes = 0
|
||||
|
||||
// Dynamic Mode
|
||||
var/high_population_override = 1//If 1, what rulesets can or cannot be called depend on the threat level only
|
||||
|
||||
@@ -352,7 +351,6 @@
|
||||
|
||||
if ("allow_vote_mode")
|
||||
config.allow_vote_mode = 1
|
||||
|
||||
if ("allow_admin_jump")
|
||||
config.allow_admin_jump = 1
|
||||
|
||||
@@ -634,8 +632,6 @@
|
||||
discord_url = value
|
||||
if("discord_password")
|
||||
discord_password = value
|
||||
if("weighted_votes")
|
||||
weighted_votes = TRUE
|
||||
|
||||
if ("kill_phrase")
|
||||
kill_phrase = value
|
||||
@@ -811,4 +807,4 @@
|
||||
if (M.can_start())
|
||||
runnable_modes[M] = probabilities[M.name]
|
||||
// log_startup_progress("DEBUG: runnable_mode\[[runnable_modes.len]\] = [M.name]")
|
||||
return runnable_modes
|
||||
return runnable_modes
|
||||
Reference in New Issue
Block a user