增加调试GM

This commit is contained in:
hahwu 2025-07-01 16:45:23 +08:00
parent b6d7913727
commit 673026b2ba

View File

@ -328,6 +328,10 @@ func ReqGmCommand_(player *Player, Command string) error {
a := player.GetAgent() a := player.GetAgent()
a.Close() a.Close()
player.ClearData() player.ClearData()
case "resetFriend":
FriendMod := player.PlayMod.getFriendMod()
FriendMod = &friend.FriendMod{}
FriendMod.InitData()
case "addFriend": case "addFriend":
FriendMod := player.PlayMod.getFriendMod() FriendMod := player.PlayMod.getFriendMod()
Uid, _ := strconv.Atoi(arg[1]) Uid, _ := strconv.Atoi(arg[1])