Update - 1.4.0.73

EN: 1.4.0.73
CN: 1.4.0.74
JP: 1.4.0.77
KR: 1.4.0.80
This commit is contained in:
SL1900
2025-12-25 19:00:00 +09:00
parent 5f417fbe9d
commit 35c8d87e86
1183 changed files with 893278 additions and 92778 deletions
+8 -10
View File
@@ -103,16 +103,14 @@ function DatingGiftCtrl:GetGiftFavourLevel(itemList)
end
function DatingGiftCtrl:GetGiftFeedbackLevel(tbItems)
local nLevel = self:GetGiftFavourLevel(tbItems)
if 1 < nLevel then
nLevel = 3
else
for _, v in ipairs(tbItems) do
local itemData = ConfigTable.GetData_Item(v.Tid)
if itemData.Rarity == GameEnum.itemRarity.SSR then
nLevel = 1
else
nLevel = 2
end
for _, v in ipairs(tbItems) do
local itemData = ConfigTable.GetData_Item(v.Tid)
if itemData.Rarity <= GameEnum.itemRarity.SR and nLevel == 1 then
nLevel = 1
elseif itemData.Rarity == GameEnum.itemRarity.R and nLevel == 1 or itemData.Rarity <= GameEnum.itemRarity.SR and nLevel == 2 then
nLevel = 2
elseif itemData.Rarity == GameEnum.itemRarity.R and nLevel == 2 or nLevel == 3 then
nLevel = 3
end
end
return nLevel