Fix weird integer casting bug with pyramid plunder affecting drop rates
This commit is contained in:
@@ -267,8 +267,8 @@ object PlunderUtils {
|
|||||||
//tier 3 -> chest
|
//tier 3 -> chest
|
||||||
val room = getRoom(player)!!.room
|
val room = getRoom(player)!!.room
|
||||||
val divisor = (room * 2) * (tier * 35)
|
val divisor = (room * 2) * (tier * 35)
|
||||||
val goldRate = divisor / 650
|
val goldRate = divisor / 650.0
|
||||||
val stoneRate = divisor / 250
|
val stoneRate = divisor / 250.0
|
||||||
|
|
||||||
val roll = RandomFunction.RANDOM.nextDouble()
|
val roll = RandomFunction.RANDOM.nextDouble()
|
||||||
if(goldRate > roll)
|
if(goldRate > roll)
|
||||||
|
|||||||
Reference in New Issue
Block a user