fix: Codegens more misc items (#1216)

This commit is contained in:
Kamron Batman 2022-10-29 16:08:23 -07:00 • committed by GitHub
parent 32a5825ddd
commit 39e6f62ec9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
81 changed files with 3042 additions and 3780 deletions

View file

@ -1,42 +1,25 @@
using ModernUO.Serialization;
using Server.Network;
namespace Server.Items
namespace Server.Items;
[SerializationGenerator(0, false)]
public partial class PowerCrystal : Item
{
public class PowerCrystal : Item
[Constructible]
public PowerCrystal() : base(0x1F1C) => Weight = 1.0;
public override string DefaultName => "power crystal";
public override void OnDoubleClick(Mobile from)
{
[Constructible]
public PowerCrystal() : base(0x1F1C) => Weight = 1.0;
public PowerCrystal(Serial serial) : base(serial)
if (!from.InRange(GetWorldLocation(), 3))
{
from.LocalOverheadMessage(MessageType.Regular, 0x3B2, 1019045); // I can't reach that.
}
public override string DefaultName => "power crystal";
public override void OnDoubleClick(Mobile from)
else
{
if (!from.InRange(GetWorldLocation(), 3))
{
from.LocalOverheadMessage(MessageType.Regular, 0x3B2, 1019045); // I can't reach that.
}
else
{
from.SendAsciiMessage("This looks like part of a larger contraption.");
}
}
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();
from.SendAsciiMessage("This looks like part of a larger contraption.");
}
}
}