7 |
|
#include "_Version.h" |
8 |
|
|
9 |
|
#include "Daodan.h" |
10 |
+ |
#include "Daodan_Config.h" |
11 |
|
#include "Daodan_Cheater.h" |
12 |
|
|
13 |
|
union MSVC_EVIL_FLOAT_HACK |
97 |
|
float cheat_oldheight1 = 45; |
98 |
|
float cheat_oldheight2 = 135; |
99 |
|
bool inc_fallingframes = true; |
100 |
< |
extern bool patch_bsl; |
100 |
> |
|
101 |
|
uint8_t ONICALL DDrCheater(uint32_t cheat) |
102 |
|
{ |
103 |
|
switch (cheat) |
252 |
|
} |
253 |
|
case cheat_elderrune: |
254 |
|
{ |
255 |
< |
if(patch_bsl) { |
255 |
> |
ConfigOption_t* co = DDrConfig_GetOptOfType("patch.bsl", C_BOOL); |
256 |
> |
if (co->value.intBoolVal) |
257 |
> |
{ |
258 |
|
int* Regeneration = &ONgGameState->PlayerCharacter->RegenHax; |
259 |
|
if(*Regeneration) |
260 |
|
{ |