94 |
|
float cheat_oldheight1 = 45; |
95 |
|
float cheat_oldheight2 = 135; |
96 |
|
bool inc_fallingframes = true; |
97 |
< |
|
97 |
> |
extern bool patch_bsl; |
98 |
|
uint8_t ONICALL DDrCheater(uint32_t cheat) |
99 |
|
{ |
100 |
|
switch (cheat) |
249 |
|
player->Flags = player->Flags | chr_noncombatant; |
250 |
|
return 1; |
251 |
|
} |
252 |
+ |
case cheat_elderrune: |
253 |
+ |
{ |
254 |
+ |
if(patch_bsl) { |
255 |
+ |
int* Regeneration = &ONgGameState->PlayerCharacter->RegenHax; |
256 |
+ |
if(*Regeneration) |
257 |
+ |
{ |
258 |
+ |
*Regeneration = 0; |
259 |
+ |
return 0; |
260 |
+ |
} |
261 |
+ |
else |
262 |
+ |
{ |
263 |
+ |
*Regeneration = 1; |
264 |
+ |
return 1; |
265 |
+ |
} |
266 |
+ |
} |
267 |
+ |
else |
268 |
+ |
{ |
269 |
+ |
return ONrCheater(cheat_elderrune); |
270 |
+ |
} |
271 |
+ |
} |
272 |
+ |
|
273 |
|
case cheat_tellmetheversion: |
274 |
|
return 1; |
275 |
|
case cheat_x: |