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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user