Merge pull request #2263 from ThirdLemon/escaperopefix

Fix Escape Rope Message when on gen 8 mechanics
This commit is contained in:
Eduardo Quezada D'Ottone 2022-08-26 21:03:38 -04:00 committed by GitHub
commit e5288449b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -922,6 +922,9 @@ static void ItemUseOnFieldCB_EscapeRope(u8 taskId)
Overworld_ResetStateAfterDigEscRope();
#if I_KEY_ESCAPE_ROPE < GEN_8
RemoveUsedItem();
#else
CopyItemName(gSpecialVar_ItemId, gStringVar2);
StringExpandPlaceholders(gStringVar4, gText_PlayerUsedVar2);
#endif
gTasks[taskId].data[0] = 0;
DisplayItemMessageOnField(taskId, gStringVar4, Task_UseDigEscapeRopeOnField);