增加调试GM
This commit is contained in:
parent
673026b2ba
commit
c2f8b7d9e4
@ -330,8 +330,17 @@ func ReqGmCommand_(player *Player, Command string) error {
|
||||
player.ClearData()
|
||||
case "resetFriend":
|
||||
FriendMod := player.PlayMod.getFriendMod()
|
||||
FriendMod = &friend.FriendMod{}
|
||||
FriendMod.FriendList = make(map[int]struct{})
|
||||
FriendMod.ApplyList = make(map[int]int64)
|
||||
FriendMod.Card = make(map[string]*card.CardInfo)
|
||||
FriendMod.SendApply = make(map[int]int64)
|
||||
FriendMod.NewFriendList = make(map[int]*friend.FriendInfo)
|
||||
FriendMod.Npc = []int{}
|
||||
FriendMod.Id = 0
|
||||
FriendMod.Log = make([]*friend.LogInfo, 0)
|
||||
FriendMod.InitData()
|
||||
FriendListBackData(player)
|
||||
FriendLogBackData(player)
|
||||
case "addFriend":
|
||||
FriendMod := player.PlayMod.getFriendMod()
|
||||
Uid, _ := strconv.Atoi(arg[1])
|
||||
|
||||
Loading…
Reference in New Issue
Block a user