turn base_chance into a setting

This commit is contained in:
flux 2023-11-12 12:06:47 -08:00
parent d21c6f97bb
commit c27a434be6
Signed by: flux
GPG Key ID: 9333B27816848A15
3 changed files with 10 additions and 2 deletions

View File

@ -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 },

View File

@ -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

View File

@ -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