// Weapon.java
public class Weapon {
    private String name;
    private int baseDamage;
    private double damageMultiplier;

    public Weapon(String name, int baseDamage, double damageMultiplier) {
        this.name = name;
        this.baseDamage = baseDamage;
        this.damageMultiplier = damageMultiplier;
    }

    // 计算实际伤害
    public int calculateDamage() {
        return (int) (baseDamage * damageMultiplier);
    }

    // Getter 和 Setter 方法
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

	public int getBaseDamage() {
        return baseDamage;
    }

    public void setBaseDamage(int baseDamage) {
        this.baseDamage = baseDamage;
    }

	public double getDamageMultiplier() {
        return damageMultiplier;
    }

    public void setDamageMultiplier(double damageMultiplier) {
        this.damageMultiplier = damageMultiplier;
    }
}