Commit 4af997e076d4776ec82f65b682402a6d8a111edb

Authored by zhouhaihai
1 parent e90b4d20

到达指定层

Showing 1 changed file with 7 additions and 0 deletions   Show diff stats
src/actions/GmAction.lua
... ... @@ -154,4 +154,11 @@ function _M.idlec(role, pms)
154 154 return "成功"
155 155 end
156 156  
  157 +function _M.tower(role, pms)
  158 + local level = tonum(pms.pm1, 1)
  159 + if not csvdb["tower_battleCsv"][level] then return "不存在" end
  160 + role:updateProperty({field = "towerInfo", value = {c = globalCsv.tower_count_limit, l = level}})
  161 + return "成功"
  162 +end
  163 +
157 164 return _M
158 165 \ No newline at end of file
... ...