add setting to toggle spider web littering (thanks Awkanimus)
This commit is contained in:
parent
aaa822cc56
commit
573aa57a89
4
init.lua
4
init.lua
@ -2,9 +2,11 @@ local path = minetest.get_modpath("nssm")
|
||||
|
||||
nssm = {
|
||||
mymapgenis = tonumber(minetest.settings:get("mymapgenis")) or 7,
|
||||
multimobs = tonumber(minetest.settings:get("multimobs")) or 1000
|
||||
multimobs = tonumber(minetest.settings:get("multimobs")) or 1000,
|
||||
spiders_litter_web = minetest.settings:get_bool("spiders_litter_web", true)
|
||||
}
|
||||
|
||||
|
||||
-- Mobs
|
||||
dofile(path .. "/mobs/ant_queen.lua")
|
||||
dofile(path .. "/mobs/ant_soldier.lua")
|
||||
|
@ -53,6 +53,9 @@ mobs:register_mob("nssm:black_widow", {
|
||||
},
|
||||
|
||||
do_custom = function(self)
|
||||
|
||||
if nssm.spiders_litter_web then
|
||||
webber_ability(self, "nssm:web", 2)
|
||||
end
|
||||
end
|
||||
})
|
||||
|
@ -53,6 +53,9 @@ mobs:register_mob("nssm:uloboros", {
|
||||
},
|
||||
|
||||
do_custom = function(self)
|
||||
|
||||
if nssm.spiders_litter_web then
|
||||
webber_ability(self, "nssm:web", 2)
|
||||
end
|
||||
end
|
||||
})
|
||||
|
@ -13,3 +13,6 @@ multimobs (Multimobs) int 1000
|
||||
# Difficult-level:
|
||||
# Multiplier to raise life and damage of the mobs
|
||||
mob_difficulty (Mob_difficulty) int 1
|
||||
|
||||
# Spiders
|
||||
spiders_litter_web (Spiders casually litter web) bool true
|
||||
|
Loading…
Reference in New Issue
Block a user