diff options
| author | Garrett Cox <garrettjcox@gmail.com> | 2022-12-20 15:21:00 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-20 16:21:00 -0500 |
| commit | 95f1ba7202ea464a06ede91749fcc63b69d0d1da (patch) | |
| tree | c68021c8c20266c92acf8d78155bc08a16a099d3 /soh/src/code | |
| parent | 4eee41752007b116a9e6c96f425129e96eb4d67e (diff) | |
Fix cosmetic oob hacks (#2211)
Diffstat (limited to 'soh/src/code')
| -rw-r--r-- | soh/src/code/z_draw.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/soh/src/code/z_draw.c b/soh/src/code/z_draw.c index 9a2de4b46..17deffad2 100644 --- a/soh/src/code/z_draw.c +++ b/soh/src/code/z_draw.c @@ -759,8 +759,15 @@ void GetItem_DrawRecoveryHeart(PlayState* play, s16 drawId) { 1 * -(play->state.frames * 2), 32, 32)); gSPMatrix(POLY_XLU_DISP++, MATRIX_NEWMTX(play->state.gfxCtx), G_MTX_MODELVIEW | G_MTX_LOAD); + if (CVar_GetS32("gCosmetics.Consumable_Hearts.Changed", 0)) { + Color_RGB8 color = CVar_GetRGB("gCosmetics.Consumable_Hearts.Value", (Color_RGB8) { 255, 70, 50 }); + gDPSetGrayscaleColor(POLY_XLU_DISP++, color.r, color.g, color.b, 255); + gSPGrayscale(POLY_XLU_DISP++, true); + } gSPDisplayList(POLY_XLU_DISP++, sDrawItemTable[drawId].dlists[0]); - + if (CVar_GetS32("gCosmetics.Consumable_Hearts.Changed", 0)) { + gSPGrayscale(POLY_XLU_DISP++, false); + } CLOSE_DISPS(play->state.gfxCtx); } |
