diff --git a/soh/soh/Enhancements/randomizer/Messages/ItemMessages.cpp b/soh/soh/Enhancements/randomizer/Messages/ItemMessages.cpp index 8549ab07f..e93576b8a 100644 --- a/soh/soh/Enhancements/randomizer/Messages/ItemMessages.cpp +++ b/soh/soh/Enhancements/randomizer/Messages/ItemMessages.cpp @@ -65,6 +65,7 @@ void BuildTriforcePieceMessage(CustomMessage& msg) { void BuildCustomItemMessage(Player* player, CustomMessage& msg) { int16_t rgid; + ItemID icon = ITEM_NONE; msg = CustomMessage("You found [[article]][[color]][[name]]%w!", "Du erhältst [[article]][[color]][[name]]%w gefunden!", "Vous avez trouvé [[article]][[color]][[name]]%w!", TEXTBOX_TYPE_BLUE); @@ -73,6 +74,14 @@ void BuildCustomItemMessage(Player* player, CustomMessage& msg) { } else { rgid = player->getItemId; } + // Icon Overrides + switch (rgid) { + case RG_GREG_RUPEE: + icon = ITEM_MASK_GORON; + break; + default: + break; + } CustomMessage name = CustomMessage(Rando::StaticData::RetrieveItem(static_cast(rgid)).GetName(), TEXTBOX_TYPE_BLUE); CustomMessage article = CustomMessage( @@ -80,7 +89,11 @@ void BuildCustomItemMessage(Player* player, CustomMessage& msg) { msg.Replace("[[article]]", article); msg.Replace("[[color]]", Rando::StaticData::RetrieveItem(static_cast(rgid)).GetColor()); msg.Replace("[[name]]", name); - msg.AutoFormat(); + if (icon != ITEM_NONE) { + msg.AutoFormat(icon); + } else { + msg.AutoFormat(); + } } void BuildItemMessage(u16* textId, bool* loadFromMessageTable) {