forked from 2009Scape/Server
Ore rocks now only have a chance to deplete based on Mining Level and rock respawn time
This commit is contained in:
parent
0fddd2134b
commit
bbf8f3c348
1 changed files with 1 additions and 1 deletions
|
|
@ -136,7 +136,7 @@ class MiningListener : InteractionListener {
|
|||
}
|
||||
|
||||
// Transform ore to depleted version
|
||||
if (!isEssence && resource!!.respawnRate != 0) {
|
||||
if (!isEssence && resource!!.respawnRate != 0 && RandomFunction.roll(getDynLevel(player, Skills.MINING)*5/resource!!.respawnDuration + 1)) {
|
||||
SceneryBuilder.replace(node as Scenery, Scenery(resource!!.emptyId, node.getLocation(), node.type, node.rotation), resource!!.respawnDuration)
|
||||
node.setActive(false)
|
||||
return true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue