Voting Methods (#31907)

* 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

* Voting Methods

I'll try again now that I separated the changes. Hear me out: I'm just adding new methods, they are not used unless an admin uses them, or a PR is made to change the default. The default remains the same as before. Adding two voting methods: persistent (works only for maps) and random (meme). Considering adding another methods too upon request.

* not working

* done

* Update voting.dm

* Update voting.dm

* Update voting.dm

* Update voting.dm

* Update voting.dm

* Update voting.dm

* Update voting.dm

* Update voting.dm

* eyup

* Update voting.dm

* Update voting.dm

* Update persistence_misc.dm

* Update voting.dm

* Update voting.dm

* Update persistence_misc.dm

* done

* done

* Update voting.dm

* Update voting.dm

* Update voting.dm

* Update voting.dm
This commit is contained in:
adacovsk
2022-03-11 12:43:33 -05:00
committed by GitHub
parent 9cb902c418
commit cfacc40135
5 changed files with 75 additions and 31 deletions

View File

@@ -33,7 +33,7 @@
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/toggle_vote_method = 1 // Toggle voting methods: Weighted = 1, Majority = 2, Persistent = 3, Random = 4
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