mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-21 20:20:33 +01:00
Fixes a fair few execute() errors in dynamic midround rulesets (#69130)
This commit is contained in:
@@ -11,7 +11,11 @@
|
||||
else if (!has_scaling_cost && !is_lone)
|
||||
TEST_FAIL("[ruleset] has no scaling cost, but is also not a lone/highlander ruleset.")
|
||||
|
||||
for (var/datum/dynamic_ruleset/midround/ruleset as anything in subtypesof(/datum/dynamic_ruleset/midround) - /datum/dynamic_ruleset/midround/from_ghosts)
|
||||
for (var/datum/dynamic_ruleset/midround/ruleset as anything in subtypesof(/datum/dynamic_ruleset/midround))
|
||||
if(initial(ruleset.abstract_type) == ruleset)
|
||||
if(initial(ruleset.weight))
|
||||
TEST_FAIL("[ruleset] is abstract and should never run, it should also have 0 weight set.")
|
||||
continue
|
||||
var/midround_ruleset_style = initial(ruleset.midround_ruleset_style)
|
||||
if (midround_ruleset_style != MIDROUND_RULESET_STYLE_HEAVY && midround_ruleset_style != MIDROUND_RULESET_STYLE_LIGHT)
|
||||
TEST_FAIL("[ruleset] has an invalid midround_ruleset_style, it should be MIDROUND_RULESET_STYLE_HEAVY or MIDROUND_RULESET_STYLE_LIGHT")
|
||||
|
||||
Reference in New Issue
Block a user