mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 08:29:34 +01:00
Spawning: add a comment to clarify what the random select is doing
This commit is contained in:
parent
b2b63266b7
commit
4d90dfab0e
1 changed files with 3 additions and 1 deletions
|
@ -980,7 +980,9 @@ if mobs_spawn then
|
|||
--output_mob_stats(mob_counts_wide)
|
||||
|
||||
--grab mob that fits into the spawning location
|
||||
--randomly grab a mob, don't exclude any possibilities
|
||||
--use random weighted choice with replacement to grab a mob, don't exclude any possibilities
|
||||
--shuffle table once every loop to provide equal inclusion probability to all mobs
|
||||
--repeat grabbing a mob to maintain existing spawn rates
|
||||
local spawn_loop_counter = #mob_library_worker_table
|
||||
|
||||
while spawn_loop_counter > 0 do
|
||||
|
|
Loading…
Reference in a new issue