forked from 2009Scape/Server
Fixed tree spirit spawning issue.
This commit is contained in:
parent
c106f68665
commit
62d72891a4
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ class EnchantedValleyListeners : InteractionListener() {
|
|||
fun getSpirit(player: Player): NPC {
|
||||
val level = player.properties.currentCombatLevel
|
||||
var index = Math.ceil(level / 20.0).toInt()
|
||||
if(index > TREE_SPIRIT_IDS.size) index = TREE_SPIRIT_IDS.size
|
||||
if(index >= TREE_SPIRIT_IDS.size) index = TREE_SPIRIT_IDS.size - 1
|
||||
return NPC(TREE_SPIRIT_IDS[index])
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue