remove item on use

This commit is contained in:
jslightham
2019-05-31 23:37:24 -04:00
parent f9f86d221b
commit 90911daccc

View File

@@ -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!");
} }