Beispiel #1
0
 def __init__(self):
     self.my_coin_pouch = Items.CoinPouch()
     self.my_coin_pouch.add_to_me("Gold", 15)
     self.inventory = [self.my_coin_pouch, Items.Fist()]
     self.hp = 100
     self.location_x, self.location_y = World.starting_position
     self.victory = False
    def __init__(self):
        self.inventoryDictionary = {}
        self.equippedMainHand = None
        # self.equippedOffHand = None
        # self.equippedArmor = None
        # self.equippedRing = None
        # self.equippedAmulet = None
        self.coin_pouch = Items.CoinPouch()

        self.add_to_inventory(self.coin_pouch, 1)
Beispiel #3
0
 def __init__(self):
     self.my_coin_pouch = Items.CoinPouch()
     self.my_coin_pouch.add_to_me("Gold", 15)
     self.inventory = [self.my_coin_pouch, Items.Fist()]
     self.hp = 100
     self.location_x, self.location_y = World.starting_position
     self.victory = False
     self.character_class = "No Class"
     self.strength = 10
     self.dexterity = 10
     self.constitution = 10
     self.intellect = 10
     self.attributes = {
         "Strength: ": self.strength,
         "Dexterity: ": self.dexterity,
         "Constitution: ": self.constitution,
         "Intellect: ": self.intellect
     }