mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 21:48:21 +01:00
Adds DB logging to crew transfer and map votes (#17516)
* adds logging to crew transfer and map votes * moves vote logging up to encompass all votes
This commit is contained in:
@@ -160,6 +160,8 @@ SUBSYSTEM_DEF(vote)
|
||||
. = announce_result()
|
||||
var/restart = 0
|
||||
if(.)
|
||||
for(var/option in choices)
|
||||
SSblackbox.record_feedback("nested tally", "votes", choices[option], list(mode, option), ignore_seal = TRUE)
|
||||
switch(mode)
|
||||
if("restart")
|
||||
if(. == "Restart Round")
|
||||
@@ -188,7 +190,6 @@ SUBSYSTEM_DEF(vote)
|
||||
to_chat(world, "<font color='purple'>Map for next round: [initial(top_voted_map.fluff_name)] ([initial(top_voted_map.technical_name)])</font>")
|
||||
SSmapping.next_map = new top_voted_map
|
||||
|
||||
|
||||
if(restart)
|
||||
SSticker.reboot_helper("Restart vote successful.", "restart vote")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user