| 125 |
|
} |
| 126 |
|
case cheat_shinobi: |
| 127 |
|
{ |
| 128 |
< |
Character* player = (Character*)*((char**)(ONgGameState + GSA_player)); |
| 128 |
> |
Character* player = (Character*)*((void**)(ONgGameState + GSA_player)); |
| 129 |
|
if (player->MaxHealth == 1) |
| 130 |
|
{ |
| 131 |
|
player->Health = cheat_oldhealth; |
| 132 |
|
player->MaxHealth = cheat_oldmaxhealth; |
| 133 |
+ |
player->Flags = player->Flags & ~(chr_bossshield | chr_weaponimmune); |
| 134 |
|
return 0; |
| 135 |
|
} |
| 136 |
|
else |
| 139 |
|
cheat_oldmaxhealth = player->MaxHealth; |
| 140 |
|
player->Health = 1; |
| 141 |
|
player->MaxHealth = 1; |
| 142 |
+ |
player->Flags = player->Flags | chr_bossshield | chr_weaponimmune; |
| 143 |
|
return 1; |
| 144 |
|
} |
| 145 |
|
|