mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-29 11:31:51 +00:00
- Feedback gathering thing updated. Now it finally supports actual SQL data storage.
Use the global procs to gather feedback: feedback_set(var_name, num) feedback_inc(var_name, num) feedback_dec(var_name, num) feedback_set_details(var_name, text) The values are saved to the database at the end of the round, if it ends properly. Currently the following information is stored: - Time when round starts - Mode - Time when round ends git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2450 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -49,6 +49,9 @@
|
||||
///post_setup()
|
||||
///Everyone should now be on the station and have their normal gear. This is the place to give the special roles extra things
|
||||
/datum/game_mode/proc/post_setup()
|
||||
feedback_set_details("round_start","[time2text(world.realtime)]")
|
||||
if(ticker && ticker.mode)
|
||||
feedback_set_details("game_mode","[ticker.mode]")
|
||||
return 1
|
||||
|
||||
|
||||
|
||||
@@ -207,4 +207,8 @@ var/global/datum/controller/gameticker/ticker
|
||||
if (findtext("[handler]","auto_declare_completion_"))
|
||||
call(mode, handler)()
|
||||
|
||||
feedback_set_details("round_end","[time2text(world.realtime)]")
|
||||
if(blackbox)
|
||||
blackbox.save_all_data_to_sql()
|
||||
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user