Commit 9f4cad29576d7f7a475ae27ced7e95198febb81e

Authored by zhangqijia
1 parent f11742e4

revert: 使用关卡卡角色等级;屏蔽账号等级解锁角色等级上限

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()
... ...