From f61026f37807f7ee146e93450f905f831a855094 Mon Sep 17 00:00:00 2001 From: C'tri Goudie Date: Wed, 31 Jan 2024 17:17:41 +0000 Subject: [PATCH] update "evolve_supply_chain" to be less agressive --- .vscode/settings.json | 2 -- behaviours/evolve_supply_chain.py | 8 ++++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index ded78d3..67c2f9f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -5,7 +5,5 @@ ], "python.testing.unittestEnabled": false, "python.testing.pytestEnabled": true, - "python.formatting.provider": "black", - "python.linting.enabled": true, "search.useIgnoreFiles": false } \ No newline at end of file diff --git a/behaviours/evolve_supply_chain.py b/behaviours/evolve_supply_chain.py index 7804639..1e4dc86 100644 --- a/behaviours/evolve_supply_chain.py +++ b/behaviours/evolve_supply_chain.py @@ -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( @@ -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