From ba84f792a2dfa1dcf915f5dd00de4273ac7e84ed Mon Sep 17 00:00:00 2001 From: WinterSolstice8 <60417494+wintersolstice8@users.noreply.github.com> Date: Sun, 28 Jul 2024 10:17:00 -0600 Subject: [PATCH] [lua] [food] Remove fake effect of Movalpolos Water --- scripts/items/bottle_of_movalpolos_water.lua | 25 ++++++-------------- 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/scripts/items/bottle_of_movalpolos_water.lua b/scripts/items/bottle_of_movalpolos_water.lua index 612cb7d445a..cebc38af740 100644 --- a/scripts/items/bottle_of_movalpolos_water.lua +++ b/scripts/items/bottle_of_movalpolos_water.lua @@ -1,31 +1,20 @@ ----------------------------------- -- ID: 5165 -- Item: Bottle of Movalpolos Water --- Item Effect: Refresh 2 MP 3/Tic under 85% MP. --- Duration: 30 Mins +-- Item Effect: Food Effect with no obvious effects. +-- Duration: 30 Minutes ----------------------------------- local itemObject = {} itemObject.onItemCheck = function(target, item, param, caster) - return 0 + return xi.itemUtils.foodOnItemCheck(target, xi.foodType.BASIC) end +-- Previously, this item used to give a 2/tick refresh effect (not food effect with refresh) if used on lightsday. +-- That was proven wrong simply by using a movalpolos water on lightsday. It gives a food effect just like JP wiki claims +-- https://wiki.ffo.jp/html/1657.html itemObject.onItemUse = function(target) - local mMP = target:getMaxMP() - local cMP = target:getMP() - if VanadielDayOfTheWeek() == xi.day.LIGHTSDAY then - if cMP < (mMP * .85) then - if not target:hasStatusEffect(xi.effect.REFRESH) then - target:addStatusEffect(xi.effect.REFRESH, 2, 3, 1800) - else - target:messageBasic(xi.msg.basic.NO_EFFECT) - end - else - target:messageBasic(xi.msg.basic.NO_EFFECT) - end - else - target:messageBasic(xi.msg.basic.NO_EFFECT) - end + target:addStatusEffect(xi.effect.FOOD, 0, 0, 30 * 60, 5165) end return itemObject