Commit 67495cc14aeb63eaeccfb7cae0690d8b4fba15cf
Merge branch 'cn/develop' into cn/publish/ts
Showing
1 changed file
with
10 additions
and
10 deletions
Show diff stats
src/actions/HeroAction.lua
| @@ -42,14 +42,14 @@ function _M.levelUpRpc( agent, data ) | @@ -42,14 +42,14 @@ function _M.levelUpRpc( agent, data ) | ||
| 42 | if not role:checkItemEnough(cost) then return 3 end | 42 | if not role:checkItemEnough(cost) then return 3 end |
| 43 | 43 | ||
| 44 | -- 通过指定关卡后才能升级英雄等级 | 44 | -- 通过指定关卡后才能升级英雄等级 |
| 45 | - --local pass = globalCsv.unit_exp_level_pass[level + 1] | ||
| 46 | - --if pass then | ||
| 47 | - -- if not role:checkHangPass(pass) then return 4 end | ||
| 48 | - --end | 45 | + local pass = globalCsv.unit_exp_level_pass[level + 1] |
| 46 | + if pass then | ||
| 47 | + if not role:checkHangPass(pass) then return 4 end | ||
| 48 | + end | ||
| 49 | 49 | ||
| 50 | --账号等级提升角色等级上限 | 50 | --账号等级提升角色等级上限 |
| 51 | - local accountLevel = role:getAccountLevel() | ||
| 52 | - if level >= accountLevel then return 4 end | 51 | + --local accountLevel = role:getAccountLevel() |
| 52 | + --if level >= accountLevel then return 4 end | ||
| 53 | 53 | ||
| 54 | role:costItems(cost, {log = {desc = "heroLevelUp", int1 = msg.id, int2 = hero:getProperty("type")}}) | 54 | role:costItems(cost, {log = {desc = "heroLevelUp", int1 = msg.id, int2 = hero:getProperty("type")}}) |
| 55 | 55 | ||
| @@ -90,10 +90,10 @@ function _M.breakRpc( agent, data ) | @@ -90,10 +90,10 @@ function _M.breakRpc( agent, data ) | ||
| 90 | if not role:checkItemEnough(cost) then return 4 end | 90 | if not role:checkItemEnough(cost) then return 4 end |
| 91 | 91 | ||
| 92 | -- 通过指定关卡后才能突破英雄 | 92 | -- 通过指定关卡后才能突破英雄 |
| 93 | - --local pass = globalCsv.unit_break_level_pass[breakL + 1] | ||
| 94 | - --if pass then | ||
| 95 | - -- if not role:checkHangPass(pass) then return 4 end | ||
| 96 | - --end | 93 | + local pass = globalCsv.unit_break_level_pass[breakL + 1] |
| 94 | + if pass then | ||
| 95 | + if not role:checkHangPass(pass) then return 4 end | ||
| 96 | + end | ||
| 97 | 97 | ||
| 98 | role:costItems(cost, {log = {desc = "heroBreak", int1 = msg.id, int2 = hero:getProperty("type")}}) | 98 | role:costItems(cost, {log = {desc = "heroBreak", int1 = msg.id, int2 = hero:getProperty("type")}}) |
| 99 | local oldAttr = hero:getTotalAttrs() | 99 | local oldAttr = hero:getTotalAttrs() |