From 04da65df605d3125c30d95e83a5d8bae46c77492 Mon Sep 17 00:00:00 2001 From: chenyueqi Date: Wed, 24 Feb 2021 16:38:30 +0800 Subject: [PATCH] tower GM参数值修正 --- src/actions/GmAction.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/actions/GmAction.lua b/src/actions/GmAction.lua index 9e7e704..263b691 100644 --- a/src/actions/GmAction.lua +++ b/src/actions/GmAction.lua @@ -488,16 +488,16 @@ function _M.tower(role, pms) local tType = tonum(pms.pm1, 1) local level = tonum(pms.pm2, 1) local layer = (tType - 1) * 10000 + level - if not csvdb["tower_battleCsv"][tType][level] then return "不存在" end + if not csvdb["tower_battleCsv"][level] then return "不存在" end local values = role:getProperty("towerInfo") if tType == 1 then - values.l = level + values.l = layer elseif tType == 2 then - values.l1 = level + values.l1 = layer elseif tType == 3 then - values.l2 = level + values.l2 = layer elseif tType == 4 then - values.l3 = level + values.l3 = layer end role:updateProperty({field = "towerInfo", value = values}) -- libgit2 0.21.2