Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
7bbf7cb34a | |||
8ce56a31f7 |
@ -4,8 +4,8 @@
|
||||
|
||||
__author__ = """Eriks Karls"""
|
||||
__email__ = 'eriks@72.lv'
|
||||
__version__ = '0.20.3.3'
|
||||
__commit_id__ = "cd861ea"
|
||||
__version__ = '0.20.3.4'
|
||||
__commit_id__ = "8ce56a3"
|
||||
|
||||
from erepublik import classes, utils
|
||||
from erepublik.citizen import Citizen
|
||||
|
@ -849,8 +849,9 @@ class CitizenCompanies(BaseCitizen):
|
||||
fin_factories = wam_holding.get_wam_companies(raw_factory=False)
|
||||
|
||||
free_inventory = self.inventory["total"] - self.inventory["used"]
|
||||
wam_list = [raw_factories + fin_factories][:self.energy.food_fights]
|
||||
while wam_list and free_inventory < self.my_companies.get_needed_inventory_usage(companies=wam_list):
|
||||
wam_list = raw_factories + fin_factories
|
||||
wam_list = wam_list[:self.energy.food_fights]
|
||||
while wam_list and free_inventory < self.my_companies.get_needed_inventory_usage(wam_list):
|
||||
wam_list.pop(-1)
|
||||
|
||||
if wam_list:
|
||||
|
@ -1,5 +1,5 @@
|
||||
[bumpversion]
|
||||
current_version = 0.20.3.3
|
||||
current_version = 0.20.3.4
|
||||
commit = True
|
||||
tag = True
|
||||
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)\.?(?P<dev>\d+)?
|
||||
|
Reference in New Issue
Block a user