summaryrefslogtreecommitdiff
path: root/mm/2s2h/Rando/DrawItem.cpp
diff options
context:
space:
mode:
authorGarrett Cox <garrettjcox@gmail.com>2024-09-24 15:19:04 -0500
committerGarrett Cox <garrettjcox@gmail.com>2024-09-24 15:19:04 -0500
commit6d0c7f2bb13daf3d2f95ffb576eb8961c3858dcb (patch)
tree8ddc6370e7d6cbdfb6bfa6e8813a5467b825f2f0 /mm/2s2h/Rando/DrawItem.cpp
parent6ecefd767e9cb16b6f0ac1074b402ed32950db49 (diff)
Add ConvertItem concept, and remove reliance on rando_inf for checks
Diffstat (limited to 'mm/2s2h/Rando/DrawItem.cpp')
-rw-r--r--mm/2s2h/Rando/DrawItem.cpp15
1 files changed, 2 insertions, 13 deletions
diff --git a/mm/2s2h/Rando/DrawItem.cpp b/mm/2s2h/Rando/DrawItem.cpp
index 98dbdd804..2d54121c6 100644
--- a/mm/2s2h/Rando/DrawItem.cpp
+++ b/mm/2s2h/Rando/DrawItem.cpp
@@ -124,18 +124,6 @@ void DrawDoubleDefense() {
CLOSE_DISPS(gPlayState->state.gfxCtx);
}
-void DrawProgressiveBow() {
- // TODO: Since the upg_value updates between collecting and the item cutscene, the item cs is displaying the next
- // upgrade
- if (CUR_UPG_VALUE(UPG_QUIVER) == 0) {
- GetItem_Draw(gPlayState, GID_BOW);
- } else if (CUR_UPG_VALUE(UPG_QUIVER) == 1) {
- GetItem_Draw(gPlayState, GID_QUIVER_40);
- } else {
- GetItem_Draw(gPlayState, GID_QUIVER_50);
- }
-}
-
void Rando::DrawItem(RandoItemId randoItemId) {
switch (randoItemId) {
case RI_SUNS_SONG:
@@ -151,8 +139,9 @@ void Rando::DrawItem(RandoItemId randoItemId) {
case RI_DOUBLE_DEFENSE:
DrawDoubleDefense();
break;
+ case RI_PROGRESSIVE_MAGIC:
case RI_PROGRESSIVE_BOW:
- DrawProgressiveBow();
+ Rando::DrawItem(Rando::ConvertItem(randoItemId));
break;
default:
GetItem_Draw(gPlayState, Rando::StaticData::Items[randoItemId].drawId);