From 58652ee32f229540dba4936f40a29001965bd791 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 3 Mar 2024 14:03:20 -0500 Subject: [PATCH] Template id assigned in constructor. --- src/engine/objects/Item.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/engine/objects/Item.java b/src/engine/objects/Item.java index 00c17479..0e819a65 100644 --- a/src/engine/objects/Item.java +++ b/src/engine/objects/Item.java @@ -68,6 +68,7 @@ public class Item extends AbstractWorldObject { public Item(int templateID) { super(); + this.templsteID = templateID; this.template = ItemTemplate.itemTemplates.get(templateID); this.chargesRemaining = this.template.item_initial_charges; this.durabilityCurrent = this.template.combat_health_full;