Vinesweeper hotfix

This commit is contained in:
ceikry 2021-10-12 20:29:27 -05:00
parent de98152b4d
commit c712cd50d7

View file

@ -123,6 +123,9 @@ class BlinkinDialogue : FarmerDialogue() {
42 -> { 42 -> {
player!!.setAttribute("runscript") { amount: Int -> player!!.setAttribute("runscript") { amount: Int ->
val price = Item(Items.COINS_995, 10 * amount) val price = Item(Items.COINS_995, 10 * amount)
if(price.amount <= 0){
return@setAttribute
}
if(player!!.inventory.containsItem(price) && player!!.inventory.remove(price)) { if(player!!.inventory.containsItem(price) && player!!.inventory.remove(price)) {
if(player!!.inventory.add(Item(Items.OGLEROOT_12624, amount))) { if(player!!.inventory.add(Item(Items.OGLEROOT_12624, amount))) {
npcl("There ya go! Good luck!") npcl("There ya go! Good luck!")