Closed CLAXES closed 7 months ago
In this code in BaseItem_Refine.cs, there is no problem when you delete it with remove, but this problem occurs when you make it empty.
private static bool RefineItemByList(IPlayerCharacterData character, IList<CharacterItem> list, int itemIndex, int[] enhancerDataIds, out UITextKeys gameMessageType)
{
return RefineItem(character, list[itemIndex], enhancerDataIds, (refinedItem) =>
{
list[itemIndex] = refinedItem;
}, () =>
{
if (GameInstance.Singleton.IsLimitInventorySlot)
{
Debug.Log("empty");
list[itemIndex] = CharacterItem.Empty;
}
else
{
Debug.Log("remove");
list.RemoveAt(itemIndex);
}
}, out gameMessageType);
}
Fixed
If I upgrade an equipped item and it is deleted, I cannot equip another item to that location until I exit and re-enter the game.