Fix weird integer casting bug with pyramid plunder affecting drop rates

This commit is contained in:
Ceikry 2022-04-09 02:19:03 +00:00 committed by Ryan
parent c4e41f4ab7
commit e8ed23d04f

View file

@ -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)