修改一下
This commit is contained in:
parent
0498aaf75f
commit
54c95564ba
@ -154,7 +154,10 @@ function ActBossRushData:getTodayFightCount()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function ActBossRushData:getFreeFightLimit()
|
function ActBossRushData:getFreeFightLimit()
|
||||||
return 1
|
if not self.freeFightLimit then
|
||||||
|
self.freeFightLimit = GFunc.getConstIntValue("activity_boss_rush_time") or 1
|
||||||
|
end
|
||||||
|
return self.freeFightLimit
|
||||||
end
|
end
|
||||||
|
|
||||||
function ActBossRushData:getFreeFightCount()
|
function ActBossRushData:getFreeFightCount()
|
||||||
@ -170,11 +173,16 @@ function ActBossRushData:getFightFree()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function ActBossRushData:getFightCost()
|
function ActBossRushData:getFightCost()
|
||||||
|
if not self.fightCostOrigin then
|
||||||
|
self.fightCostOrigin = GFunc.getRewardNum(GFunc.getConstReward("activity_boss_rush_cost"))
|
||||||
|
self.fightCostAdd = GFunc.getRewardNum(GFunc.getConstReward("activity_boss_rush_costadd"))
|
||||||
|
end
|
||||||
local count = self.todayFightCount - self:getFreeFightLimit()
|
local count = self.todayFightCount - self:getFreeFightLimit()
|
||||||
if count <= 0 then
|
if count <= 0 then
|
||||||
return 0
|
return self.fightCostOrigin
|
||||||
end
|
end
|
||||||
return count * 20 -- 每次增加20
|
|
||||||
|
return self.fightCostOrigin + self.fightCostAdd * count
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user