summaryrefslogtreecommitdiff
path: root/hunger.lua
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-10-05 12:56:08 +0200
committerWuzzy <almikes@aol.com>2016-10-05 12:56:08 +0200
commitf025e71d69d4e129e105cf0dfe8cf8a2c6fdadc1 (patch)
tree5ef59aadcf961cbaf996afaf2250d965d56201d3 /hunger.lua
parent4f5d245e85599b0b58ec659619cf4a3bb13fa8fd (diff)
Add nssm foods
Kudos to TenPlus1
Diffstat (limited to 'hunger.lua')
-rw-r--r--hunger.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/hunger.lua b/hunger.lua
index 19e8f05..439db51 100644
--- a/hunger.lua
+++ b/hunger.lua
@@ -419,6 +419,23 @@ if minetest.get_modpath("pizza") ~= nil then
hbhunger.register_food("pizza:pizzaslice", 5, "", nil, 5)
end
+if minetest.get_modpath("nssm") then
+ hbhunger.register_food("nssm:werewolf_leg", 3)
+ hbhunger.register_food("nssm:heron_leg", 2)
+ hbhunger.register_food("nssm:chichibios_heron_leg", 4)
+ hbhunger.register_food("nssm:crocodile_tail", 3)
+ hbhunger.register_food("nssm:duck_legs", 1)
+ hbhunger.register_food("nssm:ant_leg", 1)
+ hbhunger.register_food("nssm:spider_leg", 1)
+ hbhunger.register_food("nssm:tentacle", 2)
+ hbhunger.register_food("nssm:worm_flesh", 2, "", 2) -- poisonous
+ hbhunger.register_food("nssm:amphibian_heart", 1)
+ hbhunger.register_food("nssm:raw_scrausics_wing", 1)
+ -- superfoods
+ hbhunger.register_food("nssm:phoenix_nuggets", 20, "", nil, 20)
+ hbhunger.register_food("nssm:phoenix_tear", 20, "", nil, 20)
+end
+
-- player-action based hunger changes
function hbhunger.handle_node_actions(pos, oldnode, player, ext)
if not player or not player:is_player() then