Browse Source

Template id assigned in constructor.

combat-2
MagicBot 9 months ago
parent
commit
58652ee32f
  1. 1
      src/engine/objects/Item.java

1
src/engine/objects/Item.java

@ -68,6 +68,7 @@ public class Item extends AbstractWorldObject {
public Item(int templateID) { public Item(int templateID) {
super(); super();
this.templsteID = templateID;
this.template = ItemTemplate.itemTemplates.get(templateID); this.template = ItemTemplate.itemTemplates.get(templateID);
this.chargesRemaining = this.template.item_initial_charges; this.chargesRemaining = this.template.item_initial_charges;
this.durabilityCurrent = this.template.combat_health_full; this.durabilityCurrent = this.template.combat_health_full;

Loading…
Cancel
Save