mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-10 10:20:41 -07:00
Added index to the calculation
Index should always be the number pairs of ingredients used by the time the spell is finished running so multiplying the amount of XP gained (10) by the index should give the proper amount of Crafting XP.
This commit is contained in:
parent
8bdfc43fba
commit
da4387d0f4
1 changed files with 1 additions and 1 deletions
|
|
@ -575,7 +575,7 @@ class LunarListeners : SpellListener("lunar"), Commands {
|
|||
if(index == size && size != 0) {
|
||||
removeRunes(player, true)
|
||||
visualizeSpell(player, Animations.LUNAR_SPELLBOOK_SUPERGLASS_MAKE_4413, Graphics.LUNAR_SPELLBOOK_SUPERGLASS_MAKE_729, 120, Sounds.LUNAR_HEATGLASS_2896)
|
||||
rewardXP(player, Skills.CRAFTING, 10.0)
|
||||
rewardXP(player, Skills.CRAFTING, 10.0 * index)
|
||||
addXP(player, 78.0)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue