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,4 +154,11 @@ function _M.idlec(role, pms)
154 return "成功" 154 return "成功"
155 end 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 return _M 164 return _M
158 \ No newline at end of file 165 \ No newline at end of file