forked from 2009Scape/Server
Sharks can now be caught with barb-tail harpoon
Fixed incorrect animation when fishing with a barb-tail harpoon
This commit is contained in:
parent
760653067a
commit
89bcf30746
1 changed files with 4 additions and 4 deletions
|
|
@ -173,16 +173,16 @@ class FishingPulse(player: Player?, npc: NPC, private val option: FishingOption?
|
|||
}
|
||||
|
||||
private fun isBareHanded(p: Player): Boolean {
|
||||
if (option == FishingOption.HARPOON) {
|
||||
if (option == FishingOption.HARPOON || option == FishingOption.N_HARPOON) {
|
||||
if (checkFish(p) > 0 && !(player.inventory.containsItem(
|
||||
option.tool
|
||||
) || player.equipment.containsItem(option.tool))
|
||||
) || player.equipment.containsItem(option.tool) || hasBarbTail())
|
||||
) {
|
||||
return true
|
||||
}
|
||||
if (checkFish(p) > 2 && !(player.inventory.containsItem(
|
||||
option.tool
|
||||
) || player.equipment.containsItem(option.tool))
|
||||
) || player.equipment.containsItem(option.tool) || hasBarbTail())
|
||||
) {
|
||||
return true
|
||||
}
|
||||
|
|
@ -228,7 +228,7 @@ class FishingPulse(player: Player?, npc: NPC, private val option: FishingOption?
|
|||
* @return `True` if so.
|
||||
*/
|
||||
private fun hasBarbTail(): Boolean {
|
||||
if (option == FishingOption.HARPOON) {
|
||||
if (option == FishingOption.HARPOON || option == FishingOption.N_HARPOON) {
|
||||
if (player.inventory.containsItem(FishingOption.BARB_HARPOON.tool) || player.equipment.containsItem(
|
||||
FishingOption.BARB_HARPOON.tool
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue