From 4fb404bba5076b22954569302cf208a76964acd8 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sun, 21 May 2017 00:43:30 +0200 Subject: [PATCH] Update poisonous food help and values --- mods/ITEMS/mcl_farming/potatoes.lua | 9 ++++----- mods/ITEMS/mcl_fishing/init.lua | 4 ++-- mods/ITEMS/mcl_mobitems/init.lua | 4 ++-- mods/PLAYER/mcl_hunger/hunger.lua | 10 +++++----- 4 files changed, 13 insertions(+), 14 deletions(-) diff --git a/mods/ITEMS/mcl_farming/potatoes.lua b/mods/ITEMS/mcl_farming/potatoes.lua index 349ec7b944..c5f8b0676c 100644 --- a/mods/ITEMS/mcl_farming/potatoes.lua +++ b/mods/ITEMS/mcl_farming/potatoes.lua @@ -111,14 +111,13 @@ minetest.register_craftitem("mcl_farming:potato_item_baked", { minetest.register_craftitem("mcl_farming:potato_item_poison", { description = "Poisonous Potato", - _doc_items_longdesc = "This potato doesn't look healthy. Eating it will only poison you.", + _doc_items_longdesc = "This potato doesn't look too healthy. You can eat if for 2 hunger points, but there's a 60% chance it will poison you.", stack_max = 64, inventory_image = "farming_potato_poison.png", -- TODO: Cause status effects - -- TODO: Raise to 2 - on_place = minetest.item_eat(0), - on_secondary_use = minetest.item_eat(0), - groups = { food = 2, eatable = 0 }, + on_place = minetest.item_eat(2), + on_secondary_use = minetest.item_eat(2), + groups = { food = 2, eatable = 2 }, _mcl_saturation = 1.2, }) diff --git a/mods/ITEMS/mcl_fishing/init.lua b/mods/ITEMS/mcl_fishing/init.lua index 78069694c8..f5484afcf1 100644 --- a/mods/ITEMS/mcl_fishing/init.lua +++ b/mods/ITEMS/mcl_fishing/init.lua @@ -191,10 +191,10 @@ minetest.register_craftitem("mcl_fishing:clownfish_raw", { }) -- Pufferfish --- TODO: Add status effect +-- TODO: Add real status effect minetest.register_craftitem("mcl_fishing:pufferfish_raw", { description = "Pufferfish", - _doc_items_longdesc = "Pufferfish are a common species of fish, but they are dangerous to eat. Eating a pufferfish restores 1 hunger point, but it makes you very sick (which drains your health non-fatally).", + _doc_items_longdesc = "Pufferfish are a common species of fish, but they not fit for consumption by humans. Eating a pufferfish restores 1 hunger point, but it makes you very sick (which drains your health non-fatally) and hungry (which drains your satiation).", inventory_image = "mcl_fishing_pufferfish_raw.png", on_place = minetest.item_eat(1), on_secondary_use = minetest.item_eat(1), diff --git a/mods/ITEMS/mcl_mobitems/init.lua b/mods/ITEMS/mcl_mobitems/init.lua index 526a3cb3ec..ccae3645d2 100644 --- a/mods/ITEMS/mcl_mobitems/init.lua +++ b/mods/ITEMS/mcl_mobitems/init.lua @@ -2,7 +2,7 @@ minetest.register_craftitem("mcl_mobitems:rotten_flesh", { description = "Rotten Flesh", - _doc_items_longdesc = "Yuck! This piece of flesh clearly has seen better days. If you're really desperate, you can eat it for 4 hunger points, but it will poison and hurt you for a while.", + _doc_items_longdesc = "Yuck! This piece of flesh clearly has seen better days. If you're really desperate, you can eat it for 4 hunger points, but there's a 80% chance it makes you hungry.", inventory_image = "mcl_mobitems_rotten_flesh.png", wield_image = "mcl_mobitems_rotten_flesh.png", on_place = minetest.item_eat(4), @@ -62,7 +62,7 @@ minetest.register_craftitem("mcl_mobitems:cooked_beef", { minetest.register_craftitem("mcl_mobitems:chicken", { description = "Raw Chicken", - _doc_items_longdesc = "This is a food item which can be eaten for 2 hunger points.", + _doc_items_longdesc = "This chicken is raw and unprocessed and should be rather eaten in cooked form. You can still eat it for 2 hunger points. But beware: There's a 30% chance that this will make you more hungry for a while.", inventory_image = "mcl_mobitems_chicken_raw.png", wield_image = "mcl_mobitems_chicken_raw.png", on_place = minetest.item_eat(2), diff --git a/mods/PLAYER/mcl_hunger/hunger.lua b/mods/PLAYER/mcl_hunger/hunger.lua index a2ae54e7fb..3fa7c34dfc 100644 --- a/mods/PLAYER/mcl_hunger/hunger.lua +++ b/mods/PLAYER/mcl_hunger/hunger.lua @@ -195,10 +195,10 @@ end) -- Apply simple poison effect as long there are no real status effect -- TODO: Remove this when status effects are in place -mcl_hunger.register_food("mcl_farming:potato_item_poison", 1, "", 4, 1, 0) +mcl_hunger.register_food("mcl_farming:potato_item_poison", 2, "", 4, 1, 0) -mcl_hunger.register_food("mcl_mobitems:rotten_flesh", 2, "", 8, 1, 100) -mcl_hunger.register_food("mcl_mobitems:chicken_raw", 2, "", 30, 0, 100) -mcl_hunger.register_food("mcl_mobitems:spider_eye", 0, "", 4, 1, 0) +mcl_hunger.register_food("mcl_mobitems:rotten_flesh", 4, "", 30, 0, 100) +mcl_hunger.register_food("mcl_mobitems:chicken", 2, "", 30, 0, 100) +mcl_hunger.register_food("mcl_mobitems:spider_eye", 2, "", 4, 1, 0) -mcl_hunger.register_food("mcl_fishing:pufferfish_raw", 0, "", 60, 1, 300) +mcl_hunger.register_food("mcl_fishing:pufferfish_raw", 1, "", 60, 1, 300)