v0.0.1-Alpha (#42)
This commit is contained in:
parent
d30f93c454
commit
a36796c2c1
3552 changed files with 2476 additions and 15223 deletions
61
Projects/Scripts/Items/Weapons/Ranged/Bow.cs
Normal file
61
Projects/Scripts/Items/Weapons/Ranged/Bow.cs
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
using System;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[Flippable(0x13B2, 0x13B1)]
|
||||
public class Bow : BaseRanged
|
||||
{
|
||||
[Constructible]
|
||||
public Bow() : base(0x13B2)
|
||||
{
|
||||
Weight = 6.0;
|
||||
Layer = Layer.TwoHanded;
|
||||
}
|
||||
|
||||
public Bow(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override int EffectID => 0xF42;
|
||||
public override Type AmmoType => typeof(Arrow);
|
||||
public override Item Ammo => new Arrow();
|
||||
|
||||
public override WeaponAbility PrimaryAbility => WeaponAbility.ParalyzingBlow;
|
||||
public override WeaponAbility SecondaryAbility => WeaponAbility.MortalStrike;
|
||||
|
||||
public override int AosStrengthReq => 30;
|
||||
public override int AosMinDamage => Core.ML ? 15 : 16;
|
||||
public override int AosMaxDamage => Core.ML ? 19 : 18;
|
||||
public override int AosSpeed => 25;
|
||||
public override float MlSpeed => 4.25f;
|
||||
|
||||
public override int OldStrengthReq => 20;
|
||||
public override int OldMinDamage => 9;
|
||||
public override int OldMaxDamage => 41;
|
||||
public override int OldSpeed => 20;
|
||||
|
||||
public override int DefMaxRange => 10;
|
||||
|
||||
public override int InitMinHits => 31;
|
||||
public override int InitMaxHits => 60;
|
||||
|
||||
public override WeaponAnimation DefAnimation => WeaponAnimation.ShootBow;
|
||||
|
||||
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();
|
||||
|
||||
if (Weight == 7.0)
|
||||
Weight = 6.0;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue