HA looks good
This commit is contained in:
@@ -37,7 +37,7 @@ class Price_Believe_Business(Business):
|
||||
self.update_income_per_unit(step)
|
||||
|
||||
# calc descision
|
||||
orderForNewProds = 1
|
||||
orderForNewProds = self.max_storage
|
||||
if self.income_per_unit<=0 or self.expense_per_unit<=0:
|
||||
# dont have data
|
||||
retain=0
|
||||
@@ -47,7 +47,7 @@ class Price_Believe_Business(Business):
|
||||
ie = 0
|
||||
if ie > 1:
|
||||
ie = 1
|
||||
#retain=(self.max_storage-ie*self.max_storage)*amount
|
||||
#retain=((self.max_storage-ie*self.max_storage)*amount)-amount
|
||||
retain=0
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ class Price_Believe_Business(Business):
|
||||
self.aquire[k].set_target(v*orderForNewProds)
|
||||
|
||||
# update production
|
||||
targetUnit = self.production["amount"]*self.max_storage
|
||||
targetUnit = self.production["amount"]*orderForNewProds
|
||||
self.craft.set_target(targetUnit)
|
||||
|
||||
# set min distribute
|
||||
|
||||
Reference in New Issue
Block a user