Compare commits

..

3 Commits

Author SHA1 Message Date
sk 81bf26ffc6 添加娃娃机配置 2024-08-12 17:39:33 +08:00
sk a2a70a130b 比赛场排名不在有并列的情况积 2024-08-12 17:36:04 +08:00
sk 5b399100e1 vip等级礼包获得奖励 2024-08-12 16:45:12 +08:00
10 changed files with 52 additions and 13 deletions

Binary file not shown.

View File

@ -6390,6 +6390,39 @@
],
"PlayerWaterRate": 100,
"BetWaterRate": 100
},
{
"Id": 6080001,
"Name": "娃娃机",
"Title": "1",
"GameId": 608,
"GameRule": 60800,
"GameType": 1,
"SceneType": 1,
"Desc": "0",
"ShowType": 3,
"ShowId": 60800,
"BaseScore": 1000,
"Turn": 60800,
"BetDec": "1000",
"Ai": [
0
],
"OtherIntParams": [
0
],
"RobotNumRng": [
0
],
"SameIpLimit": 1,
"GameDif": "608",
"GameClass": 2,
"PlatformName": "越南棋牌",
"MaxBetCoin": [
0
],
"PlayerWaterRate": 100,
"BetWaterRate": 100
}
]
}

Binary file not shown.

View File

@ -195,6 +195,11 @@
"Name": "多财多福",
"GameId": 307,
"GameDif": "307"
},
{
"Id": 60800,
"Name": "娃娃机",
"GameId": 608
}
]
}

Binary file not shown.

Binary file not shown.

View File

@ -40,19 +40,19 @@ func (p MatchContextSlice) Sort(isFinals bool) {
for i, mc := range p {
mc.rank = int32(i + 1)
}
if isFinals {
// 积分相同名次相同
lastRank := int32(0)
lastGrade := int32(0)
for i := 0; i < len(p); i++ {
mc := p[i]
if i > 0 && mc.grade == lastGrade {
mc.rank = lastRank
}
lastRank = mc.rank
lastGrade = mc.grade
}
}
//if isFinals {
// // 积分相同名次相同
// lastRank := int32(0)
// lastGrade := int32(0)
// for i := 0; i < len(p); i++ {
// mc := p[i]
// if i > 0 && mc.grade == lastGrade {
// mc.rank = lastRank
// }
// lastRank = mc.rank
// lastGrade = mc.grade
// }
//}
}
func NewMatchContext(p *Player, tm *TmMatch, grade, snid, lv, roleId, skinId int32, seq int) *PlayerMatchContext {

View File

@ -3925,6 +3925,7 @@ func (this *Player) VIPDraw(id, vip int32) {
ItemNum: v,
})
itemInfo = append(itemInfo, model.ItemInfo{ItemId: int32(k), ItemNum: v})
pack.Award[k] = v
}
BagMgrSingleton.AddItemsV2(&ItemParam{
P: this,

Binary file not shown.

Binary file not shown.