fix: Codegens quivers (#1271)
This commit is contained in:
parent
c546b2ec70
commit
59ed0a5bb4
12 changed files with 573 additions and 672 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue