mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-21 09:02:07 -07:00
Fix weird integer casting bug with pyramid plunder affecting drop rates
This commit is contained in:
parent
c4e41f4ab7
commit
e8ed23d04f
1 changed files with 2 additions and 2 deletions
|
|
@ -267,8 +267,8 @@ object PlunderUtils {
|
|||
//tier 3 -> chest
|
||||
val room = getRoom(player)!!.room
|
||||
val divisor = (room * 2) * (tier * 35)
|
||||
val goldRate = divisor / 650
|
||||
val stoneRate = divisor / 250
|
||||
val goldRate = divisor / 650.0
|
||||
val stoneRate = divisor / 250.0
|
||||
|
||||
val roll = RandomFunction.RANDOM.nextDouble()
|
||||
if(goldRate > roll)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue