summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2015-02-27 07:10:18 +0100
committerWuzzy <almikes@aol.com>2015-02-27 07:10:18 +0100
commit46965d9afef86eb60a5e97e56021c79fd75a3df6 (patch)
tree25732c58509c659a9e6d2483ac3daf396be21e25
parenta72cc4d1a7d2f4d613cbffa4ceb3974eacfc4b02 (diff)
parent69a993861ef19f17626c72f6b0f9c03e137c5051 (diff)
Merge branch 'master' of https://github.com/BlockMen/hud
Conflicts: README.txt
-rw-r--r--README.txt2
-rw-r--r--depends.txt1
-rw-r--r--hunger.lua37
3 files changed, 36 insertions, 4 deletions
diff --git a/README.txt b/README.txt
index a71dd34..3f5ac6d 100644
--- a/README.txt
+++ b/README.txt
@@ -66,7 +66,7 @@ hunger_icon.png - PilzAdam (WTFPL), modified by BlockMen
hunger_bar.png - Wuzzy (WTFPL)
everything else is WTFPL:
-(c) Copyright BlockMen (2013-2014)
+(c) Copyright BlockMen (2013-2015)
This program is free software. It comes without any warranty, to
the extent permitted by applicable law. You can redistribute it
diff --git a/depends.txt b/depends.txt
index 4ff2b02..d46748a 100644
--- a/depends.txt
+++ b/depends.txt
@@ -11,6 +11,7 @@ dwarves?
ethereal?
farming?
farming_plus?
+ferns?
fishing?
fruit?
glooptest?
diff --git a/hunger.lua b/hunger.lua
index 191b235..5a6be5f 100644
--- a/hunger.lua
+++ b/hunger.lua
@@ -68,9 +68,25 @@ if minetest.get_modpath("farming") ~= nil then
end
if minetest.get_modpath("mobs") ~= nil then
- overwrite("mobs:meat", 6)
- overwrite("mobs:meat_raw", 3)
- overwrite("mobs:rat_cooked", 5)
+ if mobs.mod ~= nil and mobs.mod == "redo" then
+ overwrite("mobs:cheese", 4)
+ overwrite("mobs:meat", 8)
+ overwrite("mobs:meat_raw", 4)
+ overwrite("mobs:rat_cooked", 4)
+ overwrite("mobs:honey", 2)
+ overwrite("mobs:pork_raw", 3, "", 3)
+ overwrite("mobs:pork_cooked", 8)
+ overwrite("mobs:chicken_cooked", 6)
+ overwrite("mobs:chicken_raw", 2, "", 3)
+ overwrite("mobs:chicken_egg_fried", 2)
+ if minetest.get_modpath("bucket") then
+ overwrite("mobs:bucket_milk", 3, "bucket:bucket_empty")
+ end
+ else
+ overwrite("mobs:meat", 6)
+ overwrite("mobs:meat_raw", 3)
+ overwrite("mobs:rat_cooked", 5)
+ end
end
if minetest.get_modpath("moretrees") ~= nil then
@@ -150,6 +166,11 @@ end
if minetest.get_modpath("mushroom") ~= nil then
overwrite("mushroom:brown", 1)
overwrite("mushroom:red", 1, "", 3)
+ -- mushroom potions: red = strong poison, brown = light restorative
+ if minetest.get_modpath("vessels") then
+ overwrite("mushroom:brown_essence", 1, "vessels:glass_bottle", nil, 4)
+ overwrite("mushroom:poison", 1, "vessels:glass_bottle", 10)
+ end
end
if minetest.get_modpath("docfarming") ~= nil then
@@ -286,6 +307,8 @@ if minetest.get_modpath("farming") and farming.mod == "redo" then
overwrite("farming:donut_chocolate", 6)
overwrite("farming:donut_apple", 6)
overwrite("farming:raspberries", 1)
+ overwrite("farming:blueberries", 1)
+ overwrite("farming:muffin_blueberry", 4)
if minetest.get_modpath("vessels") then
overwrite("farming:smoothie_raspberry", 2, "vessels:drinking_glass")
end
@@ -331,6 +354,14 @@ if minetest.get_modpath("cooking") ~= nil then
overwrite("cooking:meat_undead_cooked", 1)
end
+-- ferns mod of plantlife_modpack
+if minetest.get_modpath("ferns") ~= nil then
+ overwrite("ferns:fiddlehead", 1, "", 1)
+ overwrite("ferns:fiddlehead_roasted", 3)
+ overwrite("ferns:ferntuber_roasted", 3)
+ overwrite("ferns:horsetail_01", 1)
+end
+
-- player-action based hunger changes
function hunger.handle_node_actions(pos, oldnode, player, ext)
if not player or not player:is_player() then