Compare commits
No commits in common. "db1a88684a94f3fa4767a23d8544104336ac8626" and "82cf0a550aed40b5a1e72bd89d80ebcfd15f7b51" have entirely different histories.
db1a88684a
...
82cf0a550a
|
@ -952,16 +952,6 @@ func (this *Scene) ProtoPrivateRoom() *gamehall.PrivateRoomInfo {
|
|||
if this.GetPassword() != "" {
|
||||
needPassword = int32(1)
|
||||
}
|
||||
|
||||
cost := this.sp.NeedRoomCardCost(int(this.CustomParam.GetCostType()), this.playerNum, PlatformMgrSingleton.GetConfig(this.platform.IdStr).RoomConfig[this.CustomParam.GetRoomConfigId()])
|
||||
var costItems []*gamehall.ItemInfo
|
||||
for _, vv := range cost {
|
||||
costItems = append(costItems, &gamehall.ItemInfo{
|
||||
Id: vv.ItemID,
|
||||
Num: int32(vv.Count),
|
||||
})
|
||||
}
|
||||
|
||||
ret := &gamehall.PrivateRoomInfo{
|
||||
GameFreeId: this.dbGameFree.GetId(),
|
||||
GameId: int32(this.gameId),
|
||||
|
@ -976,7 +966,6 @@ func (this *Scene) ProtoPrivateRoom() *gamehall.PrivateRoomInfo {
|
|||
CreateTs: this.createTime.Unix(),
|
||||
State: this.SceneState,
|
||||
CostType: this.CustomParam.GetCostType(),
|
||||
Cost: costItems,
|
||||
}
|
||||
for _, v := range this.players {
|
||||
ret.Players = append(ret.Players, &gamehall.PrivatePlayerInfo{
|
||||
|
@ -991,7 +980,6 @@ func (this *Scene) ProtoPrivateRoom() *gamehall.PrivateRoomInfo {
|
|||
ret.WinSnId = p.SnId
|
||||
ret.WinName = p.GetName()
|
||||
ret.WinRoleId = p.Roles.ModId
|
||||
ret.WinHeadUrl = p.HeadUrl
|
||||
}
|
||||
}
|
||||
return ret
|
||||
|
|
Loading…
Reference in New Issue