backported confifurable nyancat the horrible flying pig

* backported from 74fc8110c1
* closed https://codeberg.org/minenux/minetest-mod-mobs_doomed/issues/8
This commit is contained in:
PICCORO Lenz McKAY 2022-01-24 23:06:19 -04:00 committed by Герхард PICCORO Lenz McKAY
parent 971ba0f058
commit e114cb543f
2 changed files with 11 additions and 1 deletions

View File

@ -16,6 +16,8 @@ if mobs_doomed.regulars == nil then
mobs_doomed.regulars = true
end
-- Enable NyanCat
dmobs.allow_nyanc = minetest.settings:get_bool("dmobs.allow_nyanc") or false
-- Enable fireballs/explosions
mobs_doomed.destructive = minetest.settings:get_bool("mobs_doomed.destructive") or false
@ -79,7 +81,11 @@ local mobslist = {
if mobs_doomed.regulars then
for _,mobname in pairs(mobslist) do
loadmob(mobname)
if mobslist == "nyan" and dmobs.allow_nyanc then
loadmob("nyan")
else
loadmob(mobname)
end
end
end

View File

@ -9,3 +9,7 @@ mobs_doomed.destructive (Fire balls will be destructive) bool false
# If disabled only a common dragon will be spawned
mobs_doomed.dragons (Enable all the dragons not only common) bool true
# if enabled will load a mobs very ugply and stupid.. nyancat.. a pig that fly and leve arciris
mobs_doomeds.allow_nyanc (Enable the stupid nyanCat mob fliying pig) bool false