From 623ce42439169e1153a4ffe39a6e4af439a009cd Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Sat, 28 Feb 2015 13:17:58 +0100 Subject: [PATCH] Added returnmirror mod (without mana for the moment) - Added return mirror mod, mana will follow - Added a drop of mirrors in mese_monsters' definitions - Fixed a line return in areas --- mods/areas/internal.lua | 3 +-- mods/mobs/mese_monster.lua | 4 ++++ mods/returnmirror | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) create mode 160000 mods/returnmirror diff --git a/mods/areas/internal.lua b/mods/areas/internal.lua index 681a9929..cb0d1aa7 100755 --- a/mods/areas/internal.lua +++ b/mods/areas/internal.lua @@ -140,8 +140,7 @@ function areas:canPlayerAddArea(pos1, pos2, name) end end if count >= self.self_protection_max_areas - and minetest.get_player_privs(name)["megabuilder"] == -false then + and minetest.get_player_privs(name)["megabuilder"] == false then return false, "You have reached the maximum amount of" .." areas that you are allowed to protect." end diff --git a/mods/mobs/mese_monster.lua b/mods/mobs/mese_monster.lua index 61a40bca..2ba384c6 100755 --- a/mods/mobs/mese_monster.lua +++ b/mods/mobs/mese_monster.lua @@ -43,6 +43,10 @@ mobs:register_mob("mobs:mese_monster", { chance = 2, min = 2, max = 5,}, + {name = "returnmirror:mirror_inactive", + chance = 5, + min = 1, + max = 5,}, }, light_resistant = true, armor = 80, diff --git a/mods/returnmirror b/mods/returnmirror new file mode 160000 index 00000000..f24fc2b0 --- /dev/null +++ b/mods/returnmirror @@ -0,0 +1 @@ +Subproject commit f24fc2b04e0b94d544ebc9d90f2ee49d731e71e9