fix: Code gens artifacts (#1168)

This commit is contained in:
Kamron Batman 2022-09-10 14:40:19 -07:00 • committed by GitHub
parent 2c294b463c
commit f31cc275bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
107 changed files with 1226 additions and 1932 deletions

View file

@ -1,52 +1,35 @@
namespace Server.Items
using ModernUO.Serialization;
namespace Server.Items;
[SerializationGenerator(0, false)]
public partial class PixieSwatter : Scepter
{
public class PixieSwatter : Scepter
[Constructible]
public PixieSwatter()
{
[Constructible]
public PixieSwatter()
{
Hue = 0x8A;
WeaponAttributes.HitPoisonArea = 75;
Attributes.WeaponSpeed = 30;
Hue = 0x8A;
WeaponAttributes.HitPoisonArea = 75;
Attributes.WeaponSpeed = 30;
WeaponAttributes.UseBestSkill = 1;
WeaponAttributes.ResistFireBonus = 12;
WeaponAttributes.ResistEnergyBonus = 12;
WeaponAttributes.UseBestSkill = 1;
WeaponAttributes.ResistFireBonus = 12;
WeaponAttributes.ResistEnergyBonus = 12;
Slayer = SlayerName.Fey;
}
Slayer = SlayerName.Fey;
}
public PixieSwatter(Serial serial) : base(serial)
{
}
public override int LabelNumber => 1070854; // Pixie Swatter
public override int LabelNumber => 1070854; // Pixie Swatter
public override int InitMinHits => 255;
public override int InitMaxHits => 255;
public override int InitMinHits => 255;
public override int InitMaxHits => 255;
public override void GetDamageTypes(
Mobile wielder, out int phys, out int fire, out int cold, out int pois,
out int nrgy, out int chaos, out int direct
)
{
fire = 100;
cold = pois = phys = nrgy = chaos = direct = 0;
}
public override void Serialize(IGenericWriter writer)
{
base.Serialize(writer);
writer.Write(0);
}
public override void Deserialize(IGenericReader reader)
{
base.Deserialize(reader);
var version = reader.ReadInt();
}
public override void GetDamageTypes(
Mobile wielder, out int phys, out int fire, out int cold, out int pois,
out int nrgy, out int chaos, out int direct
)
{
fire = 100;
cold = pois = phys = nrgy = chaos = direct = 0;
}
}