mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 14:07:51 +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:
@@ -176,9 +176,10 @@ SUBSYSTEM_DEF(blackbox)
|
||||
* * increment - If using "amount", how much to increment why
|
||||
* * data - The actual data to logged
|
||||
* * overwrite - Do we want to overwrite the existing key
|
||||
* * ignore_seal - Does the feedback go in regardless of blackbox sealed status? (EG: map vote results)
|
||||
*/
|
||||
/datum/controller/subsystem/blackbox/proc/record_feedback(key_type, key, increment, data, overwrite)
|
||||
if(sealed || !key_type || !istext(key) || !isnum(increment || !data))
|
||||
/datum/controller/subsystem/blackbox/proc/record_feedback(key_type, key, increment, data, overwrite, ignore_seal)
|
||||
if((sealed && !ignore_seal) || !key_type || !istext(key) || !isnum(increment || !data))
|
||||
return
|
||||
var/datum/feedback_variable/FV = find_feedback_datum(key, key_type)
|
||||
switch(key_type)
|
||||
|
||||
Reference in New Issue
Block a user