class Weapon:
    def __init__(self, name, damage, swing_speed, level, durability, cost):
        self.name = name
        self.damage = damage
        self.swing_speed = swing_speed
        self.level = level
        self.durability = durability
        self.cost = cost

    def getConfigs(self):
        ### Iron Longsword configs
        if self.level == 1 and self.name == "Iron Longsword":
            self.durability = 100
            self.damage = 1  # Changes to buffer instead of max_damage
        if self.level == 2 and self.name == "Iron Longsword":
            self.durability = 120
            self.damage = 3
        if self.level == 3 and self.name == "Iron Longsword":
            self.max_durability = 140
            self.damage = 7
        if self.level == 4 and self.name == "Iron Longsword":
            self.durability = 160
            self.damage = 15
        if self.level == 5 and self.name == "Iron Longsword":
            self.durability = 180
            self.damage = 35
        ### Iron Hammer configs
        if self.level == 1 and self.name == "Iron Hammer":
            self.durability = 60
            self.damage = 2
        if self.level == 2 and self.name == "Iron Hammer":
            self.durability = 60
            self.damage = 4
        if self.level == 3 and self.name == "Iron Hammer":
            self.durability = 60
            self.damage = 6
        if self.level == 4 and self.name == "Iron Hammer":
            self.durability = 60
            self.damage = 9
        if self.level == 5 and self.name == "Iron Hammer":
            self.durability = 60
            self.damage = 12
        ### Iron Spear configs
        if self.level == 1 and self.name == "Iron Spear":
            self.durability = 60
            self.damage = 1
        if self.level == 2 and self.name == "Iron Spear":
            self.durability = 60
            self.damage = 3
        if self.level == 3 and self.name == "Iron Spear":
            self.durability = 60
            self.damage = 6
        if self.level == 4 and self.name == "Iron Spear":
            self.durability = 60
            self.damage = 9
        if self.level == 5 and self.name == "Iron Spear":
            self.durability = 60
            self.damage = 12
        ### Rsuty Dagger
        if self.level == 1 and self.name == "Rusty Dagger":
            self.durability = 60
            self.damage = 1
        if self.level == 2 and self.name == "Rusty Dagger":
            self.durability = 60
            self.damage = 3
        if self.level == 3 and self.name == "Rusty Dagger":
            self.durability = 60
            self.damage = 6
        if self.level == 4 and self.name == "Rusty Dagger":
            self.durability = 60
            self.damage = 9
        if self.level == 5 and self.name == "Rusty Dagger":
            self.durability = 60
            self.damage = 12



