竞技馆房主付费

This commit is contained in:
sk 2024-09-11 17:38:50 +08:00
parent ef15347caf
commit 6eedc84050
1 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@ func (spd *ScenePolicyData) CostPayment(s *Scene, p *Player) bool {
if roomConfig == nil {
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 {
v.ItemNum = -v.ItemNum
}
@ -166,7 +166,7 @@ func (spd *ScenePolicyData) GiveCostPayment(s *Scene, snid int32) bool {
return false
}
if roomConfig.GetCostType() != 2 { // 只有房主付费才有返还
if s.GetCostType() != 2 { // 只有房主付费才有返还
return false
}