fix(codegen): Codegens Weapons (#698)

This commit is contained in:
Michael Dijkstra 2021-08-20 02:12:24 +10:00 • committed by GitHub
parent 3293ffcf06
commit 3fc2b76468
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
267 changed files with 873 additions and 2705 deletions

View file

@ -3,15 +3,12 @@ using System;
namespace Server.Items
{
[Flippable(0x26C3, 0x26CD)]
public class RepeatingCrossbow : BaseRanged
[Serializable(0, false)]
public partial class RepeatingCrossbow : BaseRanged
{
[Constructible]
public RepeatingCrossbow() : base(0x26C3) => Weight = 6.0;
public RepeatingCrossbow(Serial serial) : base(serial)
{
}
public override int EffectID => 0x1BFE;
public override Type AmmoType => typeof(Bolt);
public override Item Ammo => new Bolt();
@ -34,19 +31,5 @@ namespace Server.Items
public override int InitMinHits => 31;
public override int InitMaxHits => 80;
public override void Serialize(IGenericWriter writer)
{
base.Serialize(writer);
writer.Write(0); // version
}
public override void Deserialize(IGenericReader reader)
{
base.Deserialize(reader);
var version = reader.ReadInt();
}
}
}