Skip to content

Commit

Permalink
Strength upgrades now increase Power. Bracelets, Silver Gaunt, Gold G…
Browse files Browse the repository at this point in the history
…aunt increase Power by 1/2/3 respectively.
  • Loading branch information
Arrenton committed Sep 24, 2024
1 parent f9d94fa commit adbb1c5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
15 changes: 7 additions & 8 deletions soh/src/code/leveled_overlays.c
Original file line number Diff line number Diff line change
Expand Up @@ -617,19 +617,18 @@ void Leveled_KaleidoEquip_Stats(PlayState* play) {
statY += 10;
// Health
Leveled_DrawTexIA8(play, dgHeartFullTex, 16, 16, statX + 2, statY, 8, 8, 255, 70, 0);
Leveled_DrawTexI8(play, dgMsgChar2FSolidusTex, 8, 16, statX + (gSaveContext.healthCapacity2 >= 1000 ? 35 : 29),
statY - 1, 8, 9, 255, 255, 255);
u8 healthValX = 10;
Leveled_ValueNumberDraw(play, statX + healthValX, statY, gSaveContext.health, 255, 255, 255);
healthValX = gSaveContext.healthCapacity2 >= 1000 ? 40 : 34;
Leveled_ValueNumberDraw(play, statX + healthValX, statY, gSaveContext.healthCapacity2, 120, 255, 0);
u8 healthValX = gSaveContext.healthCapacity2 >= 1000 ? 12 : gSaveContext.healthCapacity2 >= 100 ? 6 : 0;
Leveled_ValueNumberDraw(play, statX + 10 + healthValX, statY, gSaveContext.health, 255, 255, 255);
Leveled_DrawTexI8(play, dgMsgChar2FSolidusTex, 8, 16, statX + 23 + healthValX, statY - 1, 8, 9, 255, 255, 255);
Leveled_ValueNumberDraw(play, statX + 28 + healthValX, statY, gSaveContext.healthCapacity2, 120, 255, 0);
statY += 8;
// Magic
if (gSaveContext.magicCapacity > 0) {
healthValX = gSaveContext.magicCapacity >= 100 ? 6 : 0;
Leveled_DrawTex32(play, dgQuestIconMagicJarBigTex, 24, 24, statX + 2, statY, 14, 14);
Leveled_DrawTexI8(play, dgMsgChar2FSolidusTex, 8, 16, statX + 29, statY - 1, 8, 9, 255, 255, 255);
Leveled_ValueNumberDraw(play, statX + 10, statY, gSaveContext.magic, 255, 255, 255);
Leveled_ValueNumberDraw(play, statX + 34, statY, gSaveContext.magicCapacity, 120, 255, 0);
Leveled_DrawTexI8(play, dgMsgChar2FSolidusTex, 8, 16, statX + 23 + healthValX, statY - 1, 8, 9, 255, 255, 255);
Leveled_ValueNumberDraw(play, statX + 28 + healthValX, statY, gSaveContext.magicCapacity, 120, 255, 0);
statY += 8;
}
// Attack
Expand Down
2 changes: 2 additions & 0 deletions soh/src/code/leveled_stat_math.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ void Leveled_SetPlayerModifiedStats(Player* player) {
default:
break;
}

powerModifier += Player_GetStrength();
}

player->actor.powerModifier = powerModifier;
Expand Down
5 changes: 5 additions & 0 deletions soh/src/overlays/gamestates/ovl_title/z_title.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ void Title_PrintBuildInfo(Gfx** gfxp) {
//if tag is empty (not a release build)
bool showGitInfo = gGitCommitTag[0] == 0;

GfxPrint_SetPos(&printer, 1, 21);
GfxPrint_Printf(&printer, "Leveled Mod Version: 1.1.2.1");
GfxPrint_SetPos(&printer, 1, 22);
GfxPrint_Printf(&printer, "A Mod By Gotest");

if (showGitInfo) {
GfxPrint_SetPos(&printer, 1, 24);
GfxPrint_Printf(&printer, "Git Branch: %s", gGitBranch);
Expand Down

0 comments on commit adbb1c5

Please sign in to comment.