Beispiel #1
0
 public Item(ItemObject template, int amount, float durability)
 {
     this.template   = template;
     this.amount     = template.IsStackable ? amount : 1;
     this.durability = durability;
 }
Beispiel #2
0
 public void Clear()
 {
     template   = null;
     amount     = 0;
     durability = -1;
 }
Beispiel #3
0
 // Default constructor required for new items instantiated from inspector
 public Item()
 {
     template   = null;
     amount     = 0;
     durability = -1;
 }