Skip to content

Commit

Permalink
update "evolve_supply_chain" to be less agressive
Browse files Browse the repository at this point in the history
  • Loading branch information
Ctri-The-Third committed Jan 31, 2024
1 parent 6e6f917 commit f61026f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"python.formatting.provider": "black",
"python.linting.enabled": true,
"search.useIgnoreFiles": false
}
8 changes: 4 additions & 4 deletions behaviours/evolve_supply_chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@ def _run(self):
if (
tg
and tg.trade_volume < max_import_tv
and SUPPLY_LEVELS[tg.supply] <= 4
and SUPPLY_LEVELS[tg.supply] <= 3
):
while (
SUPPLY_LEVELS[tg.supply] < 5
SUPPLY_LEVELS[tg.supply] < 4
and not self.termination_event.is_set()
):
possible_sources = self.find_markets_that_trade(
Expand Down Expand Up @@ -152,9 +152,9 @@ def _run(self):
tg = main_market.get_tradegood(i)

tg = main_market.get_tradegood(target_link.export_symbol)
if tg and tg.trade_volume < max_export_tv and SUPPLY_LEVELS[tg.supply] >= 2:
if tg and tg.trade_volume < max_export_tv and SUPPLY_LEVELS[tg.supply] >= 3:
while (
SUPPLY_LEVELS[tg.supply] > 1 and not self.termination_event.is_set()
SUPPLY_LEVELS[tg.supply] > 2 and not self.termination_event.is_set()
):
if target_link.parent_link:
possible_destination = target_link.parent_link.market_symbol
Expand Down

0 comments on commit f61026f

Please sign in to comment.