Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions src/item/weapon/Weapon.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,19 @@
public class Weapon extends Item {

private float attack;

public Weapon(String name, float attack) {
private int durability;
public Weapon(String name, float attack, int durability) {
super(name);
this.attack = attack;
this.durability = durability;
}
public String getNmae() {
return(this.name);
}
public float getAttack() {
return(this.attack);
}
public int getDurability() {
return(this.durability);
}

}