Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
e87c48124c | |||
f0f47566a0 |
@ -4,7 +4,7 @@
|
||||
|
||||
__author__ = """Eriks Karls"""
|
||||
__email__ = 'eriks@72.lv'
|
||||
__version__ = '0.23.2.8'
|
||||
__version__ = '0.23.2.9'
|
||||
|
||||
from erepublik import classes, utils, constants
|
||||
from erepublik.citizen import Citizen
|
||||
|
@ -1039,16 +1039,22 @@ class CitizenEconomy(CitizenTravel):
|
||||
|
||||
global_cheapest = self.get_market_offers("House", q)[f"q{q}"]
|
||||
if global_cheapest.price + 200 < local_cheapest.price:
|
||||
if self.travel_to_country(global_cheapest.country):
|
||||
buy = self.buy_market_offer(global_cheapest, 1)
|
||||
if global_cheapest.price + 2000 < self.details.cc:
|
||||
if self.travel_to_country(global_cheapest.country):
|
||||
buy = self.buy_market_offer(global_cheapest, 1)
|
||||
else:
|
||||
buy = dict(error=True, message='Unable to travel!')
|
||||
else:
|
||||
buy = {'error': True, 'message': 'Unable to travel!'}
|
||||
buy = dict(error=True, message='Not enough money to buy house!')
|
||||
else:
|
||||
buy = self.buy_market_offer(local_cheapest, 1)
|
||||
if local_cheapest.price < self.details.cc:
|
||||
buy = self.buy_market_offer(local_cheapest, 1)
|
||||
else:
|
||||
buy = dict(error=True, message='Not enough money to buy house!')
|
||||
if buy is None:
|
||||
pass
|
||||
elif buy["error"]:
|
||||
msg = f"Unable to buy q{q} house! \n{buy['message']}"
|
||||
msg = f'Unable to buy q{q} house! \n{buy["message"]}'
|
||||
self.write_log(msg)
|
||||
else:
|
||||
ok_to_activate = True
|
||||
|
@ -1,5 +1,5 @@
|
||||
[bumpversion]
|
||||
current_version = 0.23.2.8
|
||||
current_version = 0.23.2.9
|
||||
commit = True
|
||||
tag = True
|
||||
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)\.?(?P<dev>\d+)?
|
||||
|
Reference in New Issue
Block a user