diff --git a/Boss.cpp b/Boss.cpp index 2594fc55fdac57cdc6bdbd06fae9dedab59dec9e..d0004519b1bb815b26c7c1c1a62ce9eea621b6d5 100644 --- a/Boss.cpp +++ b/Boss.cpp @@ -96,3 +96,20 @@ void Boss::bossResponse(int floorNum, int playerWon) { } } +void giveBossItems(int floorNum, Inventory inventory) { + + switch(floorNum) { + case 1: + // Minotaur + inventory.gainNewItem("Cow Hammer", 10, -5); + case 2: + // Death + inventory.gainNewItem("Death Svythe", 7, 7); + case 3: + // Dragon + inventory.gainNewItem("Dragon Heart", 0, 10); + case 4: + // Dungen Master + inventory.gainNewItem("Maguffin of Vague Desireability", 15, 15); + } +} \ No newline at end of file diff --git a/Boss.h b/Boss.h index 7d07d0b9616994c33114248de978bc31a747e15c..953e21929fdd23081a44df5eebb67c1f8f8c1303 100644 --- a/Boss.h +++ b/Boss.h @@ -23,5 +23,7 @@ class Boss { // Other Functions void summonBoss(int floorNum); + void bossResponse(int floorNum, int playerWon); + void giveBossItems(int floorNum, Inventory inventory); }; \ No newline at end of file diff --git a/Player.h b/Player.h index 734b7afeb04873159f79639c271434bb8fd6b249..554bc1d267d58992e25a24fe99f17a5b83fd1c26 100644 --- a/Player.h +++ b/Player.h @@ -19,7 +19,9 @@ class Player { talk = 10, string playerName; public: - int health = 100; + // + int health = 100; + // Get Functions int getFight() { return fight; } int getTalk() { return talk; }