X-Git-Url: https://harishankar.org/repos/?p=butaba-adventures.git;a=blobdiff_plain;f=butaba.py;h=ca448830eb46095bbdae7ba46f7974731b3ceffc;hp=c59ee11f05cbea898e03108fd714511ba1f8fb77;hb=8d8c32fdbd61956ccc4792524b621524d83b0467;hpb=42a1f54d2fc5153bff97a8fc77086c4b7606c25e diff --git a/butaba.py b/butaba.py index c59ee11..ca44883 100644 --- a/butaba.py +++ b/butaba.py @@ -7,9 +7,10 @@ class Butaba: FRONT = 2 BACK = 3 MAXITEMS = 8 + MAXHEALTH = 100 # initialize our character - def __init__ (self, startrow, startcol, position=LEFT, health=100, magic=10, experience=10, strength=10, gold=0, inventory = []): + def __init__ (self, startrow, startcol, position=LEFT, health=100, magic=1, experience=1, strength=1, gold=0, inventory = []): self.position = position self.row = startrow self.col = startcol @@ -17,6 +18,5 @@ class Butaba: self.experience = experience self.strength = strength self.health = health - self.inventory = inventory + self.objects = inventory self.gold = gold -