mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 08:08:49 +01:00
[MIRROR] Remove /datum/game_mode, we SSdynamic now [again] [MDB IGNORE] (#25371)
* Remove /datum/game_mode, we SSdynamic now [again] * Modular * OLD CODE + repath --------- Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com> Co-authored-by: Giz <13398309+vinylspiders@users.noreply.github.com> Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
This commit is contained in:
co-authored by
Mothblocks
Giz
Gandalf
parent
7fb06ba449
commit
d21f0a63f5
@@ -56,8 +56,8 @@
|
||||
if(!check_rights(R_ADMIN))
|
||||
return
|
||||
|
||||
if (!SSticker.mode)
|
||||
to_chat(usr, "<span class='danger'>Not until the round starts!</span>", confidential = TRUE)
|
||||
if (!SSticker.HasRoundStarted())
|
||||
to_chat(usr, span_danger("Not until the round starts!"), confidential = TRUE)
|
||||
return
|
||||
|
||||
var/opt = null
|
||||
@@ -104,7 +104,7 @@
|
||||
else if(href_list["gamemode_panel"])
|
||||
if(!check_rights(R_ADMIN))
|
||||
return
|
||||
SSticker.mode.admin_panel()
|
||||
SSdynamic.admin_panel()
|
||||
|
||||
else if(href_list["call_shuttle"])
|
||||
if(!check_rights(R_ADMIN))
|
||||
@@ -435,7 +435,7 @@
|
||||
else if(href_list["f_dynamic_roundstart"])
|
||||
if(!check_rights(R_ADMIN))
|
||||
return
|
||||
if(SSticker?.mode)
|
||||
if(SSticker.HasRoundStarted())
|
||||
return tgui_alert(usr, "The game has already started.")
|
||||
var/roundstart_rules = list()
|
||||
for (var/rule in subtypesof(/datum/dynamic_ruleset/roundstart))
|
||||
@@ -502,7 +502,7 @@
|
||||
if(!check_rights(R_ADMIN))
|
||||
return
|
||||
|
||||
if(SSticker?.mode)
|
||||
if(SSticker.HasRoundStarted())
|
||||
return tgui_alert(usr, "The game has already started.")
|
||||
|
||||
dynamic_mode_options(usr)
|
||||
@@ -536,7 +536,7 @@
|
||||
if(!check_rights(R_ADMIN))
|
||||
return
|
||||
|
||||
if(SSticker?.mode)
|
||||
if(SSticker.HasRoundStarted())
|
||||
return tgui_alert(usr, "The game has already started.")
|
||||
|
||||
var/new_value = input(usr, "Enter the forced threat level for dynamic mode.", "Forced threat level") as num
|
||||
@@ -1841,8 +1841,7 @@
|
||||
if(!check_rights(R_ADMIN))
|
||||
return
|
||||
|
||||
var/datum/game_mode/dynamic/dynamic = SSticker.mode
|
||||
if(!dynamic.picking_specific_rule(/datum/dynamic_ruleset/midround/from_living/opfor_candidate, forced = TRUE, ignore_cost = TRUE))
|
||||
if(!SSdynamic.picking_specific_rule(/datum/dynamic_ruleset/midround/from_living/opfor_candidate, forced = TRUE, ignore_cost = TRUE))
|
||||
message_admins("An OPFOR candidate could not be selected.")
|
||||
|
||||
// SKYRAT ADDITION END
|
||||
|
||||
Reference in New Issue
Block a user