Skip to content

Commit

Permalink
Merge pull request #169 from Michael0933/HEALTH_HealthInstantDeath
Browse files Browse the repository at this point in the history
[HEALTH]: Implement HealthInstantDeath
  • Loading branch information
Gh0stBlade authored Nov 12, 2023
2 parents 3e9b6fc + c5e8c51 commit 04f2639
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions KAIN2/Game/RAZIEL/HEALTH.C
Original file line number Diff line number Diff line change
Expand Up @@ -289,16 +289,19 @@ void SetMana(int amount)
}
}


// autogenerated function stub:
// void /*$ra*/ HealthInstantDeath(struct _Instance *instance /*$a0*/)
void HealthInstantDeath(struct _Instance *instance)
{ // line 333, offset 0x800a4f24
/* begin block 1 */
// Start line: 731
/* end block 1 */
// End Line: 732
UNIMPLEMENTED();
void HealthInstantDeath(struct _Instance* instance) // Matching - 98.91%
{
gameTrackerX.gameData.asmData.MorphType = 1;
razSpectralShift();
Raziel.HitPoints = 50000;
gameTracker->streamFlags |= 0x80000;
if (Raziel.soulReaver != 0)
{
INSTANCE_Post(Raziel.soulReaver, 0x800105, 0);
}
razSetPlayerEventHistory(0x8000);
Raziel.playerEvent |= 0x8000;
razPlayUnderworldSounds(gameTrackerX.playerInstance);
}

void RAZIEL_DebugHealthSetScale(long healthScale)//Matching - 99.32%
Expand Down

0 comments on commit 04f2639

Please sign in to comment.