remove item on use
This commit is contained in:
@@ -682,6 +682,7 @@ class Game {
|
|||||||
if(hasBandage) {
|
if(hasBandage) {
|
||||||
System.out.println("You are no longer bleeding.");
|
System.out.println("You are no longer bleeding.");
|
||||||
player.setBleeding(false);
|
player.setBleeding(false);
|
||||||
|
player.removeFromInventory(new Bandage());
|
||||||
}else {
|
}else {
|
||||||
System.out.println("You do not have a bandage!");
|
System.out.println("You do not have a bandage!");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user