Commit 68d3fbafb8e7e73de4fb069cf870933bda8a85cd
1 parent
68e60f7a
冒险内加经验
Showing
1 changed file
with
12 additions
and
0 deletions
Show diff stats
src/actions/GmAction.lua
@@ -253,6 +253,18 @@ function _M.advl(role, pms) | @@ -253,6 +253,18 @@ function _M.advl(role, pms) | ||
253 | return "成功" | 253 | return "成功" |
254 | end | 254 | end |
255 | 255 | ||
256 | +table.insert(helpDes, {"冒险内等级增加", "advcl", "经验值"}) | ||
257 | +function _M.advcl(role, pms) | ||
258 | + local exp = tonum(pms.pm1) | ||
259 | + local advData = role:getAdvData() | ||
260 | + | ||
261 | + if not advData.chapterId then | ||
262 | + return "先随便开启一关" | ||
263 | + end | ||
264 | + advData.battle.player:addExp(exp) | ||
265 | + return "成功" | ||
266 | +end | ||
267 | + | ||
256 | table.insert(helpDes, {"挂机清除" , "idlec"}) | 268 | table.insert(helpDes, {"挂机清除" , "idlec"}) |
257 | function _M.idlec(role, pms) | 269 | function _M.idlec(role, pms) |
258 | role:updateProperty({field = "hangTeam", value = {}}) | 270 | role:updateProperty({field = "hangTeam", value = {}}) |