Files
CHOMPStation2/code/datums/vote.dm
elly1989@rocketmail.com 0f98fd84dd Replaces the voting system. It should fix a pretty serious server-crashing exploit and simplify the code a fair bit.
Removed all the voting-related adminverbs. It's all built into ooc vote verb.
Admins can now make custom votes for literally anything.
If a vote draws it will pick one of the winners at random.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4677 316c924e-a436-60f5-8080-3fe189b3f50e
2012-09-12 00:44:13 +00:00

13 lines
406 B
Plaintext

/datum/vote
var/voting = 0 // true if currently voting
var/nextvotetime = 0 // time at which next vote can be started
var/votetime = 60 // time at which voting will end
var/mode = 0 // 0 = restart vote, 1 = mode vote
// modes which can be voted for
var/winner = null // the vote winner
var/customname
var/choices = list()
var/enteringchoices = 0
var/instant_restart = 0