mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-28 05:43:43 +01:00
Spawning: add a comment to clarify what the random select is doing
This commit is contained in:
parent
b2b63266b7
commit
4d90dfab0e
@ -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 New Issue
Block a user