Underworld dropshuffle

This commit is contained in:
aerinon
2022-09-30 15:38:35 -06:00
parent 3c0f6ca0e6
commit b71c7aa2b4
26 changed files with 182 additions and 136 deletions

View File

@@ -108,6 +108,8 @@ class RuleFactory(object):
rule.sub_rules.extend(r.sub_rules) # todo: this extension for the lambda calc
elif r.rule_type == RuleType.Static and r.principal: # remove static flag if unnecessary
continue
elif r.rule_type == RuleType.Static and not r.principal: # always evaluates to false
return r
else:
rule.sub_rules.append(r)
if not rule_lambda:
@@ -128,6 +130,8 @@ class RuleFactory(object):
rule.sub_rules.extend(r.sub_rules) # todo: this extension for the lambda calc
elif r.rule_type == RuleType.Static and not r.principal: # remove static flag if unnecessary
continue
elif r.rule_type == RuleType.Static and r.principal: # always evaluates to true
return r
else:
rule.sub_rules.append(r)
if not rule_lambda: