summaryrefslogtreecommitdiff
path: root/soh/src/code
diff options
context:
space:
mode:
authorbriaguya <70942617+briaguya-ai@users.noreply.github.com>2023-01-21 09:36:35 -0500
committerGitHub <noreply@github.com>2023-01-21 09:36:35 -0500
commita9e7faa180db8e877e69a8b97ca37feb104b48ec (patch)
tree937e3ad2969ec0baab3aba660fbc4aa12cc492ae /soh/src/code
parent4291ec8252b074ec986cf737d8f0393ed2c1a81f (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.c2
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) {