Example #1
0
 def __init__(self):
     self.name = "Blacksmith"
     self.gold = 120
     self.inventory = [items.Dagger(),
                         items.RustySword(),
                         items.Axe(),
                         items.CrossBow(),]
Example #2
0
    def modify_player(self, player):
        if self.round_count == 0:
            player.give_item(items.RustySword())

        # this should be on any tile that could have an enemy.
        if len(self.enemy) > 0:
            self.enemy_attacks(player)

        self.round_count += 1
Example #3
0
 def __init__(self):
     self.name = "Trader"
     self.gold = 100
     self.inventory = [
         items.Dagger(),
         items.RustySword(),
         items.Machete(),
         items.CottonShirt()
     ]
Example #4
0
 def __init__(self):
     self.inventory = [items.RustySword(),
                       items.ClothArmor(),
                       items.CrustyBread(),
                       items.DirtyWater(),
                       ]
     self.x = world.start_tile_location[0]
     self.y = world.start_tile_location[1]
     self.hp = 100
     self.gold = 5
Example #5
0
    def __init__(self):
        self.inventory = [
            items.Rock(),
            items.Dagger(),
            items.CrustyBread(),
            items.RustySword()
        ]

        self.x = world.start_tile_location[0]
        self.y = world.start_tile_location[1]
        self.hp = 100
        self.gold = 5
        self.victory = False
Example #6
0
 def __init__(self):
     self.name = "Trader"
     self.gold = 1000
     self.inventory = [
         items.CrustyBread(),
         items.CrustyBread(),
         items.CrustyBread(),
         items.WaterPouch(),
         items.WaterPouch(),
         items.HealingPotion(),
         items.RustySword(),
         items.SilverSword(),
         items.HolySword()
     ]
Example #7
0
 def __init__(self):
     self.name = "Trader"
     self.gold = 500
     self.inventory = [
         items.CrustyBread(),
         items.CrustyBread(),
         items.CrustyBread(),
         items.HealingPotion(),
         items.RustySword(),
         items.LeatherArmor(),
         items.IronArmor(),
         items.IronSword(),
         items.IronShield(),
         items.WoodenStaff()
     ]
Example #8
0
 def __init__(self, x, y):
     r = random.random()
     if r < 0.40:
         self.item = items.Rock()
     elif r < 0.65:
         self.item = items.WaterPouch()
     elif r < 0.80:
         self.item = items.CrustyBread()
     elif r < 0.90:
         self.item = items.Dagger()
     elif r < 0.96:
         self.item = items.HealingPotion()
     else:
         self.item = items.RustySword()
     self.item_claimed = False
     super().__init__(x, y)
Example #9
0
 def modify_player(self, player):
     if not self.item_claimed:
         self.item_claimed = True
         player.inventory.append(items.RustySword()) #Add to the list player.inventory using list.append(item)
         print("{} added to inventory.".format(self.item))
Example #10
0
 def __init__(self, x, y):
     self.item = items.RustySword()
     self.item_claimed = False
     super().__init__(x, y)
Example #11
0
 def __init__(self):
     self.name = "Ogre"
     self.hp = 30
     self.damage = 10
     self.inventory = [items.RustySword(), items.LeatherArmor(), items.CrustyBread()]