Commit bc4f220f authored by Aaron Sturtevant's avatar Aaron Sturtevant

commiting

parent 548a44b5
......@@ -45,7 +45,7 @@ int main() {
cout << "How do you respond? (Fight, Talk, Or Flee): ";
cin >> response;
if((response == 'Fight') || (response == 'Talk') {
if(dungeon.compareStats(playerPtr, bossPtr)) {
if(dungeon.compareStats(playerPtr, dungeon.floorNum)) {
dungeonPtr.bossResponse(dungeonPtr.floorNum, playerWon);
playerWon = true;
dungeonPtr.floorNum++;
......@@ -67,7 +67,30 @@ int main() {
} else {
dungeon.dungeonOutput(dungeon.roomEncounter);
dungeon.getMonster(dungeon.roomEncounter);
do {
cout << "How do you respond? (Fight, Talk, Or Flee): ";
cin >> response;
if((response == 'Fight') || (response == 'Talk') {
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);
}
} else {
cout << "You run crying out of the room. Shame haunts your footsteps" << endl;
playerWon = true;
}
} while (playerWon == false;);
playerWon = false;
dungeon.roomCounter++;
}
......
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