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

@ -227,7 +227,7 @@ public partial class TrophyAddon : Item, IAddon
private void Deserialize(IGenericReader reader, int version)
{
_hunter = reader.ReadEntity<Mobile>()?.RawName;
Timer.DelayCall((item, crafter) => item._hunter = crafter?.RawName, this, reader.ReadEntity<Mobile>());
_animalWeight = reader.ReadInt();
_westId = reader.ReadInt();
_northId = reader.ReadInt();
@ -355,7 +355,7 @@ public partial class TrophyDeed : Item
private void Deserialize(IGenericReader reader, int version)
{
_hunter = reader.ReadEntity<Mobile>()?.RawName;
Timer.DelayCall((item, crafter) => item._hunter = crafter?.RawName, this, reader.ReadEntity<Mobile>());
_animalWeight = reader.ReadInt();
_westId = reader.ReadInt();
_northId = reader.ReadInt();