House renewal price check bugfix
This commit is contained in:
parent
3cee2d1f0f
commit
56c2ca1b6e
@ -1082,7 +1082,7 @@ class CitizenEconomy(CitizenTravel):
|
|||||||
local_cheapest = sorted(offers, key=lambda o: o.price)[0]
|
local_cheapest = sorted(offers, key=lambda o: o.price)[0]
|
||||||
|
|
||||||
global_cheapest = self.get_market_offers("House", q)[f"q{q}"]
|
global_cheapest = self.get_market_offers("House", q)[f"q{q}"]
|
||||||
if global_cheapest.price + 200 < local_cheapest.price:
|
if global_cheapest.price + 2000 < local_cheapest.price:
|
||||||
if global_cheapest.price + 2000 < self.details.cc:
|
if global_cheapest.price + 2000 < self.details.cc:
|
||||||
if self.travel_to_country(global_cheapest.country):
|
if self.travel_to_country(global_cheapest.country):
|
||||||
buy = self.buy_market_offer(global_cheapest, 1)
|
buy = self.buy_market_offer(global_cheapest, 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user