From 4af997e076d4776ec82f65b682402a6d8a111edb Mon Sep 17 00:00:00 2001 From: zhouhaihai Date: Mon, 19 Aug 2019 20:26:12 +0800 Subject: [PATCH] 到达指定层 --- src/actions/GmAction.lua | 7 +++++++ 1 file changed, 7 insertions(+), 0 deletions(-) diff --git a/src/actions/GmAction.lua b/src/actions/GmAction.lua index 8d537be..b546cda 100644 --- a/src/actions/GmAction.lua +++ b/src/actions/GmAction.lua @@ -154,4 +154,11 @@ function _M.idlec(role, pms) return "成功" end +function _M.tower(role, pms) + local level = tonum(pms.pm1, 1) + if not csvdb["tower_battleCsv"][level] then return "不存在" end + role:updateProperty({field = "towerInfo", value = {c = globalCsv.tower_count_limit, l = level}}) + return "成功" +end + return _M \ No newline at end of file -- libgit2 0.21.2