23 lines
717 B
Python
23 lines
717 B
Python
class Business():
|
|
def __init__(self,id,production,balance) -> None:
|
|
"""production (dict): {
|
|
name: 'Gem',
|
|
amount: 4,
|
|
craft: {
|
|
'Raw_Gem': 4,
|
|
'Tool_Gem': 0.2,
|
|
}
|
|
}
|
|
balance (int): Starting Balance
|
|
"""
|
|
self.id=id
|
|
self.production=production
|
|
self.balance=balance
|
|
#Setup Inventory
|
|
self.inventory={production["name"]: 0}
|
|
for k in production["craft"].items():
|
|
self.inventory[k]=0
|
|
|
|
pass
|
|
|
|
|