Reorganizes Project (#41)
This commit is contained in:
parent
08bf44af9a
commit
3614a66aee
3499 changed files with 79 additions and 55 deletions
41
Projects/Scripts/Items/Weapons/Staves/BaseStaff.cs
Normal file
41
Projects/Scripts/Items/Weapons/Staves/BaseStaff.cs
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
namespace Server.Items
|
||||
{
|
||||
public abstract class BaseStaff : BaseMeleeWeapon
|
||||
{
|
||||
public BaseStaff(int itemID) : base(itemID)
|
||||
{
|
||||
}
|
||||
|
||||
public BaseStaff(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override int DefHitSound => 0x233;
|
||||
public override int DefMissSound => 0x239;
|
||||
|
||||
public override SkillName DefSkill => SkillName.Macing;
|
||||
public override WeaponType DefType => WeaponType.Staff;
|
||||
public override WeaponAnimation DefAnimation => WeaponAnimation.Bash2H;
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.Write(0); // version
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
|
||||
public override void OnHit(Mobile attacker, Mobile defender, double damageBonus = 1)
|
||||
{
|
||||
base.OnHit(attacker, defender, damageBonus);
|
||||
|
||||
defender.Stam -= Utility.Random(3, 3); // 3-5 points of stamina loss
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue