修改锦标赛积分规则
This commit is contained in:
parent
dff38a11d6
commit
d466037f7e
@ -253,26 +253,13 @@ end
|
||||
|
||||
-- 获取当前总积分
|
||||
function TournArenaData:getBountyTotalScore()
|
||||
local total = self:getBountyLevelScore()
|
||||
|
||||
for l = 1, self:getBountyLevel() - 1 do
|
||||
total = total + (self:getBountyCfgByLevel(l).exp or 0)
|
||||
end
|
||||
|
||||
return total
|
||||
return self:getBountyLevelScore() + (self:getBountyCfgByLevel(self:getBountyLevel()).exp or 0)
|
||||
end
|
||||
|
||||
-- 获取等级所需总积分
|
||||
function TournArenaData:getLevelTotalScore(level)
|
||||
local total = 0
|
||||
|
||||
if level > 1 then
|
||||
for l = 1, level - 1 do
|
||||
total = total + (self:getBountyCfgByLevel(l).exp or 0)
|
||||
end
|
||||
end
|
||||
|
||||
return total
|
||||
local cfg = self:getBountyCfgByLevel(level)
|
||||
return cfg and cfg.exp or 0
|
||||
end
|
||||
|
||||
-- 获取当前升级所需总积分
|
||||
|
||||
@ -269,26 +269,13 @@ end
|
||||
|
||||
-- 获取当前总波次
|
||||
function TournWaveData:getBountyTotalScore()
|
||||
local total = self:getBountyLevelScore()
|
||||
|
||||
for l = 1, self:getBountyLevel() - 1 do
|
||||
total = total + (self:getBountyCfgByLevel(l).exp or 0)
|
||||
end
|
||||
|
||||
return total
|
||||
return self:getBountyLevelScore() + (self:getBountyCfgByLevel(self:getBountyLevel()).exp or 0)
|
||||
end
|
||||
|
||||
-- 获取等级所需总积分
|
||||
function TournWaveData:getLevelTotalScore(level)
|
||||
local total = 0
|
||||
|
||||
if level > 1 then
|
||||
for l = 1, level - 1 do
|
||||
total = total + (self:getBountyCfgByLevel(l).exp or 0)
|
||||
end
|
||||
end
|
||||
|
||||
return total
|
||||
local cfg = self:getBountyCfgByLevel(level)
|
||||
return cfg and cfg.exp or 0
|
||||
end
|
||||
|
||||
-- 获取当前升级所需总积分
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user