diff options
| author | briaguya <70942617+briaguya-ai@users.noreply.github.com> | 2023-01-21 09:36:35 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-21 09:36:35 -0500 |
| commit | a9e7faa180db8e877e69a8b97ca37feb104b48ec (patch) | |
| tree | 937e3ad2969ec0baab3aba660fbc4aa12cc492ae /soh/src/code | |
| parent | 4291ec8252b074ec986cf737d8f0393ed2c1a81f (diff) | |
Full health spawn (#2377)
* full health spawn
Co-authored-by: MoriyaFaith <46070717+MoriyaFaith@users.noreply.github.com>
* add enahancement to gamemenubar, update to use new cvar method names, simplify save loading logic so loading a save with less than 3 hearts spawns with full hearts with enhancement enabled instead of spawing with 3
* formatting
Co-authored-by: MoriyaFaith <46070717+MoriyaFaith@users.noreply.github.com>
Diffstat (limited to 'soh/src/code')
| -rw-r--r-- | soh/src/code/z_sram.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/soh/src/code/z_sram.c b/soh/src/code/z_sram.c index fc2f5f561..40dcca14c 100644 --- a/soh/src/code/z_sram.c +++ b/soh/src/code/z_sram.c @@ -207,7 +207,7 @@ void Sram_OpenSave() { osSyncPrintf(VT_RST); if (gSaveContext.health < 0x30) { - gSaveContext.health = 0x30; + gSaveContext.health = CVarGetInteger("gFullHealthSpawn", 0) ? gSaveContext.healthCapacity : 0x30; } if (gSaveContext.scarecrowLongSongSet) { |
