Fixed bug where player could get unlimited glarial's pebbles

This commit is contained in:
Byte 2022-09-24 16:48:55 +00:00 committed by Ryan
parent a8751eaa3c
commit c8bf7b5342

View file

@ -6,6 +6,8 @@ import core.game.content.dialogue.FacialExpression;
import core.game.node.entity.player.Player; import core.game.node.entity.player.Player;
import core.game.node.item.Item; import core.game.node.item.Item;
import static api.ContentAPIKt.*;
/** /**
* Handles Golrie's Dialogue for the Waterfall quest * Handles Golrie's Dialogue for the Waterfall quest
* @author Splinter * @author Splinter
@ -48,7 +50,11 @@ public class GolrieDialogue extends DialoguePlugin {
case 3: case 3:
//TODO: Possibly change this to chat message //TODO: Possibly change this to chat message
interpreter.sendDialogue("You look amongst the junk on the floor."); interpreter.sendDialogue("You look amongst the junk on the floor.");
stage = 4; if (hasAnItem(player, 294).getContainer() != null) {
stage = 50;
} else {
stage = 4;
}
break; break;
case 4: case 4:
//TODO: Possibly change this to chat message //TODO: Possibly change this to chat message
@ -79,6 +85,11 @@ public class GolrieDialogue extends DialoguePlugin {
interpreter.sendDialogues(player, FacialExpression.NEUTRAL, "OK... Take care Golrie."); interpreter.sendDialogues(player, FacialExpression.NEUTRAL, "OK... Take care Golrie.");
stage = 100; stage = 100;
break; break;
case 50:
//TODO: Possibly change this to chat message
interpreter.sendDialogue("You find nothing of interest.");
stage = 100;
break;
} }
return true; return true;
} }