Commit 1627de1c2cd30ac737eac374a32a8425a1d038bd
1 parent
8b6745bf
铭文升级超过上限bug
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
src/actions/CarAction.lua
... | ... | @@ -129,8 +129,8 @@ function _M.runeUpRpc( agent, data ) |
129 | 129 | local runeData = runeSet[id] |
130 | 130 | if not runeData then return 5 end |
131 | 131 | |
132 | - local maxLv = #csvdb["rune_buildCsv"] | |
133 | - if level >= maxLv then return 6 end | |
132 | + --local maxLv = #csvdb["rune_buildCsv"] | |
133 | + if level >= runeData.lvLimit then return 6 end | |
134 | 134 | local lvData = csvdb["rune_buildCsv"][level] |
135 | 135 | local cost = lvData.cost:toNumMap() |
136 | 136 | if not role:checkItemEnough(cost) then | ... | ... |