-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpowerups.hpp
38 lines (32 loc) · 970 Bytes
/
powerups.hpp
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
#pragma once
struct Powerups {
int cost = 3000;
bool active = false;
// Wait variables
struct Wait {
int maxCommands = 10;
int commands = 0;
void updateDifficultyLevel(std::string dif) {
if (dif == "Easy") {
maxCommands *= 2;
} else if (dif == "Impossible") {
maxCommands /= 2;
}
}
};
int incomeMultiplier = 200;
bool incomePowerupActive = false;
std::string powerup1 = "Income Multiplier Powerup";
int payrise = 250;
std::string powerup2 = "Payrise Powerup";
bool payrisePowerupActive = false;
void updateDifficultyLevel(std::string dif) {
if (dif == "Easy") {
incomeMultiplier *= 2;
cost -= 500;
} else if (dif == "Impossible") {
incomeMultiplier /= 20;
cost *= 100;
}
}
};