Compare commits
No commits in common. "ad116c9cd498e9ed17874066c964e87d9c1a0233" and "77c2e5683c7d7cd21131f9037f6748fb314bba4c" have entirely different histories.
ad116c9cd4
...
77c2e5683c
|
@ -2150,15 +2150,8 @@ func (this *Scene) TryBillExGameDrop(p *Player) {
|
||||||
if drop.MaxAmount > drop.MinAmount {
|
if drop.MaxAmount > drop.MinAmount {
|
||||||
num = rand.Int31n(drop.MaxAmount-drop.MinAmount+1) + 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)
|
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))
|
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)
|
p.Items[drop.ItemId] += int64(num)
|
||||||
realDrop[drop.ItemId] = num
|
realDrop[drop.ItemId] = num
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue