it just look good

This commit is contained in:
2023-07-12 12:33:58 +02:00
parent 010d1b6d3c
commit 8d5ad7c62d
9 changed files with 61 additions and 16 deletions
+2 -5
View File
@@ -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