-
Notifications
You must be signed in to change notification settings - Fork 0
/
impish.cpp
70 lines (65 loc) · 1.51 KB
/
impish.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#include "natures.h"
// Impish be Simpish
void impishQuestions() {
switch(questionNum()) {
case 1:
printf("Have you ever made a pitfall trap?\n\n"
"1) Yes.\n"
"2) No.\n");
switch(player.answer == cin.get()) {
case 1:
player.impish += 2;
player.lonely += 1;
totalQuestionNumChecker();
case 2:
player.calm += 2;
totalQuestionNumChucker();
}
case 2:
printf("Do you like pranks?\n\n"
"1) Yes.\n"
"2) No.\n");
switch(player.answer == cin.get()) {
case 1:
player.impish += 2;
totalQuestionNumChecker();
case 2:
player.docile += 1;
player.relaxed += 1;
totalQuestionNumChecker();
}
case 3:
printf("Are there many things taht you would like to do?\n\n"
"1) Yes.\n"
"2) No.\n");
switch(player.answer == cin.get()) {
case 1:
player.hardy += 1;
player.impish += 2;
totalQuestionNumChecker();
case 2:
player.sassy += 1;
player.quirky += 2;
totalQuestionNumChecker();
}
case 4:
printf("Your friend is being bullied!\nWhat do you do?\n\n"
"1) Face up to the bully.\n"
"2) Caution the bully from afar.\n"
"3) Heckle the bully from behind.\n");
switch(player.answer == cin.get()) {
case 1:
player.brave += 3;
totalQuestionNumChecker();
case 2:
player.timid += 2;
totalQuestionNumChecker();
case 3:
player.impish += 2;
totalQuestionNumChecker();
}
default:
printf("Please put a valid answer...");
impishQuestions();
}
}