Compare commits

...

2 Commits

Author SHA1 Message Date
sk ad116c9cd4 Merge branch 'develop' of git.pogorockgames.com:mango-games/server/game into develop 2024-07-23 17:20:41 +08:00
sk 8c622c1d63 v卡掉落调整 2024-07-23 17:19:43 +08:00
1 changed files with 7 additions and 0 deletions

View File

@ -2150,8 +2150,15 @@ func (this *Scene) TryBillExGameDrop(p *Player) {
if drop.MaxAmount > drop.MinAmount {
num = rand.Int31n(drop.MaxAmount-drop.MinAmount+1) + drop.MinAmount
}
oldNum := num
a := math.Max(float64(p.MoneyTotal), 50) * 10.0 / math.Max(float64(p.VCardCost), 500.0)
num = int32(float64(num) * math.Min(a, 1.5))
if num == 0 {
// 50%概率给oldNum
if rand.Int31n(100) < 50 {
num = oldNum
}
}
p.Items[drop.ItemId] += int64(num)
realDrop[drop.ItemId] = num
}