mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-14 17:45:02 +01:00
Remove /datum/game_mode, we SSdynamic now [again] (#79965)
I don't remember what was hard about this last time it took me like 20 minutes this time so I'm scared. Removes dynamic simulations, only I have used them and it's a lot more complicated now with this. I plan on making Dynamic simulations a part of moth.fans anyway
This commit is contained in:
@@ -31,8 +31,7 @@
|
||||
dat += "<hr/>"
|
||||
if(SSticker.IsRoundInProgress())
|
||||
dat += "<a href='?src=[REF(src)];[HrefToken()];gamemode_panel=1'>(Game Mode Panel)</a><BR>"
|
||||
if(istype(SSticker.mode, /datum/game_mode/dynamic))
|
||||
dat += "<A href='?src=[REF(src)];[HrefToken()];f_dynamic_ruleset_manage=1'>(Manage Dynamic Rulesets)</A><br>"
|
||||
dat += "<A href='?src=[REF(src)];[HrefToken()];f_dynamic_ruleset_manage=1'>(Manage Dynamic Rulesets)</A><br>"
|
||||
dat += {"
|
||||
<BR>
|
||||
<A href='?src=[REF(src)];[HrefToken()];create_object=1'>Create Object</A><br>
|
||||
@@ -147,9 +146,6 @@
|
||||
user << browse(dat, "window=dyn_mode_options;size=900x650")
|
||||
|
||||
/datum/admins/proc/dynamic_ruleset_manager(mob/user)
|
||||
if (SSticker.current_state > GAME_STATE_PREGAME && !istype(SSticker.mode, /datum/game_mode/dynamic))
|
||||
return // Not running dynamic
|
||||
|
||||
var/dat = "<center><B><h2>Dynamic Ruleset Management</h2></B></center><hr>\
|
||||
Change these options to forcibly enable or disable dynamic rulesets.<br/>\
|
||||
Disabled rulesets will never run, even if they would otherwise be valid.<br/>\
|
||||
@@ -172,11 +168,10 @@
|
||||
user << browse(dat, "window=dyn_mode_options;size=900x650")
|
||||
return
|
||||
|
||||
var/datum/game_mode/dynamic/current_mode = SSticker.mode
|
||||
var/pop_count = length(GLOB.alive_player_list)
|
||||
var/threat_level = current_mode.threat_level
|
||||
dat += dynamic_ruleset_category_during_round_display("Latejoin", current_mode.latejoin_rules, pop_count, threat_level)
|
||||
dat += dynamic_ruleset_category_during_round_display("Midround", current_mode.midround_rules, pop_count, threat_level)
|
||||
var/threat_level = SSdynamic.threat_level
|
||||
dat += dynamic_ruleset_category_during_round_display("Latejoin", SSdynamic.latejoin_rules, pop_count, threat_level)
|
||||
dat += dynamic_ruleset_category_during_round_display("Midround", SSdynamic.midround_rules, pop_count, threat_level)
|
||||
user << browse(dat, "window=dyn_mode_options;size=900x650")
|
||||
|
||||
/datum/admins/proc/dynamic_ruleset_category_pre_start_display(title, list/rules)
|
||||
|
||||
@@ -169,7 +169,6 @@ GLOBAL_PROTECT(admin_verbs_debug)
|
||||
return list(
|
||||
#ifdef TESTING /* Keep these at the top to not make the list look fugly */
|
||||
/client/proc/check_missing_sprites,
|
||||
/client/proc/run_dynamic_simulations,
|
||||
#endif
|
||||
/proc/machine_upgrade,
|
||||
/datum/admins/proc/create_or_modify_area,
|
||||
|
||||
@@ -95,8 +95,7 @@
|
||||
tgui_alert(usr, "The game hasn't started yet!")
|
||||
return
|
||||
var/list/dat = list("<html><head><meta http-equiv='Content-Type' content='text/html; charset=UTF-8'><title>Round Status</title></head><body><h1><B>Round Status</B></h1>")
|
||||
if(istype(SSticker.mode, /datum/game_mode/dynamic)) // Currently only used by dynamic. If more start using this, find a better way.
|
||||
dat += "<a href='?_src_=holder;[HrefToken()];gamemode_panel=1'>Game Mode Panel</a><br>"
|
||||
dat += "<a href='?_src_=holder;[HrefToken()];gamemode_panel=1'>Game Mode Panel</a><br>"
|
||||
dat += "Round Duration: <B>[DisplayTimeText(world.time - SSticker.round_start_time)]</B><BR>"
|
||||
dat += "<B>Emergency shuttle</B><BR>"
|
||||
if(EMERGENCY_IDLE_OR_RECALLED)
|
||||
|
||||
@@ -69,7 +69,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))
|
||||
@@ -400,7 +400,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))
|
||||
@@ -467,7 +467,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)
|
||||
@@ -501,7 +501,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
|
||||
|
||||
Reference in New Issue
Block a user