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
|
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{
|
playerEx.AddItems(&model.AddItemParam{
|
||||||
Platform: sceneEx.Platform,
|
Platform: sceneEx.Platform,
|
||||||
SnId: playerEx.SnId,
|
SnId: playerEx.SnId,
|
||||||
Change: item,
|
Change: []*model.Item{
|
||||||
|
{ItemId: v.ItemId, ItemNum: v.ItemNum},
|
||||||
|
},
|
||||||
GainWay: common.GainWayRoomCost,
|
GainWay: common.GainWayRoomCost,
|
||||||
Operator: "system",
|
Operator: "system",
|
||||||
Remark: "房费扣除",
|
Remark: "房费扣除",
|
||||||
|
@ -771,6 +777,8 @@ func (this *SceneBaseStateTienLen) OnPlayerOp(s *base.Scene, p *base.Player, opc
|
||||||
IsGame: true,
|
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