Added new constructor for weapons

This commit is contained in:
elacey
2019-05-23 13:43:34 -04:00
parent 31983e88a7
commit c311ada15e

View File

@@ -7,6 +7,7 @@ public class Item {
private boolean isConsumable;
private int health;
private int weight;
private int damage;
public Item(int id, String name, String description, boolean isConsumable, int health, int weight) {
this.id = id;
@@ -17,6 +18,14 @@ public class Item {
this.weight = weight;
}
public Item(int id, String name, String description, int weight, int damage) {
this.id = id;
this.name = name;
this.description = description;
this.weight = weight;
this.damage = damage;
}
public String getDescription() {
return description;
}