mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-20 05:20:22 -07:00
fix potential bug with boostable stats
This commit is contained in:
parent
338717961c
commit
0395e0d6d2
1 changed files with 2 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue