This commit is contained in:
2026-06-25 15:40:40 -04:00
parent fc81a46dd9
commit 988ddf1ebf
5 changed files with 51 additions and 3 deletions

View File

@@ -52,3 +52,11 @@ def feed(cat, amount=100):
def excite(cat, amount=100):
cat.happiness += amount
cat.happiness = _clamp(cat.happiness)
def buy(player, item, price):
if price > player.money:
return False
player.money -= price
player.inventory[item] += 1
return True