Commit 771062c2 authored by Aaron Sturtevant's avatar Aaron Sturtevant

commiting

parent ba361bac
......@@ -75,7 +75,6 @@ int main() {
if(dungeon.compareStats(playerPtr, monsterPtr, dungeon.roomEncounter)) {
dungeonPtr.monsterResponse(dungeonPtr.floorNum, playerWon);
playerWon = true;
dungeonPtr.floorNum++;
monsterPtr.giveItems(dungeonPtr.encounterNum, itemPtr);
} else {
dungeonPtr.bossResponse(dungeonPtr.floorNum, playerWon);
......@@ -95,13 +94,35 @@ int main() {
}
}
//floor 4
dungeon.getBoss(dungeonPtr.floorNum);
do {
cout << "How do you respond? (Fight, Talk, Or Flee): ";
cin >> response;
if((response == 'Fight') || (response == 'Talk') {
if(dungeon.compareStats(playerPtr, dungeon.floorNum)) {
dungeonPtr.bossResponse(dungeonPtr.floorNum, playerWon);
playerWon = true;
playerVictory = true;
dungeonPtr.floorNum++;
monsterPtr.giveItems(dungeonPtr.floorNum, itemPtr);
} else {
dungeonPtr.bossResponse(dungeonPtr.floorNum, playerWon);
}
} else {
cout << "You run crying out of the room. Shame haunts your footsteps" << endl;
playerWon = true;
dungeon.floorNum--;
}
} while (playerWon == false;);
}
cout << "You win!";
return 0;
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment