mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-10 10:20:41 -07:00
Fixed sequence rune pouches are dropped in
This commit is contained in:
parent
214ba50ecc
commit
c42daa5dba
1 changed files with 9 additions and 10 deletions
|
|
@ -67,20 +67,19 @@ public final class AbyssalNPC extends AbstractNPC {
|
||||||
* @return the pouch.
|
* @return the pouch.
|
||||||
*/
|
*/
|
||||||
private Item getPouch(Player player) {
|
private Item getPouch(Player player) {
|
||||||
Item pouch = RunePouch.SMALL.getPouch();
|
if (!player.hasItem(RunePouch.SMALL.getPouch())) {
|
||||||
if (player.hasItem(pouch)) {
|
return RunePouch.SMALL.getPouch();
|
||||||
pouch = RunePouch.MEDIUM.getPouch();
|
|
||||||
}
|
}
|
||||||
if (player.hasItem(RunePouch.MEDIUM.getPouch()) || player.hasItem(RunePouch.MEDIUM.getDecayedPouch())) {
|
if (!player.hasItem(RunePouch.MEDIUM.getPouch()) && !player.hasItem(RunePouch.MEDIUM.getDecayedPouch())) {
|
||||||
pouch = RunePouch.LARGE.getPouch();
|
return RunePouch.MEDIUM.getPouch();
|
||||||
}
|
}
|
||||||
if (player.hasItem(RunePouch.LARGE.getPouch()) || player.hasItem(RunePouch.LARGE.getDecayedPouch())) {
|
if (!player.hasItem(RunePouch.LARGE.getPouch()) && !player.hasItem(RunePouch.LARGE.getDecayedPouch())) {
|
||||||
pouch = RunePouch.GIANT.getPouch();
|
return RunePouch.LARGE.getPouch();
|
||||||
}
|
}
|
||||||
if (player.hasItem(RunePouch.GIANT.getPouch()) || player.hasItem(RunePouch.GIANT.getDecayedPouch())) {
|
if (!player.hasItem(RunePouch.GIANT.getPouch()) && !player.hasItem(RunePouch.GIANT.getDecayedPouch())) {
|
||||||
pouch = null;
|
return RunePouch.GIANT.getPouch();
|
||||||
}
|
}
|
||||||
return pouch;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue