Compare commits

..

2 Commits

Author SHA1 Message Date
sk 0df3e0938c 竞技馆房主付费 2024-09-11 17:21:12 +08:00
sk 4bf11eb1d1 竞技馆炸弹积分计算 2024-09-11 16:42:47 +08:00
2 changed files with 4 additions and 4 deletions

View File

@ -1964,7 +1964,7 @@ func (this *TienLenSceneData) TrySmallGameBilled() {
score = int64(this.roundScore) * int64(baseScore) / 100 //百分比 score = int64(this.roundScore) * int64(baseScore) / 100 //百分比
} }
losePlayerCoin := losePlayer.GetCoin() losePlayerCoin := losePlayer.GetCoin()
if !this.IsMatchScene() && losePlayerCoin < score { //输完 if !this.IsMatchScene() && !this.IsCustom() && losePlayerCoin < score { //输完
score = losePlayerCoin score = losePlayerCoin
} }
//判断宠物技能生不生效 //判断宠物技能生不生效
@ -1983,7 +1983,7 @@ func (this *TienLenSceneData) TrySmallGameBilled() {
gainScore := int64(float64(score) * float64(10000-taxRate) / 10000.0) //税后 gainScore := int64(float64(score) * float64(10000-taxRate) / 10000.0) //税后
bombTaxScore := score - gainScore bombTaxScore := score - gainScore
// win // win
if this.IsMatchScene() { if this.IsMatchScene() || this.IsCustom() {
winPlayer.AddCoinNoLog(gainScore, 0) winPlayer.AddCoinNoLog(gainScore, 0)
} else { } else {
winPlayer.AddCoin(gainScore, common.GainWay_CoinSceneWin, 0, "system", this.GetSceneName()) winPlayer.AddCoin(gainScore, common.GainWay_CoinSceneWin, 0, "system", this.GetSceneName())
@ -1997,7 +1997,7 @@ func (this *TienLenSceneData) TrySmallGameBilled() {
winPlayer.bombRankScore += rankScore * rule.RankBaseScore winPlayer.bombRankScore += rankScore * rule.RankBaseScore
} }
//lose //lose
if this.IsMatchScene() { if this.IsMatchScene() && this.IsCustom() {
losePlayer.AddCoinNoLog(-score, 0) losePlayer.AddCoinNoLog(-score, 0)
} else { } else {
losePlayer.AddCoin(-score, common.GainWay_CoinSceneLost, 0, "system", this.GetSceneName()) losePlayer.AddCoin(-score, common.GainWay_CoinSceneLost, 0, "system", this.GetSceneName())

View File

@ -1344,7 +1344,7 @@ func CSCreatePrivateRoomHandler(s *netlib.Session, packetId int, data interface{
return nil return nil
} }
if cfg.GetCostType() == 2 { if costType == 2 {
sp.CostPayment(scene, p) sp.CostPayment(scene, p)
} }