Merge remote-tracking branch 'origin/master' into hardsync-1.5
This commit is contained in:
@@ -81,30 +81,43 @@
|
||||
|
||||
///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(report) //Gamemodes can override the intercept report. Passing TRUE as the argument will force a report.
|
||||
//finalize_monster_hunters() Disabled for now
|
||||
if(!report)
|
||||
report = !CONFIG_GET(flag/no_intercept_report)
|
||||
addtimer(CALLBACK(GLOBAL_PROC, .proc/display_roundstart_logout_report), ROUNDSTART_LOGOUT_REPORT_TIME)
|
||||
|
||||
if(prob(20)) //CIT CHANGE - adds a 20% chance for the security level to be the opposite of what it normally is
|
||||
if(prob(20)) //cit-change
|
||||
flipseclevel = TRUE
|
||||
|
||||
// if(CONFIG_GET(flag/reopen_roundstart_suicide_roles))
|
||||
// var/delay = CONFIG_GET(number/reopen_roundstart_suicide_roles_delay)
|
||||
// if(delay)
|
||||
// delay = (delay SECONDS)
|
||||
// else
|
||||
// delay = (4 MINUTES) //default to 4 minutes if the delay isn't defined.
|
||||
// addtimer(CALLBACK(GLOBAL_PROC, .proc/reopen_roundstart_suicide_roles), delay)
|
||||
|
||||
if(SSdbcore.Connect())
|
||||
var/sql
|
||||
var/list/to_set = list()
|
||||
var/arguments = list()
|
||||
if(SSticker.mode)
|
||||
sql += "game_mode = '[SSticker.mode]'"
|
||||
to_set += "game_mode = :game_mode"
|
||||
arguments["game_mode"] = SSticker.mode
|
||||
if(GLOB.revdata.originmastercommit)
|
||||
if(sql)
|
||||
sql += ", "
|
||||
sql += "commit_hash = '[GLOB.revdata.originmastercommit]'"
|
||||
if(sql)
|
||||
var/datum/DBQuery/query_round_game_mode = SSdbcore.NewQuery("UPDATE [format_table_name("round")] SET [sql] WHERE id = [GLOB.round_id]")
|
||||
to_set += "commit_hash = :commit_hash"
|
||||
arguments["commit_hash"] = GLOB.revdata.originmastercommit
|
||||
if(to_set.len)
|
||||
arguments["round_id"] = GLOB.round_id
|
||||
var/datum/db_query/query_round_game_mode = SSdbcore.NewQuery(
|
||||
"UPDATE [format_table_name("round")] SET [to_set.Join(", ")] WHERE id = :round_id",
|
||||
arguments
|
||||
)
|
||||
query_round_game_mode.Execute()
|
||||
qdel(query_round_game_mode)
|
||||
if(report)
|
||||
addtimer(CALLBACK(src, .proc/send_intercept, 0), rand(waittime_l, waittime_h))
|
||||
generate_station_goals()
|
||||
gamemode_ready = TRUE
|
||||
return 1
|
||||
return TRUE
|
||||
|
||||
|
||||
///Handles late-join antag assignments
|
||||
|
||||
Reference in New Issue
Block a user