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