mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 21:18:37 +01:00
Head revs get codewords, rev antag info panel (#96425)
This commit is contained in:
@@ -442,6 +442,7 @@
|
||||
new_head.give_flash = TRUE
|
||||
new_head.give_hud = TRUE
|
||||
new_head.remove_clumsy = TRUE
|
||||
new_head.roundstart = TRUE
|
||||
candidate.add_antag_datum(new_head, GLOB.revolution_handler.revs)
|
||||
GLOB.revolution_handler.start_revolution()
|
||||
|
||||
|
||||
@@ -111,22 +111,6 @@ SUBSYSTEM_DEF(ticker)
|
||||
else
|
||||
set_lobby_music("[global.config.directory]/title_music/sounds/[pick(music)]")
|
||||
|
||||
if(!GLOB.syndicate_code_phrase)
|
||||
GLOB.syndicate_code_phrase = generate_code_phrase(return_list=TRUE)
|
||||
|
||||
var/codewords = jointext(GLOB.syndicate_code_phrase, "|")
|
||||
var/regex/codeword_match = new("([codewords])", "ig")
|
||||
|
||||
GLOB.syndicate_code_phrase_regex = codeword_match
|
||||
|
||||
if(!GLOB.syndicate_code_response)
|
||||
GLOB.syndicate_code_response = generate_code_phrase(return_list=TRUE)
|
||||
|
||||
var/codewords = jointext(GLOB.syndicate_code_response, "|")
|
||||
var/regex/codeword_match = new("([codewords])", "ig")
|
||||
|
||||
GLOB.syndicate_code_response_regex = codeword_match
|
||||
|
||||
start_at = world.time + (CONFIG_GET(number/lobby_countdown) * (1 SECONDS))
|
||||
|
||||
return SS_INIT_SUCCESS
|
||||
@@ -141,9 +125,9 @@ SUBSYSTEM_DEF(ticker)
|
||||
to_chat(world, span_notice("<b>Welcome to [station_name()]!</b>"))
|
||||
for(var/channel_tag in CONFIG_GET(str_list/channel_announce_new_game))
|
||||
send2chat(new /datum/tgs_message_content("New round starting on [SSmapping.current_map.map_name]!"), channel_tag)
|
||||
|
||||
current_state = GAME_STATE_PREGAME
|
||||
SEND_SIGNAL(src, COMSIG_TICKER_ENTER_PREGAME)
|
||||
|
||||
fire()
|
||||
if(GAME_STATE_PREGAME)
|
||||
//lobby stats for statpanels
|
||||
|
||||
@@ -21,11 +21,24 @@ SUBSYSTEM_DEF(traitor)
|
||||
var/list/datum/uplink_handler/uplink_handlers = list()
|
||||
/// The current scaling per minute of progression.
|
||||
var/current_progression_scaling = 1 MINUTES
|
||||
/// List of code words for traitors
|
||||
var/syndicate_code_phrase
|
||||
/// List of code responses for traitors
|
||||
var/syndicate_code_response
|
||||
/// Regex of code words for traitors
|
||||
var/regex/syndicate_code_phrase_regex
|
||||
/// Regex of code responses for traitors
|
||||
var/regex/syndicate_code_response_regex
|
||||
|
||||
/datum/controller/subsystem/traitor/Initialize()
|
||||
current_progression_scaling = 1 MINUTES * CONFIG_GET(number/traitor_scaling_multiplier)
|
||||
for(var/theft_item in subtypesof(/datum/objective_item/steal))
|
||||
new theft_item
|
||||
|
||||
syndicate_code_phrase = generate_code_phrase(return_list = TRUE)
|
||||
syndicate_code_phrase_regex = new("([jointext(syndicate_code_phrase, "|")])", "ig")
|
||||
syndicate_code_response = generate_code_phrase(return_list = TRUE)
|
||||
syndicate_code_response_regex = new("([jointext(syndicate_code_response, "|")])", "ig")
|
||||
return SS_INIT_SUCCESS
|
||||
|
||||
/datum/controller/subsystem/traitor/fire(resumed)
|
||||
|
||||
Reference in New Issue
Block a user