mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-09 16:45:44 -07:00
Fixed fish caught statistic not saving
This commit is contained in:
parent
ed199e1478
commit
b33517632e
1 changed files with 2 additions and 2 deletions
|
|
@ -103,10 +103,10 @@ class FishingListener : InteractionListener{
|
||||||
if (isActive(SkillcapePerks.GREAT_AIM, player) && RandomFunction.roll(20)) {
|
if (isActive(SkillcapePerks.GREAT_AIM, player) && RandomFunction.roll(20)) {
|
||||||
addItemOrDrop(player, item.id, item.amount)
|
addItemOrDrop(player, item.id, item.amount)
|
||||||
sendMessage(player, colorize("%RYour expert aim catches you a second fish."))
|
sendMessage(player, colorize("%RYour expert aim catches you a second fish."))
|
||||||
player.incrementAttribute("$STATS_BASE:$STATS_FISH")
|
player.incrementAttribute("/save:$STATS_BASE:$STATS_FISH")
|
||||||
}
|
}
|
||||||
|
|
||||||
player.incrementAttribute("$STATS_BASE:$STATS_FISH")
|
player.incrementAttribute("/save:$STATS_BASE:$STATS_FISH")
|
||||||
var xp = fish.experience
|
var xp = fish.experience
|
||||||
if ((item.id == Items.RAW_SWORDFISH_371 && inEquipment(player, Items.SWORDFISH_GLOVES_12860))
|
if ((item.id == Items.RAW_SWORDFISH_371 && inEquipment(player, Items.SWORDFISH_GLOVES_12860))
|
||||||
|| (item.id == Items.RAW_SHARK_383 && inEquipment(player, Items.SHARK_GLOVES_12861))) {
|
|| (item.id == Items.RAW_SHARK_383 && inEquipment(player, Items.SHARK_GLOVES_12861))) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue