[CommandProperty(AccessLevel.GameMaster)]
public int Bonus
{
get
{
return this.m_Bonus;
}
set
{
this.m_Bonus = value;
this.InvalidateProperties();
if (this.m_Bonus == 0)
{
if (this.m_SkillMod != null)
this.m_SkillMod.Remove();
this.m_SkillMod = null;
}
else if (this.m_SkillMod == null && this.Parent is Mobile)
{
this.m_SkillMod = new DefaultSkillMod(SkillName.Blacksmith, true, this.m_Bonus);
((Mobile)this.Parent).AddSkillMod(this.m_SkillMod);
}
else if (this.m_SkillMod != null)
{
this.m_SkillMod.Value = this.m_Bonus;
}
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.