This commit is contained in:
hahwu 2025-01-20 16:53:22 +08:00
parent ff5c8bc777
commit 5617ed1e82

View File

@ -57,9 +57,9 @@ func ReqGmCommand(args []interface{}) error {
player.PushClientRes(&player.GetPlayerBaseMod().Data)
case "setlv":
num, _ := strconv.Atoi(arg[1])
player.GetPlayerBaseMod().Data.Level = int32(num)
player.GetPlayerBaseMod().Data.Exp = 0
player.PushClientRes(&player.GetPlayerBaseMod().Data)
player.PlayMod.getBaseMod().Level = num
player.PlayMod.getBaseMod().Exp = 0
player.PushClientRes(player.PlayerBaseMod.BackAsset())
case "zeroUpdate":
VarMod := player.PlayMod.getVarMod()
VarMod.DailyResetTime = 0