turn base_chance into a setting
This commit is contained in:
parent
d21c6f97bb
commit
c27a434be6
@ -1,3 +1,7 @@
|
||||
if not yl_spawnit.has.mobs_monster then
|
||||
return
|
||||
end
|
||||
|
||||
spawnit.register({
|
||||
entity_name = "mobs_monster:dungeon_master",
|
||||
groups = { monster = 1 },
|
||||
|
2
init.lua
2
init.lua
@ -1,6 +1,6 @@
|
||||
yl_spawnit = fmod.create()
|
||||
|
||||
yl_spawnit.base_chance = 600 -- approximately one every 10 minutes
|
||||
yl_spawnit.base_chance = yl_spawnit.settings.base_chance
|
||||
yl_spawnit.dawn = 4500 / 24000
|
||||
yl_spawnit.dusk = 19500 / 24000
|
||||
|
||||
|
@ -1 +1,5 @@
|
||||
yl_spawnit:check_nodes () bool true
|
||||
# if true, do a check to ensure the within/on/near lists only use existing nodes
|
||||
yl_spawnit:check_nodes (validate nodes exist) bool true
|
||||
|
||||
# base chance for spawning mobs. the default value means "about once every 10 minutes".
|
||||
yl_spawnit:base_chance (base spawn chance) float 600 1
|
||||
|
Loading…
Reference in New Issue
Block a user