mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-25 09:01:40 +00:00
About The Pull Request Rewrites the entire preferences menu in tgui. Rewrites the entire backend to be built upon datumized preferences, rather than constant additions to the preferences base datum. Splits game preferences into its own window. Antagonists are now split into their individual rulesets. You can now be a roundstart heretic without signing up for latejoin heretic, as an example. This iteration matches parity, and provides very little new functionality, but adding anything new will be much easier. Fixes #60823 Fixes #28907 Fixes #44887 Fixes #59912 Fixes #58458 Fixes #59181 Major TODOs Quirk icons, from @Fikou (with some slight adjustments from me) Lore text, from @EOBGames (4/6, need moths and then ethereal lore from @AMonkeyThatCodes) Heavy documentation on how one would add new preferences, species, jobs, etc A lot of specialized testing so that people's real data don't get corrupted Changelog cl Mothblocks, Floyd on lots of the design refactor: The preferences menu has been completely rewritten in tgui. refactor: The "Stop Sounds" verb has been moved to OOC. /cl
37 lines
1.3 KiB
Plaintext
37 lines
1.3 KiB
Plaintext
/// Verifies that roundstart dynamic rulesets are setup properly without external configuration.
|
|
/datum/unit_test/dynamic_roundstart_ruleset_sanity
|
|
|
|
/datum/unit_test/dynamic_roundstart_ruleset_sanity/Run()
|
|
for (var/_ruleset in subtypesof(/datum/dynamic_ruleset/roundstart))
|
|
var/datum/dynamic_ruleset/roundstart/ruleset = _ruleset
|
|
|
|
var/has_scaling_cost = initial(ruleset.scaling_cost)
|
|
var/is_lone = initial(ruleset.flags) & (LONE_RULESET | HIGH_IMPACT_RULESET)
|
|
|
|
if (has_scaling_cost && is_lone)
|
|
Fail("[ruleset] has a scaling_cost, but is also a lone/highlander ruleset.")
|
|
else if (!has_scaling_cost && !is_lone)
|
|
Fail("[ruleset] has no scaling cost, but is also not a lone/highlander ruleset.")
|
|
|
|
/// Verifies that dynamic rulesets have unique antag_flag.
|
|
/datum/unit_test/dynamic_unique_antag_flags
|
|
|
|
/datum/unit_test/dynamic_unique_antag_flags/Run()
|
|
var/list/known_antag_flags = list()
|
|
|
|
for (var/datum/dynamic_ruleset/ruleset as anything in subtypesof(/datum/dynamic_ruleset))
|
|
if (isnull(initial(ruleset.antag_datum)))
|
|
continue
|
|
|
|
var/antag_flag = initial(ruleset.antag_flag)
|
|
|
|
if (isnull(antag_flag))
|
|
Fail("[ruleset] has a null antag_flag!")
|
|
continue
|
|
|
|
if (antag_flag in known_antag_flags)
|
|
Fail("[ruleset] has a non-unique antag_flag [antag_flag] (used by [known_antag_flags[antag_flag]])!")
|
|
continue
|
|
|
|
known_antag_flags[antag_flag] = ruleset
|