Skip to content

Commit

Permalink
Importing is now better at correcting invalid items
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonomit committed Nov 28, 2024
1 parent ed84ab7 commit 3c46cfb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Windows/ServerImportWindow.lua
Original file line number Diff line number Diff line change
Expand Up @@ -595,17 +595,19 @@ function LootReserve.Server.Import:SessionSettingsUpdated()
itemID = 0;
end
if LootReserve.Data:IsTokenReward(itemID) and not LootReserve.Server:GetNewSessionItemConditions()[itemID] then
itemID = LootReserve.Data:GetToken(itemID)
itemID = LootReserve.Data:GetToken(itemID);
end
itemID = LootReserve.Data:GetIntendedItem(itemID);
if not row.ItemNames[itemID] then
row.ItemNames[itemID] = {Count = 0, Name = row[itemColumn]};
end
row.ItemNames[itemID].Count = row.ItemNames[itemID].Count + 1;
end
else
if LootReserve.Data:IsTokenReward(itemID) then
itemID = LootReserve.Data:GetToken(itemID)
itemID = LootReserve.Data:GetToken(itemID);
end
itemID = LootReserve.Data:GetIntendedItem(itemID);
row.ItemIDs[itemID] = row.ItemIDs[itemID] and row.ItemIDs[itemID] + 1 or 1;
end
end
Expand Down

0 comments on commit 3c46cfb

Please sign in to comment.