mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-06-05 07:53:29 +00:00
Merge pull request #274 from lioncash/health
CGameState: Set HP value in LoadGameFileState()
This commit is contained in:
commit
01a0c68db9
@ -111,6 +111,7 @@ CGameState::GameFileStateInfo CGameState::LoadGameFileState(const u8* data) {
|
||||
|
||||
CPlayerState playerState(stream);
|
||||
ret.x10_energyTanks = playerState.GetItemCapacity(CPlayerState::EItemType::EnergyTanks);
|
||||
ret.xc_health = playerState.GetHealthInfo().GetHP();
|
||||
|
||||
u32 itemPercent;
|
||||
if (origMLVL == 0x158EFE17)
|
||||
|
Loading…
x
Reference in New Issue
Block a user