Skip to content

Commit

Permalink
Fixing an issue with weapon attack speed display + Beast Tamer skills
Browse files Browse the repository at this point in the history
  • Loading branch information
PirateIzzy committed Dec 13, 2023
1 parent 67faac3 commit 0156bba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions WzComparerR2/CharaSimControl/GearTooltipRender2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -535,8 +535,6 @@ private Bitmap RenderBase(out int picH)
// if (gear.Props.TryGetValue(GearPropType.attackSpeed, out value) && value > 0)
if (!Gear.Cash && value > 0)
{
TextRenderer.DrawText(g, ": " + ItemStringHelper.GetAttackSpeedString(value),
GearGraphics.EquipDetailFont, new Point(13, picH), Color.White, TextFormatFlags.NoPadding);
bool isValidSpeed = (2 <= value && value <= 9);
string speedStr = string.Format("Attack Speed: {0}{1}{2}",
ItemStringHelper.GetAttackSpeedString(value),
Expand Down
4 changes: 2 additions & 2 deletions WzComparerR2/CharaSimControl/SkillTooltipRender2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,9 @@ private Bitmap RenderSkill(CanvasRegion region, out int picH, out List<int> spli
{
GearGraphics.DrawString(g, "#cCan add Auto Buff Skill#", GearGraphics.ItemDetailFont2, v6SkillSummaryFontColorTable, Skill.Icon.Bitmap == null ? region.LevelDescLeft : region.SkillDescLeft, region.TextRight, ref picH, 16);
}
if (Skill.SkillID / 10000 / 1000 == 10 && Skill.ReqLevel > 0)
if ((Skill.SkillID / 10000 / 1000 == 10 || Skill.SkillID / 10000 / 1000 == 11) && Skill.ReqLevel > 0)
{
GearGraphics.DrawString(g, "#c[Level Required: " + Skill.ReqLevel.ToString() + " or above]#", GearGraphics.ItemDetailFont2, v6SkillSummaryFontColorTable, Skill.Icon.Bitmap == null ? region.LevelDescLeft : region.SkillDescLeft, region.TextRight, ref picH, 40);
GearGraphics.DrawString(g, "#c(Level Required: " + Skill.ReqLevel.ToString() + " or above)#", GearGraphics.ItemDetailFont2, v6SkillSummaryFontColorTable, Skill.Icon.Bitmap == null ? region.LevelDescLeft : region.SkillDescLeft, region.TextRight, ref picH, 16);
}
if (Skill.ReqAmount > 0)
{
Expand Down
2 changes: 1 addition & 1 deletion WzComparerR2/Config/CharaSimGearConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public bool ShowID
set { this["showID"] = value; }
}

[ConfigurationProperty("showWeaponSpeed", DefaultValue = true)]
[ConfigurationProperty("showWeaponSpeed", DefaultValue = false)]
public bool ShowWeaponSpeed
{
get { return (bool)this["showWeaponSpeed"]; }
Expand Down

0 comments on commit 0156bba

Please sign in to comment.