Compare commits

..

4 Commits

Author SHA1 Message Date
DESKTOP-45ANQ2C\unis f25bef6555 道具表更新 2024-11-26 14:42:58 +08:00
sk ff3de2f2a0 修复牌库发牌问题 2024-11-26 14:41:26 +08:00
sk 5a9325a2ce no message 2024-11-26 14:41:09 +08:00
DESKTOP-45ANQ2C\unis 9b3d0aeb6e 道具合成修改活动日志 2024-11-26 14:40:57 +08:00
6 changed files with 409 additions and 211 deletions

Binary file not shown.

View File

@ -6688,8 +6688,8 @@
} }
}, },
{ {
"Id": 171001, "Id": 271001,
"Name": "电饭煲碎片", "Name": "1元话费直兑券碎片",
"ShowLocation": [ "ShowLocation": [
1, 1,
1, 1,
@ -6723,12 +6723,12 @@
"Describe": "可联系客服兑换实物奖励", "Describe": "可联系客服兑换实物奖励",
"Entity": 1, "Entity": 1,
"Compound": { "Compound": {
"71001": 10 "300008": 10
} }
}, },
{ {
"Id": 171002, "Id": 271002,
"Name": "热水壶碎片", "Name": "2元话费直兑券碎片",
"ShowLocation": [ "ShowLocation": [
1, 1,
1, 1,
@ -6761,204 +6761,399 @@
"Location": "0", "Location": "0",
"Describe": "可联系客服兑换实物奖励", "Describe": "可联系客服兑换实物奖励",
"Entity": 1, "Entity": 1,
"Compound": {
"300009": 10
}
},
{
"Id": 271003,
"Name": "5元话费直兑券碎片",
"ShowLocation": [
1,
1,
0
],
"Classify": [
0,
0,
1
],
"Type": 27,
"Effect0": [
0,
0,
0,
0,
0,
1
],
"Effect": [
0,
0,
0,
0,
0,
1
],
"Composition": 1,
"CompositionMax": 9999,
"Location": "0",
"Describe": "可联系客服兑换实物奖励",
"Entity": 1,
"Compound": {
"300010": 10
}
},
{
"Id": 271004,
"Name": "10元话费直兑券碎片",
"ShowLocation": [
1,
1,
0
],
"Classify": [
0,
0,
1
],
"Type": 27,
"Effect0": [
0,
0,
0,
0,
0,
1
],
"Effect": [
0,
0,
0,
0,
0,
1
],
"Composition": 1,
"CompositionMax": 9999,
"Location": "0",
"Describe": "可联系客服兑换实物奖励",
"Entity": 2,
"Compound": {
"300011": 10
}
},
{
"Id": 271005,
"Name": "iphone碎片",
"ShowLocation": [
1,
1,
0
],
"Classify": [
0,
0,
1
],
"Type": 27,
"Effect0": [
0,
0,
0,
0,
0,
1
],
"Effect": [
0,
0,
0,
0,
0,
1
],
"Composition": 1,
"CompositionMax": 9999,
"Location": "0",
"Describe": "可联系客服兑换实物奖励",
"Entity": 2,
"Compound": {
"77030": 10
}
},
{
"Id": 271006,
"Name": "大米碎片",
"ShowLocation": [
1,
1,
0
],
"Classify": [
0,
0,
1
],
"Type": 27,
"Effect0": [
0,
0,
0,
0,
0,
1
],
"Effect": [
0,
0,
0,
0,
0,
1
],
"Composition": 1,
"CompositionMax": 9999,
"Location": "0",
"Describe": "可联系客服兑换实物奖励",
"Entity": 2,
"Compound": {
"79001": 10
}
},
{
"Id": 271007,
"Name": "红米碎片",
"ShowLocation": [
1,
1,
0
],
"Classify": [
0,
0,
1
],
"Type": 27,
"Effect0": [
0,
0,
0,
0,
0,
1
],
"Effect": [
0,
0,
0,
0,
0,
1
],
"Composition": 1,
"CompositionMax": 9999,
"Location": "0",
"Describe": "可联系客服兑换实物奖励",
"Entity": 2,
"Compound": {
"76006": 10
}
},
{
"Id": 271008,
"Name": "鸡蛋碎片",
"ShowLocation": [
1,
1,
0
],
"Classify": [
0,
0,
1
],
"Type": 27,
"Effect0": [
0,
0,
0,
0,
0,
1
],
"Effect": [
0,
0,
0,
0,
0,
1
],
"Composition": 1,
"CompositionMax": 9999,
"Location": "0",
"Describe": "可联系客服兑换实物奖励",
"Entity": 2,
"Compound": {
"79005": 10
}
},
{
"Id": 271009,
"Name": "可乐碎片",
"ShowLocation": [
1,
1,
0
],
"Classify": [
0,
0,
1
],
"Type": 27,
"Effect0": [
0,
0,
0,
0,
0,
1
],
"Effect": [
0,
0,
0,
0,
0,
1
],
"Composition": 1,
"CompositionMax": 9999,
"Location": "0",
"Describe": "可联系客服兑换实物奖励",
"Entity": 2,
"Compound": {
"73004": 10
}
},
{
"Id": 271010,
"Name": "食用油碎片",
"ShowLocation": [
1,
1,
0
],
"Classify": [
0,
0,
1
],
"Type": 27,
"Effect0": [
0,
0,
0,
0,
0,
1
],
"Effect": [
0,
0,
0,
0,
0,
1
],
"Composition": 1,
"CompositionMax": 9999,
"Location": "0",
"Describe": "可联系客服兑换实物奖励",
"Entity": 2,
"Compound": {
"79002": 10
}
},
{
"Id": 271011,
"Name": "智能手环碎片",
"ShowLocation": [
1,
1,
0
],
"Classify": [
0,
0,
1
],
"Type": 27,
"Effect0": [
0,
0,
0,
0,
0,
1
],
"Effect": [
0,
0,
0,
0,
0,
1
],
"Composition": 1,
"CompositionMax": 9999,
"Location": "0",
"Describe": "可联系客服兑换实物奖励",
"Entity": 2,
"Compound": {
"76004": 10
}
},
{
"Id": 271012,
"Name": "电热水壶碎片",
"ShowLocation": [
1,
1,
0
],
"Classify": [
0,
0,
1
],
"Type": 27,
"Effect0": [
0,
0,
0,
0,
0,
1
],
"Effect": [
0,
0,
0,
0,
0,
1
],
"Composition": 1,
"CompositionMax": 9999,
"Location": "0",
"Describe": "可联系客服兑换实物奖励",
"Entity": 2,
"Compound": { "Compound": {
"71002": 10 "71002": 10
} }
},
{
"Id": 171003,
"Name": "迷你小风扇碎片",
"ShowLocation": [
1,
1,
0
],
"Classify": [
0,
0,
1
],
"Type": 27,
"Effect0": [
0,
0,
0,
0,
0,
1
],
"Effect": [
0,
0,
0,
0,
0,
1
],
"Composition": 1,
"CompositionMax": 9999,
"Location": "0",
"Describe": "可联系客服兑换实物奖励",
"Entity": 1,
"Compound": {
"71003": 10
}
},
{
"Id": 172001,
"Name": "厨房炊具套装碎片",
"ShowLocation": [
1,
1,
0
],
"Classify": [
0,
0,
1
],
"Type": 27,
"Effect0": [
0,
0,
0,
0,
0,
1
],
"Effect": [
0,
0,
0,
0,
0,
1
],
"Composition": 1,
"CompositionMax": 9999,
"Location": "0",
"Describe": "可联系客服兑换实物奖励",
"Entity": 2,
"Compound": {
"72001": 10
}
},
{
"Id": 172002,
"Name": "睡衣碎片",
"ShowLocation": [
1,
1,
0
],
"Classify": [
0,
0,
1
],
"Type": 27,
"Effect0": [
0,
0,
0,
0,
0,
1
],
"Effect": [
0,
0,
0,
0,
0,
1
],
"Composition": 1,
"CompositionMax": 9999,
"Location": "0",
"Describe": "可联系客服兑换实物奖励",
"Entity": 2,
"Compound": {
"72002": 10
}
},
{
"Id": 172003,
"Name": "洗衣液碎片",
"ShowLocation": [
1,
1,
0
],
"Classify": [
0,
0,
1
],
"Type": 27,
"Effect0": [
0,
0,
0,
0,
0,
1
],
"Effect": [
0,
0,
0,
0,
0,
1
],
"Composition": 1,
"CompositionMax": 9999,
"Location": "0",
"Describe": "可联系客服兑换实物奖励",
"Entity": 2,
"Compound": {
"72003": 10
}
},
{
"Id": 172004,
"Name": "水杯碎片",
"ShowLocation": [
1,
1,
0
],
"Classify": [
0,
0,
1
],
"Type": 27,
"Effect0": [
0,
0,
0,
0,
0,
1
],
"Effect": [
0,
0,
0,
0,
0,
1
],
"Composition": 1,
"CompositionMax": 9999,
"Location": "0",
"Describe": "可联系客服兑换实物奖励",
"Entity": 2,
"Compound": {
"72004": 10
}
} }
] ]
} }

View File

@ -1433,8 +1433,11 @@ func (this *TienLenSceneData) SendHandCardOdds() {
cardsArr = cardsArr[:len(cardsArr)-1] cardsArr = cardsArr[:len(cardsArr)-1]
} }
} }
//机器人发牌和不调控的人 // 剩余人随机发牌
for _, v := range append(robotPlayers, realPlayers...) { for _, v := range this.players {
if v == nil || !v.IsGameing() || v.cards[0] != rule.InvalideCard {
continue
}
f1(v, cardsArr[0]) f1(v, cardsArr[0])
cardsArr = cardsArr[1:] cardsArr = cardsArr[1:]
} }
@ -1495,8 +1498,11 @@ func (this *TienLenSceneData) SendHandCardOdds() {
cardsArr = cardsArr[:len(cardsArr)-1] cardsArr = cardsArr[:len(cardsArr)-1]
} }
} }
//机器人发牌和不调控的人 // 剩余人随机发牌
for _, v := range append(robotPlayers, realPlayers...) { for _, v := range this.players {
if v == nil || !v.IsGameing() || v.cards[0] != rule.InvalideCard {
continue
}
f1(v, cardsArr[0]) f1(v, cardsArr[0])
cardsArr = cardsArr[1:] cardsArr = cardsArr[1:]
} }

View File

@ -464,7 +464,7 @@ func CSUpBagInfo(s *netlib.Session, packetid int, data interface{}, sid int64) e
ItemNum: int64(-msg.GetItemNum()), ItemNum: int64(-msg.GetItemNum()),
}, },
}, },
GainWay: common.GainWayItemFen, GainWay: common.GainWayCompound,
Operator: "system", Operator: "system",
Remark: fmt.Sprintf("道具合成%v消耗", msg.GetItemId()), Remark: fmt.Sprintf("道具合成%v消耗", msg.GetItemId()),
}) })
@ -489,7 +489,7 @@ func CSUpBagInfo(s *netlib.Session, packetid int, data interface{}, sid int64) e
ItemNum: int64(msg.GetItemNum()), ItemNum: int64(msg.GetItemNum()),
}, },
}, },
GainWay: common.GainWayItemFenGain, GainWay: common.GainWayCompoundGain,
Operator: "system", Operator: "system",
Remark: "道具合成获得", Remark: "道具合成获得",
}) })

View File

@ -1638,11 +1638,8 @@ func (this *Player) OnMiniTimer() {
}) })
} }
// 长时间掉线又没有删除缓存 // 长时间掉线又没有删除缓存
if !this.dropTime.IsZero() && time.Now().Sub(this.dropTime).Minutes() > 20 { if !this.dropTime.IsZero() && this.scene == nil && time.Now().Sub(this.dropTime).Minutes() > 20 {
logger.Logger.Errorf("清除缓存异常玩家 snid:%v dirty:%v lastLogoutTime:%v lastGameId:%v", this.SnId, this.dirty, this.LastLogoutTime, this.LastGameId) logger.Logger.Errorf("清除缓存异常 snid:%v dirty:%v lastLogoutTime:%v lastGameId:%v", this.SnId, this.dirty, this.LastLogoutTime, this.LastGameId)
if this.scene != nil {
logger.Logger.Errorf("清除缓存异常玩家 sceneId:%v", this.scene.sceneId)
}
} }
} }

Binary file not shown.