Bugfix - auto buy raw bought all available items in offer, not the required amount
This commit is contained in:
parent
4e337177f2
commit
845cd8d174
@ -5,7 +5,7 @@
|
||||
__author__ = """Eriks Karls"""
|
||||
__email__ = 'eriks@72.lv'
|
||||
__version__ = '0.20.0'
|
||||
__commit_id__ = "eed244d"
|
||||
__commit_id__ = "4e33717"
|
||||
|
||||
from erepublik import classes, utils
|
||||
from erepublik.citizen import Citizen
|
||||
|
@ -2463,7 +2463,7 @@ class Citizen(CitizenAnniversary, CitizenCompanies, CitizenEconomy, CitizenLeade
|
||||
|
||||
if not best_offer.country == self.details.current_country:
|
||||
self.travel_to_country(best_offer.country)
|
||||
rj = self.buy_from_market(amount=best_offer.amount, offer=best_offer.offer_id)
|
||||
rj = self.buy_from_market(amount=amount, offer=best_offer.offer_id)
|
||||
if not rj.get('error'):
|
||||
amount_needed -= amount
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user