-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheat.cpp
50 lines (38 loc) · 1.02 KB
/
cheat.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
#include "cheat.h"
#include "player.h"
#include "role.h"
#include "tool.h"
#include "shop_item.h"
#include <QtMath>
extern Player player;
extern Tools tools;
extern ShopItem items;
extern int mode;
void Cheat::slotCheatEnergy() { // Cheat: Hp+100
player.SetEnergy(player.GetEnerge() + 100);
emit change();
}
void Cheat::slotCheatIQ() { // Cheat: Attack+3
player.SetIQ(player.GetIQ() + 10);
emit change();
}
void Cheat::slotCheatEQ() { // Cheat: Defend+2
player.SetEQ(player.GetEQ() + 2);
emit change();
}
void Cheat::slotCheatMoney() { // Cheat: Money+50
player.SetMoney(player.GetMoney() + 100);
emit change();
}
void Cheat::slotCheatGrade() { // Cheat: Level+1, Hp+10, Attack+1, Defend+1
player.GradeUp();
emit change();
}
void Cheat::slotCheatLike() { // Cheat: Money+50
player.SetLike(player.GetLike() + 100);
emit change();
}
void Cheat::slotCheatMode() { // Cheat: God mode
mode = -mode;
emit change();
}