예제 #1
0
 def update_inventory(self, Apple_amt, Bread_amt, Water_amt):
     self.inventory = [
         items.Apple(Apple_amt),
         items.Bread(Bread_amt),
         items.Water(Water_amt),
         items.Sword()
     ]
예제 #2
0
 def __init__(self):
     self.inventory = [items.Knife(), items.Bread()]
     self.x = 1
     self.y = 2
     self.hp = 100
     self.gold = 5
     self.victory = False
예제 #3
0
 def __init__(self):
     self.inventory = [items.Dagger(), 'Gold(5)', items.Bread()]
     self.x = world.start_tile_location[0]
     self.y = world.start_tile_location[1]
     self.hp = 100
     self.gold = 5
     self.victory = False
예제 #4
0
 def __init__(self):
     self.name = "Trader"
     self.gold = 100
     self.inventory = [
         items.Bread(),
         items.ShortBow(),
         items.PotionOfHealth(),
         items.ShortSword(),
         items.Crossbow()
     ]
예제 #5
0
 def reset_stats(self):
     self.inventory = [
         items.Apple(5),
         items.Bread(2),
         items.Water(3),
         items.Sword()
     ]
     self.hp = 100
     self.stamina = 50
     self.glory = 0
     self.glory_statement = "=======================\nYou failed. History will forget you"
예제 #6
0
 def __init__(self):
     self.inventory = [
         items.ShortBow(),
         items.Knife(), 'Gold(5)',
         items.Bread()
     ]
     self.x = world.start_tile_location[0]
     self.y = world.start_tile_location[1]
     self.hp = 100
     self.gold = 10
     self.victory = False
예제 #7
0
 def __init__(self):
     self.name = 'the Trader'
     self.gold = 100
     self.inventory = [items.Bread(), items.Bread(),
                     items.HealthPotion(), items.HealthPotion(),
                      items.Sword(),]