fix: Fixes special scroll logic and display (#1691)
### Summary - Fixes edge case calculations with values that aren't exact. - Fixes skill text casing. - Fixes cliloc error for stat cap scroll gump. - Adds `AosSkillBonuses.GetLowercaseLabel()` for lower case localized skill names. - Fixes initial value for constructing a stat scroll so it isn't negative. - Fixes message for Scroll of Alacrity gump. - Fixes missing property invalidation for Skill/Value.
This commit is contained in:
parent
de0d205fd3
commit
7a71e8b340
6 changed files with 120 additions and 62 deletions
|
|
@ -1085,6 +1085,27 @@ namespace Server
|
|||
};
|
||||
}
|
||||
|
||||
public static int GetLowercaseLabel(SkillName skill)
|
||||
{
|
||||
return skill switch
|
||||
{
|
||||
SkillName.Provocation => 1049473, // provocation
|
||||
SkillName.MagicResist => 1049471, // resisting spells
|
||||
SkillName.AnimalTaming => 1049472, // animal taming
|
||||
SkillName.Macing => 1049470, // mace fighting
|
||||
SkillName.Necromancy => 1060842, // necromancy
|
||||
SkillName.Focus => 1061616, // focus
|
||||
SkillName.Chivalry => 1061615, // chivalry
|
||||
SkillName.Bushido => 1062935, // bushido
|
||||
SkillName.Ninjitsu => 1062936, // ninjitsu
|
||||
SkillName.Spellweaving => 1074397, // spellweaving
|
||||
SkillName.Mysticism => 1112544, // mysticism
|
||||
SkillName.Imbuing => 1112545, // imbuing
|
||||
SkillName.Throwing => 1112553, // throwing
|
||||
_ => 1042347 + (int)skill
|
||||
};
|
||||
}
|
||||
|
||||
public void AddTo(Mobile m)
|
||||
{
|
||||
Remove();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue