1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-07-04 09:00:22 +02:00

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
This commit is contained in:
LeMagnesium
2015-02-28 13:17:58 +01:00
parent 3d156a8ede
commit 623ce42439
3 changed files with 6 additions and 2 deletions

@ -140,8 +140,7 @@ function areas:canPlayerAddArea(pos1, pos2, name)
end end
end end
if count >= self.self_protection_max_areas if count >= self.self_protection_max_areas
and minetest.get_player_privs(name)["megabuilder"] == and minetest.get_player_privs(name)["megabuilder"] == false then
false then
return false, "You have reached the maximum amount of" return false, "You have reached the maximum amount of"
.." areas that you are allowed to protect." .." areas that you are allowed to protect."
end end

@ -43,6 +43,10 @@ mobs:register_mob("mobs:mese_monster", {
chance = 2, chance = 2,
min = 2, min = 2,
max = 5,}, max = 5,},
{name = "returnmirror:mirror_inactive",
chance = 5,
min = 1,
max = 5,},
}, },
light_resistant = true, light_resistant = true,
armor = 80, armor = 80,

1
mods/returnmirror Submodule

Submodule mods/returnmirror added at f24fc2b04e