竞技馆房主付费
This commit is contained in:
parent
ef15347caf
commit
6eedc84050
|
@ -142,7 +142,7 @@ func (spd *ScenePolicyData) CostPayment(s *Scene, p *Player) bool {
|
||||||
if roomConfig == nil {
|
if roomConfig == nil {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
return spd.costEnough(int(roomConfig.GetCostType()), s.playerNum, roomConfig, p.SnId, func(items []*model.Item) {
|
return spd.costEnough(int(s.GetCostType()), s.playerNum, roomConfig, p.SnId, func(items []*model.Item) {
|
||||||
for _, v := range items {
|
for _, v := range items {
|
||||||
v.ItemNum = -v.ItemNum
|
v.ItemNum = -v.ItemNum
|
||||||
}
|
}
|
||||||
|
@ -166,7 +166,7 @@ func (spd *ScenePolicyData) GiveCostPayment(s *Scene, snid int32) bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
if roomConfig.GetCostType() != 2 { // 只有房主付费才有返还
|
if s.GetCostType() != 2 { // 只有房主付费才有返还
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue