Vote Logging (#11858)

* Vote Logging

* where from
This commit is contained in:
Geeves
2021-05-09 21:34:55 +02:00
committed by GitHub
parent 5282b47d03
commit 650603787c
2 changed files with 12 additions and 0 deletions
+6
View File
@@ -200,6 +200,12 @@ var/datum/controller/subsystem/vote/SSvote
if(vote in choices)
if(current_votes[ckey])
choices[current_votes[ckey]]["votes"]--
var/vote_descriptor = ""
if(isnewplayer(usr))
vote_descriptor = ", from the lobby"
else if(isobserver(usr))
vote_descriptor = ", as an observer"
log_vote("[ckey] submitted their vote for: [vote][vote_descriptor]")
voted += usr.ckey
choices[vote]["votes"]++ //check this
current_votes[ckey] = vote
+6
View File
@@ -0,0 +1,6 @@
author: Geeves
delete-after: True
changes:
- rscadd: "Voting for something is now logged."