forked from MagicBane/Server
Template id assigned in constructor.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user