diff --git a/Projects/UOContent/Items/Minor Artifacts/ML/QuiverOfElements.cs b/Projects/UOContent/Items/Minor Artifacts/ML/QuiverOfElements.cs index cd72fa5f6..abc834acc 100644 --- a/Projects/UOContent/Items/Minor Artifacts/ML/QuiverOfElements.cs +++ b/Projects/UOContent/Items/Minor Artifacts/ML/QuiverOfElements.cs @@ -16,8 +16,8 @@ namespace Server.Items public override int LabelNumber => 1075040; // Quiver of the Elements public override void AlterBowDamage( - out int phys, out int fire, out int cold, out int pois, out int nrgy, - out int chaos, out int direct + ref int phys, ref int fire, ref int cold, ref int pois, ref int nrgy, + ref int chaos, ref int direct ) { phys = fire = cold = pois = nrgy = direct = 0; diff --git a/Projects/UOContent/Items/Minor Artifacts/ML/QuiverOfRage.cs b/Projects/UOContent/Items/Minor Artifacts/ML/QuiverOfRage.cs index c0abb2706..1e654961c 100644 --- a/Projects/UOContent/Items/Minor Artifacts/ML/QuiverOfRage.cs +++ b/Projects/UOContent/Items/Minor Artifacts/ML/QuiverOfRage.cs @@ -18,8 +18,8 @@ namespace Server.Items public override int LabelNumber => 1075038; // Quiver of Rage public override void AlterBowDamage( - out int phys, out int fire, out int cold, out int pois, out int nrgy, - out int chaos, out int direct + ref int phys, ref int fire, ref int cold, ref int pois, ref int nrgy, + ref int chaos, ref int direct ) { chaos = direct = 0; diff --git a/Projects/UOContent/Items/Quivers/BaseQuiver.cs b/Projects/UOContent/Items/Quivers/BaseQuiver.cs index e961f39e1..544c6965d 100644 --- a/Projects/UOContent/Items/Quivers/BaseQuiver.cs +++ b/Projects/UOContent/Items/Quivers/BaseQuiver.cs @@ -265,15 +265,9 @@ namespace Server.Items list.Add(1074762, prop.ToString()); // Damage modifier: ~1_PERCENT~% } - AlterBowDamage( - out var phys, - out var fire, - out var cold, - out var pois, - out var nrgy, - out var chaos, - out var direct - ); + int phys = 0, fire = 0, cold = 0, pois = 0, nrgy = 0, chaos = 0, direct = 0; + + AlterBowDamage(ref phys, ref fire, ref cold, ref pois, ref nrgy, ref chaos, ref direct); if (phys != 0) { @@ -550,11 +544,9 @@ namespace Server.Items } public virtual void AlterBowDamage( - out int phys, out int fire, out int cold, out int pois, out int nrgy, - out int chaos, out int direct + ref int phys, ref int fire, ref int cold, ref int pois, ref int nrgy, ref int chaos, ref int direct ) { - phys = fire = cold = pois = nrgy = chaos = direct = 0; } public void InvalidateWeight() diff --git a/Projects/UOContent/Items/Quivers/QuiverOfBlight.cs b/Projects/UOContent/Items/Quivers/QuiverOfBlight.cs index 6378d52fb..c0ed1bd11 100644 --- a/Projects/UOContent/Items/Quivers/QuiverOfBlight.cs +++ b/Projects/UOContent/Items/Quivers/QuiverOfBlight.cs @@ -12,8 +12,8 @@ namespace Server.Items public override int LabelNumber => 1073111; // Quiver of Blight public override void AlterBowDamage( - out int phys, out int fire, out int cold, out int pois, out int nrgy, - out int chaos, out int direct + ref int phys, ref int fire, ref int cold, ref int pois, ref int nrgy, + ref int chaos, ref int direct ) { phys = fire = nrgy = chaos = direct = 0; diff --git a/Projects/UOContent/Items/Quivers/QuiverOfFire.cs b/Projects/UOContent/Items/Quivers/QuiverOfFire.cs index 135d89434..8caf6aa2a 100644 --- a/Projects/UOContent/Items/Quivers/QuiverOfFire.cs +++ b/Projects/UOContent/Items/Quivers/QuiverOfFire.cs @@ -12,8 +12,8 @@ namespace Server.Items public override int LabelNumber => 1073109; // quiver of fire public override void AlterBowDamage( - out int phys, out int fire, out int cold, out int pois, out int nrgy, - out int chaos, out int direct + ref int phys, ref int fire, ref int cold, ref int pois, ref int nrgy, + ref int chaos, ref int direct ) { cold = pois = nrgy = chaos = direct = 0; diff --git a/Projects/UOContent/Items/Quivers/QuiverOfIce.cs b/Projects/UOContent/Items/Quivers/QuiverOfIce.cs index faf35ff1c..281519a7a 100644 --- a/Projects/UOContent/Items/Quivers/QuiverOfIce.cs +++ b/Projects/UOContent/Items/Quivers/QuiverOfIce.cs @@ -12,8 +12,8 @@ namespace Server.Items public override int LabelNumber => 1073110; // quiver of ice public override void AlterBowDamage( - out int phys, out int fire, out int cold, out int pois, out int nrgy, - out int chaos, out int direct + ref int phys, ref int fire, ref int cold, ref int pois, ref int nrgy, + ref int chaos, ref int direct ) { fire = pois = nrgy = chaos = direct = 0; diff --git a/Projects/UOContent/Items/Quivers/QuiverOfLightning.cs b/Projects/UOContent/Items/Quivers/QuiverOfLightning.cs index ced6fcfea..d00563ab0 100644 --- a/Projects/UOContent/Items/Quivers/QuiverOfLightning.cs +++ b/Projects/UOContent/Items/Quivers/QuiverOfLightning.cs @@ -12,8 +12,8 @@ namespace Server.Items public override int LabelNumber => 1073112; // Quiver of Lightning public override void AlterBowDamage( - out int phys, out int fire, out int cold, out int pois, out int nrgy, - out int chaos, out int direct + ref int phys, ref int fire, ref int cold, ref int pois, ref int nrgy, + ref int chaos, ref int direct ) { fire = cold = pois = chaos = direct = 0; diff --git a/Projects/UOContent/Items/Weapons/BaseWeapon.cs b/Projects/UOContent/Items/Weapons/BaseWeapon.cs index 1d7fe5db1..aef60a032 100644 --- a/Projects/UOContent/Items/Weapons/BaseWeapon.cs +++ b/Projects/UOContent/Items/Weapons/BaseWeapon.cs @@ -1786,7 +1786,7 @@ namespace Server.Items if (Core.ML && this is BaseRanged && attacker.FindItemOnLayer(Layer.Cloak) is BaseQuiver quiver) { - quiver.AlterBowDamage(out phys, out fire, out cold, out pois, out nrgy, out chaos, out direct); + quiver.AlterBowDamage(ref phys, ref fire, ref cold, ref pois, ref nrgy, ref chaos, ref direct); } if (Consecrated)