fix potential bug with boostable stats
This commit is contained in:
+2
-1
@@ -1,5 +1,6 @@
|
||||
package rs09.game.content.global.worldevents.penguinhns
|
||||
|
||||
import api.ContentAPI
|
||||
import core.game.component.Component
|
||||
import core.game.content.dialogue.DialoguePlugin
|
||||
import core.game.content.dialogue.FacialExpression
|
||||
@@ -75,7 +76,7 @@ class LarryHandler(player: Player? = null) : DialoguePlugin(player){
|
||||
return
|
||||
}
|
||||
|
||||
val level = player.skills.getLevel(skill) ?: 0
|
||||
val level = ContentAPI.getStatLevel(player, skill)
|
||||
System.out.println("Level: $level")
|
||||
val expGained = points?.toDouble()?.times((level * 25))
|
||||
System.out.print("exp: $expGained")
|
||||
|
||||
Reference in New Issue
Block a user