fix: Codegens quivers (#1271)

This commit is contained in:
Kamron Batman 2022-11-23 13:37:39 -08:00 • committed by GitHub
parent c546b2ec70
commit 59ed0a5bb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 573 additions and 672 deletions

View file

@ -1,37 +1,21 @@
namespace Server.Items
using ModernUO.Serialization;
namespace Server.Items;
[SerializationGenerator(0)]
public partial class QuiverOfFire : ElvenQuiver
{
public class QuiverOfFire : ElvenQuiver
[Constructible]
public QuiverOfFire() => Hue = 0x4E7;
public override int LabelNumber => 1073109; // quiver of fire
public override void AlterBowDamage(
ref int phys, ref int fire, ref int cold, ref int pois, ref int nrgy,
ref int chaos, ref int direct
)
{
[Constructible]
public QuiverOfFire() => Hue = 0x4E7;
public QuiverOfFire(Serial serial) : base(serial)
{
}
public override int LabelNumber => 1073109; // quiver of fire
public override void AlterBowDamage(
ref int phys, ref int fire, ref int cold, ref int pois, ref int nrgy,
ref int chaos, ref int direct
)
{
cold = pois = nrgy = chaos = direct = 0;
phys = fire = 50;
}
public override void Serialize(IGenericWriter writer)
{
base.Serialize(writer);
writer.WriteEncodedInt(0); // version
}
public override void Deserialize(IGenericReader reader)
{
base.Deserialize(reader);
var version = reader.ReadEncodedInt();
}
cold = pois = nrgy = chaos = direct = 0;
phys = fire = 50;
}
}