fix: Fixes crafter deserialize, cleans up bandages, and codegens misc items (#1350)

This commit is contained in:
Kamron Batman 2023-02-25 00:54:12 -08:00 • committed by GitHub
parent 22376cfc20
commit 42012538bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
177 changed files with 994 additions and 1262 deletions

View file

@ -1,7 +1,6 @@
using System;
using System.Runtime.CompilerServices;
using ModernUO.Serialization;
using Server.Network;
namespace Server.Items;

View file

@ -122,7 +122,7 @@ public partial class Runebook : Item, ISecurable, ICraftable
base.Deserialize(reader);
_quality = (BookQuality)reader.ReadByte();
_crafter = reader.ReadEntity<Mobile>()?.RawName;
Timer.DelayCall(crafter => _crafter = crafter?.RawName, reader.ReadEntity<Mobile>());
_level = (SecureLevel)reader.ReadInt();
var count = reader.ReadInt();

View file

@ -831,7 +831,7 @@ public partial class Spellbook : Item, ICraftable, ISlayer, IAosItem
{
_quality = (BookQuality)reader.ReadByte();
_engravedText = reader.ReadString();
_crafter = reader.ReadEntity<Mobile>()?.RawName;
Timer.DelayCall((item, crafter) => item._crafter = crafter?.RawName, this, reader.ReadEntity<Mobile>());
_slayer = (SlayerName)reader.ReadInt();
_slayer2 = (SlayerName)reader.ReadInt();