allow both flours from farming plus and food to be accepted for bowl

* this happened in the bowl and flour quest/task
master
mckaygerhard 2023-01-12 17:43:05 -04:00
parent b2feac105a
commit 8bdf40b849
1 changed files with 6 additions and 2 deletions

View File

@ -3,8 +3,12 @@ quests.chest = {}
quests.chest.go = function(npc,player)
local inv = player:get_inventory()
local pos = npc.object:getpos()
if inv:contains_item("main","farming_plus:flour") and inv:contains_item("main","food:bowl") then
inv:remove_item("main","farming_plus:flour")
if (inv:contains_item("main","farming_plus:flour") or inv:contains_item("main","food:flour")) and inv:contains_item("main","food:bowl") then
if inv:contains_item("main","farming_plus:flour") then
inv:remove_item("main","farming_plus:flour")
else
inv:remove_item("main","food:flour")
end
inv:remove_item("main","food:bowl")
chat.local_chat(pos,"'Thank you very much, take this as a token of my appreciation!'",6)
local lp = player:getpos()