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() ]
def __init__(self): self.inventory = [items.Knife(), items.Bread()] self.x = 1 self.y = 2 self.hp = 100 self.gold = 5 self.victory = False
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
def __init__(self): self.name = "Trader" self.gold = 100 self.inventory = [ items.Bread(), items.ShortBow(), items.PotionOfHealth(), items.ShortSword(), items.Crossbow() ]
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"
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
def __init__(self): self.name = 'the Trader' self.gold = 100 self.inventory = [items.Bread(), items.Bread(), items.HealthPotion(), items.HealthPotion(), items.Sword(),]