first commit

This commit is contained in:
2023-01-22 11:12:57 +01:00
commit 841b49caec
4 changed files with 56 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
class Business():
def __init__(self,production,balance) -> None:
"""production (dict): {
name: 'Gem',
amount: 4,
craft: {
'Raw_Gem': 4,
'Tool_Gem': 0.2,
}
}
balance (int): Starting Balance
"""
self.production=production
self.balance=balance
#Setup Inventory
self.inventory={production["name"]: 0}
for k in production["craft"].items():
self.inventory[k]=0
pass