def __init__(self): self.name = "Character" self.player_name = "Zorg" self.character_level = 1 self.hp = 100 self.location_x, self.location_y = (0, 0) self.inventory = Inventory() self.inventory.add_to_pouch("Gold", 15) self.inventory.add_to_inventory(Items.Fist(), 1) self.inventory.equip_main_hand("Fist") 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 } self.weapon = self.inventory.get_main_hand_equipped() self.dmg_mod = 2
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.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 }
def __init__(self): self.inventory = [Items.Gold(15), Items.Fist()] self.hp = 100 self.location_x, self.location_y = World.starting_position self.victory = False