增加一个gm
This commit is contained in:
parent
e88e056b50
commit
eb3dfd49e8
@ -37,6 +37,13 @@ arg1:英雄id
|
|||||||
Example: add_hero 1]],
|
Example: add_hero 1]],
|
||||||
type = "add_hero"
|
type = "add_hero"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title = "设置通关章节",
|
||||||
|
desc = [[添加英雄 type:pass_chapter
|
||||||
|
arg1:章节id
|
||||||
|
Example: pass_chapter 1]],
|
||||||
|
type = "pass_chapter"
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
return GMConst
|
return GMConst
|
||||||
@ -147,6 +147,12 @@ function ServerDataManager:dealGM(params, callback)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
elseif args[1] == "pass_chapter" then
|
||||||
|
local id = tonumber(args[2])
|
||||||
|
if not id then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
ServerGameData.ChapterData.data.maxChapterId = id
|
||||||
end
|
end
|
||||||
|
|
||||||
ServerGameData:saveData()
|
ServerGameData:saveData()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user