-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardy.cpp
83 lines (82 loc) · 2.85 KB
/
hardy.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
71
72
73
74
75
76
77
78
79
80
81
82
83
#include "natures.h"
// Questions based around the Hardy Nature
void hardyQuestions() {
switch(questionNum()) {
case 1:
printf("A test is coming up.\n"
"How do you study for it?\n\n"
"1) Study Hard.\n"
"2) At the last second.\n"
"3) Ignore it and play. \n");
switch(player.answer = cin.get()){
case 1:
player.hardy += 2;
totalQuestionNumChecker();
case 2:
player.relaxed += 2;
totalQuestionNumChecker();
case 3:
player.impish += 2;
totalQuestionNumChecker();
default:
printf("Please put a valid answer...");
hardyQuestions();
}
case 2:
printf("Can you focus on something you like?\n\n"
"1) Yes.\n"
"2) No.\n");
switch(player.answer = cin.get()){
case 1:
player.hardy += 2;
player.docile += 1;
totalQuestionNumChecker();
case 2:
player.sassy += 2;
player.quirky += 2;
totalQuestionNumChecker();
default:
printf("Please put in a valid answer...");
hardyQuestion();
}
case 3:
printf("When the going gets tough, do you get going?\n\n"
"1) Yes.\n"
"2) No.\n");
switch(player.answer = cin.get()){
case 1:
player.hardy += 2;
player.brave += 2;
totalQuestionNumChecker();
case 2:
player.sassy += 2;
player.quirky += 2;
totalQuestionNumChecker();
default:
printf("Please put in a valid answer...");
hardyQuestions();
}
case 4:
printf("There is a bucket.\n"
"If you put water in it, how high will you fill it?\n\n"
"1) Full.\n"
"2) Half.\n"
"3) A little.\n");
switch(player.answer = cin.get()){
case 1:
player.hardy += 2;
totalQuestionNumChecker();
case 2:
player.calm += 2;
totalQuestionNumChecker();
case 3:
player.quirky += 2;
totalQuestionNumChecker();
default:
printf("Please put in a valid answer...");
hardyQuestions();
}
default:
hardyQuestions();
}
}