Merge pull request #1311 from FirstGearGames/patch-5

Added missing field setter on Item ReadItem() for ARMOR.
This commit is contained in:
MrGadget 2019-12-16 17:31:21 -05:00 committed by GitHub
commit 2b5370f129
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -143,7 +143,8 @@ public static class ItemSerializer
return new Armor return new Armor
{ {
name = reader.ReadString(), name = reader.ReadString(),
hitPoints = reader.ReadPackedInt32() hitPoints = reader.ReadPackedInt32(),
level = reader.ReadPackedInt32()
}; };
default: default:
throw new Exception($"Invalid weapon type {type}"); throw new Exception($"Invalid weapon type {type}");