bug修复
This commit is contained in:
parent
7c51add1a1
commit
7e794dc2dc
@ -657,7 +657,7 @@ func (ad *GameLogic) RegisterNetWorkFunc() {
|
||||
RegisterMsgProcessFunc("UpdateBaseItemInfo", UpdateBaseItemInfofunction) // 保存引导
|
||||
RegisterMsgProcessFunc("ReqKv", ReqKv) // 保存客户端数据
|
||||
|
||||
// 棋盘
|
||||
// #region 棋盘
|
||||
RegisterMsgProcessFunc("ReqPlayerChessData", ReqPlayerChessDataFunc)
|
||||
RegisterMsgProcessFunc("UpdatePlayerChessData", UpdatePlayerChessDataFunc) // 更新棋盘数据
|
||||
RegisterMsgProcessFunc("ReqSetEnergyMul", RegSetEneryFunc) //设置能量倍数
|
||||
@ -722,7 +722,7 @@ func (ad *GameLogic) RegisterNetWorkFunc() {
|
||||
RegisterMsgProcessFunc("ReqSelectLimitEvent", ReqSelectLimitEvent) //领取限时事件进度奖励
|
||||
RegisterMsgProcessFunc("ReqGetGoldCard", ReqGetGoldCard) //请求金卡交换信息
|
||||
|
||||
// 好友
|
||||
// #region 好友
|
||||
RegisterMsgProcessFunc("ReqFriendList", ReqFriendList) // 请求好友列表
|
||||
RegisterMsgProcessFunc("ReqFriendApply", ReqFriendApply) // 请求申请好友列表
|
||||
RegisterMsgProcessFunc("ReqFriendCardMsg", ReqFriendCardMsg) // 请求好友卡牌申请列表
|
||||
@ -773,7 +773,7 @@ func (ad *GameLogic) RegisterNetWorkFunc() {
|
||||
RegisterMsgProcessFunc("ReqChampshipRank", ReqChampshipRank) // 请求锦标赛排行榜
|
||||
RegisterMsgProcessFunc("ReqChampshipPreRank", ReqChampshipPreRank) // 请求锦标赛昨日排行榜
|
||||
|
||||
// 活动
|
||||
// #region 活动
|
||||
// 挖矿
|
||||
RegisterMsgProcessFunc("ReqMining", ReqMining) // 请求挖矿数据
|
||||
RegisterMsgProcessFunc("ReqMiningReward", ReqMiningReward) // 领取挖矿奖励
|
||||
@ -782,12 +782,12 @@ func (ad *GameLogic) RegisterNetWorkFunc() {
|
||||
RegisterMsgProcessFunc("ReqGuessColor", ReqGuessColor) // 请求猜颜色数据
|
||||
RegisterMsgProcessFunc("ReqGuessColorReward", ReqGuessColorReward) // 领取猜颜色奖励
|
||||
RegisterMsgProcessFunc("ReqGuessColorTake", ReqGuessColorTake) // 猜颜色
|
||||
// 三段竞赛
|
||||
// 三段竞赛
|
||||
RegisterMsgProcessFunc("ReqRace", ReqRace)
|
||||
RegisterMsgProcessFunc("ReqRaceReward", ReqRaceReward)
|
||||
RegisterMsgProcessFunc("ReqRaceStart", ReqRaceStart)
|
||||
|
||||
// playroom
|
||||
// #region playroom
|
||||
RegisterMsgProcessFunc("ReqPlayroom", ReqPlayroom) // 请求playroom数据
|
||||
RegisterMsgProcessFunc("ReqPlayroomInfo", ReqPlayroomInfo) // 请求playroom拜访信息
|
||||
RegisterMsgProcessFunc("ReqPlayroomGame", ReqPlayroomGame) // 游戏结果
|
||||
|
||||
@ -2991,6 +2991,7 @@ func ReqPlayroomDraw(args []interface{}) error {
|
||||
})
|
||||
return err
|
||||
}
|
||||
player.args["ResItemPopId"] = Id
|
||||
player.PlayMod.save()
|
||||
PlayroomBackData(player)
|
||||
player.PushClientRes(&msg.ResPlayroomDraw{
|
||||
|
||||
@ -406,6 +406,7 @@ func (cb *ChessBorad) PutChessInBag(Grid, ChessId, EmitId int) error {
|
||||
func (cb *ChessBorad) TakeChessOutBag(Grid int) error {
|
||||
if Grid < 0 {
|
||||
cb.RemoveHonor(-Grid)
|
||||
cb.AddChess(Grid)
|
||||
return nil
|
||||
}
|
||||
GridInfo, ok := cb.ChessBag.List[Grid]
|
||||
|
||||
@ -218,7 +218,7 @@ func (p *PlayroomMod) Interact(Id, Type int) ([]*item.Item, int, error) {
|
||||
return nil, 0, fmt.Errorf("Interact MoodType is 0")
|
||||
}
|
||||
if Effect > 0 {
|
||||
p.AllMood += 10
|
||||
p.AllMood = min(100, p.AllMood+10)
|
||||
}
|
||||
p.AddMood(MoodType, Effect)
|
||||
return ItemList, MoodType, nil
|
||||
@ -233,6 +233,9 @@ func (p *PlayroomMod) AddMood(Id, Num int) {
|
||||
if p.MoodInfo[Id].Num != 0 && p.MoodInfo[Id].Time == 0 {
|
||||
p.MoodInfo[Id].Time = GoUtil.Now()
|
||||
}
|
||||
if p.MoodInfo[Id].Num == 0 {
|
||||
p.MoodInfo[Id].Time = 0
|
||||
}
|
||||
}
|
||||
|
||||
func (p *PlayroomMod) AddVisitor(Id int, Time int64) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user