diff options
| author | Garrett Cox <garrettjcox@gmail.com> | 2025-01-31 11:28:50 -0600 |
|---|---|---|
| committer | Garrett Cox <garrettjcox@gmail.com> | 2025-01-31 11:28:50 -0600 |
| commit | 7a233a1ce20f6dafe968bbc5b4958b1c7a934bea (patch) | |
| tree | f99f71cd708eb0d44a018f907c5cd6ec30a41714 /mm/2s2h/DeveloperTools/SaveEditor.cpp | |
| parent | 326d8d88e498868ce664ce358b8e9fec4f2b92ef (diff) | |
Change tingle maps to shop checks and more misc tweaks to messaging
Diffstat (limited to 'mm/2s2h/DeveloperTools/SaveEditor.cpp')
| -rw-r--r-- | mm/2s2h/DeveloperTools/SaveEditor.cpp | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/mm/2s2h/DeveloperTools/SaveEditor.cpp b/mm/2s2h/DeveloperTools/SaveEditor.cpp index ae208889c..6d92cae91 100644 --- a/mm/2s2h/DeveloperTools/SaveEditor.cpp +++ b/mm/2s2h/DeveloperTools/SaveEditor.cpp @@ -896,22 +896,13 @@ void DrawItemsAndMasksTab() { .giveItem = [](Actor* actor, PlayState* play) { RandoItemId randoItemId = Rando::ConvertItem((RandoItemId)CUSTOM_ITEM_PARAM); - std::string msg = "You received"; - if (!Ship_IsCStringEmpty(Rando::StaticData::Items[randoItemId].article)) { - msg += " "; - msg += Rando::StaticData::Items[randoItemId].article; - } - - std::string itemName = Rando::StaticData::Items[randoItemId].name; - if (randoItemId == RI_JUNK) { - randoItemId = Rando::CurrentJunkItem(); - itemName += std::string(" (") + Rando::StaticData::Items[randoItemId].name + ")"; - } + std::string prefix = "You found"; + std::string message = Rando::StaticData::GetItemName(randoItemId); CustomMessage::Entry entry = { .textboxType = 2, .icon = Rando::StaticData::GetIconForZMessage(randoItemId), - .msg = msg + " " + itemName + "!", + .msg = prefix + " " + message + "!", }; if (CUSTOM_ITEM_FLAGS & CustomItem::GIVE_ITEM_CUTSCENE) { @@ -922,8 +913,8 @@ void DrawItemsAndMasksTab() { } else { Notification::Emit({ .itemIcon = Rando::StaticData::GetIconTexturePath(randoItemId), - .message = msg, - .suffix = itemName, + .message = prefix, + .suffix = message, }); } Rando::GiveItem(randoItemId); |
