modify 广播房费
This commit is contained in:
parent
4ff2e84a3c
commit
62b256a26e
|
@ -758,18 +758,26 @@ func (this *SceneBaseStateTienLen) OnPlayerOp(s *base.Scene, p *base.Player, opc
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
playerEx.AddItems(&model.AddItemParam{
|
for _, v := range item {
|
||||||
Platform: sceneEx.Platform,
|
if v.ItemId == 100001 {
|
||||||
SnId: playerEx.SnId,
|
playerEx.AddCoin(v.ItemNum, common.GainWayRoomCost, base.SyncFlag_Broadcast, "system", "房费扣除")
|
||||||
Change: item,
|
} else {
|
||||||
GainWay: common.GainWayRoomCost,
|
playerEx.AddItems(&model.AddItemParam{
|
||||||
Operator: "system",
|
Platform: sceneEx.Platform,
|
||||||
Remark: "房费扣除",
|
SnId: playerEx.SnId,
|
||||||
GameId: int64(sceneEx.GetGameId()),
|
Change: []*model.Item{
|
||||||
GameFreeId: int64(sceneEx.GetGameFreeId()),
|
{ItemId: v.ItemId, ItemNum: v.ItemNum},
|
||||||
RoomConfigId: sceneEx.GetCustom().GetRoomConfigId(),
|
},
|
||||||
IsGame: true,
|
GainWay: common.GainWayRoomCost,
|
||||||
})
|
Operator: "system",
|
||||||
|
Remark: "房费扣除",
|
||||||
|
GameId: int64(sceneEx.GetGameId()),
|
||||||
|
GameFreeId: int64(sceneEx.GetGameFreeId()),
|
||||||
|
RoomConfigId: sceneEx.GetCustom().GetRoomConfigId(),
|
||||||
|
IsGame: true,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.OnPlayerSToCOp(s, p, playerEx.GetPos(), opcode, tienlen.OpResultCode_OPRC_Sucess, params)
|
this.OnPlayerSToCOp(s, p, playerEx.GetPos(), opcode, tienlen.OpResultCode_OPRC_Sucess, params)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue