forked from 2009Scape/Server
Merge branch 'tree_spirit_fix' into 'master'
Fixed tree spirit spawning issue. See merge request 2009scape/2009scape!217
This commit is contained in:
commit
793574910b
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