fix: Adds Poison to codegen (#1002)

This commit is contained in:
Kamron Batman 2022-04-18 00:05:44 -07:00 • committed by GitHub
parent 933c41070f
commit fc3d9b926d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 140 additions and 171 deletions

View file

@ -1101,7 +1101,7 @@ namespace Server.Items
writer.Write(Poisoner);
Poison.Serialize(Poison, writer);
writer.Write(Poison);
writer.Write((int)m_Content);
writer.Write(m_Quantity);
}
@ -1133,7 +1133,7 @@ namespace Server.Items
}
case 0:
{
Poison = Poison.Deserialize(reader);
Poison = reader.ReadPoison();
m_Content = (BeverageType)reader.ReadInt();
m_Quantity = reader.ReadInt();
break;

View file

@ -142,7 +142,7 @@ namespace Server.Items
writer.Write(Poisoner);
Poison.Serialize(Poison, writer);
writer.Write(Poison);
writer.Write(FillFactor);
}
@ -170,12 +170,12 @@ namespace Server.Items
}
case 2:
{
Poison = Poison.Deserialize(reader);
Poison = reader.ReadPoison();
break;
}
case 3:
{
Poison = Poison.Deserialize(reader);
Poison = reader.ReadPoison();
FillFactor = reader.ReadInt();
break;
}