X-Git-Url: https://harishankar.org/repos/?p=butaba-adventures.git;a=blobdiff_plain;f=butaba.py;fp=butaba.py;h=7b939804ffcf7e132c879db97a7e0e91b57182e6;hp=99c8a0a89497ac77a25f572bd1e0fc8082c08ff1;hb=6552a4a3522d0b48177a9c2ebedda92b824874f7;hpb=3e350cff23064e74da2ead6c65e46ccdf3e7fa2f diff --git a/butaba.py b/butaba.py index 99c8a0a..7b93980 100644 --- a/butaba.py +++ b/butaba.py @@ -10,7 +10,7 @@ class Butaba: 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 @@ -18,6 +18,6 @@ class Butaba: self.experience = experience self.strength = strength self.health = health - self.inventory = inventory + self.objects = inventory self.gold = gold