forked from 2009Scape/Server
Fix barrows-related exploit
This commit is contained in:
parent
8fbb252b8e
commit
390fc580d8
1 changed files with 1 additions and 2 deletions
|
|
@ -85,8 +85,7 @@ object RewardChest {
|
|||
}
|
||||
}
|
||||
val rewards: MutableList<Item> = ArrayList()
|
||||
var maxRolls = 2 + RandomFunction.random(0,player.savedData.activityData.barrowKills / 3)
|
||||
if(maxRolls > 6) maxRolls = 6
|
||||
var maxRolls = 2 + RandomFunction.random(1,6)
|
||||
for (i in 0 until maxRolls) {
|
||||
rewards.addAll(DROP_TABLE.roll())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue