Commit b8da6c7a5a4c603157752deff49b9af4fb235f04

Authored by jiyue
2 parents 67495cc1 81e36dfb

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 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 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 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 98 role:costItems(cost, {log = {desc = "heroBreak", int1 = msg.id, int2 = hero:getProperty("type")}})
99 99 local oldAttr = hero:getTotalAttrs()
... ...