Fixed incorrect dialogue path in vinesweeper when buying flags

This commit is contained in:
Sam 2023-01-25 00:31:25 +00:00 committed by Ryan
parent 2eb7a19546
commit 4fe916990e

View file

@ -82,7 +82,8 @@ abstract class FarmerDialogue : DialogueFile() {
if(player!!.inventory.containsItem(price) && player!!.inventory.remove(price)) { if(player!!.inventory.containsItem(price) && player!!.inventory.remove(price)) {
if(player!!.inventory.add(Item(Items.FLAG_12625, 10 - flags))) { if(player!!.inventory.add(Item(Items.FLAG_12625, 10 - flags))) {
npcl(lines[4]) npcl(lines[4])
stage = 23 stage = 22
stage = END_DIALOGUE
} else { } else {
npcl(lines[5]) npcl(lines[5])
// Refund the coins, can't fail because we just removed them // Refund the coins, can't fail because we just removed them