it just look good
This commit is contained in:
@@ -14,7 +14,7 @@ class Price_Believe_Business(Business):
|
||||
self.expense_per_prod=-1
|
||||
self.income_per_unit = -1
|
||||
self.distribute = Price_Believe_Distribiute_Agent(
|
||||
simulation, self, production["name"], exchange, 0.2,production["amount"]*2, 20)
|
||||
simulation, self, production["name"], exchange, 0.5,production["amount"]*2, 20)
|
||||
self.craft = AutoProductionAgent(simulation, self)
|
||||
self.aquire = {}
|
||||
|
||||
@@ -45,10 +45,7 @@ class Price_Believe_Business(Business):
|
||||
retain=0
|
||||
else:
|
||||
ie = (self.income_per_unit/self.expense_per_unit)-1
|
||||
if ie < 0:
|
||||
ie = 0
|
||||
if ie > 1:
|
||||
ie = 1
|
||||
ie=max(0,min(ie,1))
|
||||
retain=((self.max_storage-ie*self.max_storage)*amount)-amount
|
||||
#retain=0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user