summaryrefslogtreecommitdiff
path: root/soh/src/code
diff options
context:
space:
mode:
Diffstat (limited to 'soh/src/code')
-rw-r--r--soh/src/code/z_draw.c9
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);
}