Merge pull request #274 from lioncash/health

CGameState: Set HP value in LoadGameFileState()
This commit is contained in:
Phillip Stephens 2020-03-24 17:45:43 -07:00 committed by GitHub
commit 01a0c68db9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -111,6 +111,7 @@ CGameState::GameFileStateInfo CGameState::LoadGameFileState(const u8* data) {
CPlayerState playerState(stream); CPlayerState playerState(stream);
ret.x10_energyTanks = playerState.GetItemCapacity(CPlayerState::EItemType::EnergyTanks); ret.x10_energyTanks = playerState.GetItemCapacity(CPlayerState::EItemType::EnergyTanks);
ret.xc_health = playerState.GetHealthInfo().GetHP();
u32 itemPercent; u32 itemPercent;
if (origMLVL == 0x158EFE17) if (origMLVL == 0x158EFE17)