Overwrite

Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
Unstable Kitsune
2023-11-28 23:20:26 -05:00
parent 3cd54811de
commit b918192e4e
11608 changed files with 2644205 additions and 47 deletions

View File

@@ -0,0 +1,88 @@
using System;
namespace Server.Items
{
public abstract class BaseSpear : BaseMeleeWeapon
{
public BaseSpear(int itemID)
: base(itemID)
{
}
public BaseSpear(Serial serial)
: base(serial)
{
}
public override int DefHitSound
{
get
{
return 0x23C;
}
}
public override int DefMissSound
{
get
{
return 0x238;
}
}
public override SkillName DefSkill
{
get
{
return SkillName.Fencing;
}
}
public override WeaponType DefType
{
get
{
return WeaponType.Piercing;
}
}
public override WeaponAnimation DefAnimation
{
get
{
return WeaponAnimation.Pierce2H;
}
}
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write((int)0); // version
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
}
public override void OnHit(Mobile attacker, IDamageable defender, double damageBonus)
{
base.OnHit(attacker, defender, damageBonus);
if (!Core.AOS && defender is Mobile && this.Layer == Layer.TwoHanded && (attacker.Skills[SkillName.Anatomy].Value / 400.0) >= Utility.RandomDouble())
{
((Mobile)defender).SendMessage("You receive a paralyzing blow!"); // Is this not localized?
((Mobile)defender).Freeze(TimeSpan.FromSeconds(2.0));
attacker.SendMessage("You deliver a paralyzing blow!"); // Is this not localized?
attacker.PlaySound(0x11C);
}
if (!Core.AOS && defender is Mobile && this.Poison != null && this.PoisonCharges > 0)
{
--this.PoisonCharges;
if (Utility.RandomDouble() >= 0.5) // 50% chance to poison
((Mobile)defender).ApplyPoison(attacker, this.Poison);
}
}
}
}