Commit 04da65df605d3125c30d95e83a5d8bae46c77492
1 parent
e50d0cae
tower GM参数值修正
Showing
1 changed file
with
5 additions
and
5 deletions
Show diff stats
src/actions/GmAction.lua
@@ -488,16 +488,16 @@ function _M.tower(role, pms) | @@ -488,16 +488,16 @@ function _M.tower(role, pms) | ||
488 | local tType = tonum(pms.pm1, 1) | 488 | local tType = tonum(pms.pm1, 1) |
489 | local level = tonum(pms.pm2, 1) | 489 | local level = tonum(pms.pm2, 1) |
490 | local layer = (tType - 1) * 10000 + level | 490 | local layer = (tType - 1) * 10000 + level |
491 | - if not csvdb["tower_battleCsv"][tType][level] then return "不存在" end | 491 | + if not csvdb["tower_battleCsv"][level] then return "不存在" end |
492 | local values = role:getProperty("towerInfo") | 492 | local values = role:getProperty("towerInfo") |
493 | if tType == 1 then | 493 | if tType == 1 then |
494 | - values.l = level | 494 | + values.l = layer |
495 | elseif tType == 2 then | 495 | elseif tType == 2 then |
496 | - values.l1 = level | 496 | + values.l1 = layer |
497 | elseif tType == 3 then | 497 | elseif tType == 3 then |
498 | - values.l2 = level | 498 | + values.l2 = layer |
499 | elseif tType == 4 then | 499 | elseif tType == 4 then |
500 | - values.l3 = level | 500 | + values.l3 = layer |
501 | end | 501 | end |
502 | role:updateProperty({field = "towerInfo", value = values}) | 502 | role:updateProperty({field = "towerInfo", value = values}) |
503 | 503 |