From 4a057bf5acaf2451a0ea74749ad41543cf28edc1 Mon Sep 17 00:00:00 2001 From: Kamron Batman <3953314+kamronbatman@users.noreply.github.com> Date: Wed, 15 Jun 2022 19:11:52 -0700 Subject: [PATCH] fix: Fixes poison charge OPL (#1068) --- Projects/UOContent/Items/Skill Items/Ninjitsu/Fukiya.cs | 2 +- Projects/UOContent/Items/Skill Items/Ninjitsu/FukiyaDarts.cs | 2 +- .../UOContent/Items/Skill Items/Ninjitsu/LeatherNinjaBelt.cs | 2 +- Projects/UOContent/Items/Skill Items/Ninjitsu/Shuriken.cs | 2 +- Projects/UOContent/Items/Weapons/BaseWeapon.cs | 4 ++-- Projects/UOContent/Mobiles/BaseCreature.cs | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Projects/UOContent/Items/Skill Items/Ninjitsu/Fukiya.cs b/Projects/UOContent/Items/Skill Items/Ninjitsu/Fukiya.cs index a565fce0b..73a46bebc 100644 --- a/Projects/UOContent/Items/Skill Items/Ninjitsu/Fukiya.cs +++ b/Projects/UOContent/Items/Skill Items/Ninjitsu/Fukiya.cs @@ -95,7 +95,7 @@ namespace Server.Items if (m_Poison != null && m_PoisonCharges > 0) { - list.Add(1062412 + m_Poison.Level, m_PoisonCharges.ToString()); + list.Add(1062412 + m_Poison.Level, m_PoisonCharges); } } diff --git a/Projects/UOContent/Items/Skill Items/Ninjitsu/FukiyaDarts.cs b/Projects/UOContent/Items/Skill Items/Ninjitsu/FukiyaDarts.cs index 429b1b5bc..e01b718f3 100644 --- a/Projects/UOContent/Items/Skill Items/Ninjitsu/FukiyaDarts.cs +++ b/Projects/UOContent/Items/Skill Items/Ninjitsu/FukiyaDarts.cs @@ -81,7 +81,7 @@ namespace Server.Items if (m_Poison != null && m_PoisonCharges > 0) { - list.Add(1062412 + m_Poison.Level, m_PoisonCharges.ToString()); + list.Add(1062412 + m_Poison.Level, m_PoisonCharges); } } diff --git a/Projects/UOContent/Items/Skill Items/Ninjitsu/LeatherNinjaBelt.cs b/Projects/UOContent/Items/Skill Items/Ninjitsu/LeatherNinjaBelt.cs index 61a2b45cb..acfebce0c 100644 --- a/Projects/UOContent/Items/Skill Items/Ninjitsu/LeatherNinjaBelt.cs +++ b/Projects/UOContent/Items/Skill Items/Ninjitsu/LeatherNinjaBelt.cs @@ -97,7 +97,7 @@ namespace Server.Items if (m_Poison != null && m_PoisonCharges > 0) { - list.Add(1062412 + m_Poison.Level, m_PoisonCharges.ToString()); + list.Add(1062412 + m_Poison.Level, m_PoisonCharges); } } diff --git a/Projects/UOContent/Items/Skill Items/Ninjitsu/Shuriken.cs b/Projects/UOContent/Items/Skill Items/Ninjitsu/Shuriken.cs index 9a033b1db..3dfd81b6e 100644 --- a/Projects/UOContent/Items/Skill Items/Ninjitsu/Shuriken.cs +++ b/Projects/UOContent/Items/Skill Items/Ninjitsu/Shuriken.cs @@ -82,7 +82,7 @@ namespace Server.Items if (m_Poison != null && m_PoisonCharges > 0) { - list.Add(1062412 + m_Poison.Level, m_PoisonCharges.ToString()); + list.Add(1062412 + m_Poison.Level, m_PoisonCharges); } } diff --git a/Projects/UOContent/Items/Weapons/BaseWeapon.cs b/Projects/UOContent/Items/Weapons/BaseWeapon.cs index 0ae416987..7f2a8296e 100644 --- a/Projects/UOContent/Items/Weapons/BaseWeapon.cs +++ b/Projects/UOContent/Items/Weapons/BaseWeapon.cs @@ -2865,7 +2865,7 @@ namespace Server.Items if (m_Poison != null && m_PoisonCharges > 0) { - list.Add(1062412 + m_Poison.Level, m_PoisonCharges.ToString()); + list.Add(1062412 + m_Poison.Level, m_PoisonCharges); } if (m_Slayer != SlayerName.None) @@ -3054,7 +3054,7 @@ namespace Server.Items if ((prop = WeaponAttributes.MageWeapon) != 0) { - list.Add(1060438, (30 - prop).ToString()); // mage weapon -~1_val~ skill + list.Add(1060438, 30 - prop); // mage weapon -~1_val~ skill } if ((prop = Attributes.BonusMana) != 0) diff --git a/Projects/UOContent/Mobiles/BaseCreature.cs b/Projects/UOContent/Mobiles/BaseCreature.cs index f0d7a5c77..d5127a6ab 100644 --- a/Projects/UOContent/Mobiles/BaseCreature.cs +++ b/Projects/UOContent/Mobiles/BaseCreature.cs @@ -2797,7 +2797,7 @@ namespace Server.Mobiles { if (DisplayWeight) { - list.Add(TotalWeight == 1 ? 1072788 : 1072789, TotalWeight.ToString()); // Weight: ~1_WEIGHT~ stones + list.Add(TotalWeight == 1 ? 1072788 : 1072789, TotalWeight); // Weight: ~1_WEIGHT~ stones } if (m_ControlOrder == OrderType.Guard)