fix: Fixes arrow animations by using 0xC7 when possible. (#2343)
### Summary This is a partial fix for servers that enable 0xC7 and clients that support 0xC7. A proper fix should be made on ClassicUO.
This commit is contained in:
parent
0ac16ddcb3
commit
2b80286d2e
5 changed files with 37 additions and 36 deletions
|
|
@ -454,7 +454,7 @@ namespace Server.Engines.Craft
|
||||||
|
|
||||||
if (from.Skills[skill].Value >= 50.0)
|
if (from.Skills[skill].Value >= 50.0)
|
||||||
{
|
{
|
||||||
scroll.Consume(1);
|
scroll.Consume();
|
||||||
var deed = new RepairDeed(
|
var deed = new RepairDeed(
|
||||||
RepairDeed.GetTypeFor(m_CraftSystem),
|
RepairDeed.GetTypeFor(m_CraftSystem),
|
||||||
from.Skills[skill].Value,
|
from.Skills[skill].Value,
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ public static class RewardBag
|
||||||
1 => Loot.RandomArmor(false, true),
|
1 => Loot.RandomArmor(false, true),
|
||||||
2 => Loot.RandomRangedWeapon(false, true),
|
2 => Loot.RandomRangedWeapon(false, true),
|
||||||
3 => Loot.RandomJewelry(),
|
3 => Loot.RandomJewelry(),
|
||||||
_ => Loot.RandomHat(false) // 4
|
_ => Loot.RandomHat() // 4
|
||||||
};
|
};
|
||||||
|
|
||||||
if (loot == null)
|
if (loot == null)
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@ public partial class OilFlask : Item
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Consume(1);
|
Consume();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -82,7 +82,7 @@ public abstract partial class PromotionalToken : Item
|
||||||
AddBackground(0, 0, 240, 135, 0x2422);
|
AddBackground(0, 0, 240, 135, 0x2422);
|
||||||
// Click "OKAY" to redeem the following promotional item:
|
// Click "OKAY" to redeem the following promotional item:
|
||||||
AddHtmlLocalized(15, 15, 210, 75, 1070972, 0x0, true);
|
AddHtmlLocalized(15, 15, 210, 75, 1070972, 0x0, true);
|
||||||
m_Token.ItemGumpName.AddHtmlText(this, 15, 60, 210, 75, false, false);
|
m_Token.ItemGumpName.AddHtmlText(this, 15, 60, 210, 75);
|
||||||
|
|
||||||
AddButton(160, 95, 0xF7, 0xF8, 1); // Okay
|
AddButton(160, 95, 0xF7, 0xF8, 1); // Okay
|
||||||
AddButton(90, 95, 0xF2, 0xF1, 0); // Cancel
|
AddButton(90, 95, 0xF2, 0xF1, 0); // Cancel
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,7 @@ namespace Server.Items
|
||||||
else if (WeaponAbility.GetCurrentAbility(attacker) is LightningArrow lightningArrow)
|
else if (WeaponAbility.GetCurrentAbility(attacker) is LightningArrow lightningArrow)
|
||||||
{
|
{
|
||||||
// Lightning Arrow doesn't require ammunition
|
// Lightning Arrow doesn't require ammunition
|
||||||
attacker.MovingEffect(defender, EffectID, 18, 1, false, false);
|
attacker.MovingParticles(defender, EffectID, 18, 1, false, false, 0, 0, 0, 0, 0, EffectLayer.RightHand, 0);
|
||||||
lightningArrow.OnHit(attacker, defender, 0, new WorldLocation(defender));
|
lightningArrow.OnHit(attacker, defender, 0, new WorldLocation(defender));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -211,7 +211,8 @@ namespace Server.Items
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
attacker.MovingEffect(defender, EffectID, 18, 1, false, false);
|
attacker.MovingParticles(defender, EffectID, 18, 1, false, false, 0, 0, 0, 0, 0, EffectLayer.RightHand, 0);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -242,41 +243,41 @@ namespace Server.Items
|
||||||
switch (craftResource)
|
switch (craftResource)
|
||||||
{
|
{
|
||||||
case CraftResource.OakWood:
|
case CraftResource.OakWood:
|
||||||
{
|
{
|
||||||
Attributes.Luck += 40;
|
Attributes.Luck += 40;
|
||||||
Attributes.WeaponDamage += 5;
|
Attributes.WeaponDamage += 5;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case CraftResource.AshWood:
|
case CraftResource.AshWood:
|
||||||
{
|
{
|
||||||
Attributes.WeaponSpeed += 10;
|
Attributes.WeaponSpeed += 10;
|
||||||
WeaponAttributes.LowerStatReq += 20;
|
WeaponAttributes.LowerStatReq += 20;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case CraftResource.YewWood:
|
case CraftResource.YewWood:
|
||||||
{
|
{
|
||||||
Attributes.AttackChance += 5;
|
Attributes.AttackChance += 5;
|
||||||
Attributes.WeaponDamage += 10;
|
Attributes.WeaponDamage += 10;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case CraftResource.Bloodwood:
|
case CraftResource.Bloodwood:
|
||||||
{
|
{
|
||||||
Attributes.RegenHits += 2;
|
Attributes.RegenHits += 2;
|
||||||
WeaponAttributes.HitLeechHits += 16;
|
WeaponAttributes.HitLeechHits += 16;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case CraftResource.Heartwood:
|
case CraftResource.Heartwood:
|
||||||
{
|
{
|
||||||
ApplyHeartwoodBonus();
|
ApplyHeartwoodBonus();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case CraftResource.Frostwood:
|
case CraftResource.Frostwood:
|
||||||
{
|
{
|
||||||
AosElementDamages.Physical = 60;
|
AosElementDamages.Physical = 60;
|
||||||
AosElementDamages.Cold = 40;
|
AosElementDamages.Cold = 40;
|
||||||
Attributes.WeaponDamage += 12;
|
Attributes.WeaponDamage += 12;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue