Major Update - 2.0.0.143

EN: 2.0.0.143
CN: 2.0.0.142
JP: 2.0.0.145
KR: 2.0.0.150
This commit is contained in:
SL1900
2026-10-20 13:00:00 +09:00
parent 4bcada6061
commit 08b515afd9
1773 changed files with 1095195 additions and 65670 deletions
@@ -73,6 +73,7 @@ function PenguinLevel:ParseLevelData(nFloorId)
self.nBuyLimit = mapLevelCfg.InitialBuyLimit
self.nWeightGroupId = mapLevelCfg.WeightGroup
self.sLevelDesc = mapLevelCfg.Floortips
self.sSubLevelDesc = mapLevelCfg.FloorDesc
self.mapBaseCardPool = {
tbId = {},
tbWeight = {}
@@ -503,6 +504,25 @@ function PenguinLevel:CheckUpgradePenguinCard(mapSelectCard)
end
return bUpgrade, nAimIndex
end
function PenguinLevel:CheckUpgradePenguinCardByGroup(nGroupId)
local bUpgrade = false
local nFirstEmpty = 0
local nAimIndex = 0
for i, v in ipairs(self.tbPenguinCard) do
if v == 0 and nFirstEmpty == 0 then
nFirstEmpty = i
end
if v ~= 0 and v.nLevel < v.nMaxLevel and v.nGroupId == nGroupId then
bUpgrade = true
nAimIndex = i
break
end
end
if not bUpgrade then
nAimIndex = nFirstEmpty
end
return bUpgrade, nAimIndex
end
function PenguinLevel:SalePenguinCard(nIndex)
self:ChangeScore(self.tbPenguinCard[nIndex].nSoldPrice)
local mapCard = self.tbPenguinCard[nIndex]