Changeset 454


Ignore:
Timestamp:
Aug 10, 2009, 12:45:57 PM (15 years ago)
Author:
rossy
Message:

ninja mode tweak, level 1 easier, level 2 might be possible

Location:
Daodan
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Daodan/src/Daodan_Cheater.c

    r453 r454  
    126126                case cheat_shinobi:
    127127                {
    128                         Character* player = (Character*)*((char**)(ONgGameState + GSA_player));
     128                        Character* player = (Character*)*((void**)(ONgGameState + GSA_player));
    129129                        if (player->MaxHealth == 1)
    130130                        {
    131131                                player->Health = cheat_oldhealth;
    132132                                player->MaxHealth = cheat_oldmaxhealth;
     133                                player->Flags = player->Flags & ~(chr_bossshield | chr_weaponimmune);
    133134                                return 0;
    134135                        }
     
    139140                                player->Health = 1;
    140141                                player->MaxHealth = 1;
     142                                player->Flags = player->Flags | chr_bossshield | chr_weaponimmune;
    141143                                return 1;
    142144                        }
Note: See TracChangeset for help on using the changeset viewer.