Template id assigned in constructor.

This commit is contained in:
2024-03-03 14:03:20 -05:00
parent 1a4d888304
commit 58652ee32f
+1
View File
@@ -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;