Skip to content

Commit

Permalink
(Aegis) assert the existence of specific yeti-booster
Browse files Browse the repository at this point in the history
  • Loading branch information
ahyangyi committed Nov 3, 2023
1 parent ccb890c commit 678ed4e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions industry/lib/validator/yeti.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from industry.lib.economy import WorkerYard
from industry.industries import worker_yard
from industry.cargos import passengers, mail, tired_workers


def check_yeti(economy):
Expand All @@ -13,3 +14,9 @@ def check_yeti(economy):
assert len(conf.boosters) == 2
else:
assert len(conf.boosters) == 3
if economy.parameters["WORKFORCE"] == "YETI_PASSENGERS":
assert conf.boosters[2] == passengers
if economy.parameters["WORKFORCE"] == "YETI_MAIL":
assert conf.boosters[2] == mail
if economy.parameters["WORKFORCE"] == "YETI_TIRED":
assert conf.boosters[2] == tired_workers

0 comments on commit 678ed4e

Please sign in to comment.