13299 Commits

Author SHA1 Message Date
teknomunk
79346feb04 Fix typo, cleanup warnings/hints 2025-01-22 17:23:10 +01:00
teknomunk
e633d75599 Address most of the next round of review comments 2025-01-22 17:23:10 +01:00
teknomunk
40248ad325 Address review comments 2025-01-22 17:23:10 +01:00
teknomunk
921c3cce87 Add crash guards against corrupt map data in mcl_core/functions.lua, update fire spread algorithm to limit spread while still burning things down, make burn spread dependent on area's humidity (more humid areas have less spread) 2025-01-22 17:23:10 +01:00
teknomunk
541de32373 Ensure fire always ages 2025-01-22 17:23:10 +01:00
teknomunk
773ddaf480 Change print to minetest.log 2025-01-22 17:23:10 +01:00
teknomunk
2ba7b7f25b Limit fire spread by making fires age and less likely to spread the longer they have been burning 2025-01-22 17:23:10 +01:00
SmokeyDope
94a0a0c008 Add placement sounds to scaffolding (#4872)
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4872
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: SmokeyDope <smokey@tilde.team>
Co-committed-by: SmokeyDope <smokey@tilde.team>
2025-01-20 19:06:49 +01:00
kno10
9d2e42165f snow should be supported_node (#4876)
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4876
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: kno10 <erich.schubert@gmail.com>
Co-committed-by: kno10 <erich.schubert@gmail.com>
2025-01-20 18:51:52 +01:00
the-real-herowl
9ae9842069 Merge pull request 'Node sounds adjustments from MCLA' (#4853) from adjust-node-sounds into master
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4853
Reviewed-by: kno10 <kno10@noreply.git.minetest.land>
2025-01-20 18:48:07 +01:00
Elias Åström
5b7b2d8eb7 Adjust node sounds levels 2025-01-20 18:48:07 +01:00
Elias Åström
19c4e2526f Lower gain of glass breaking sound 2025-01-20 18:48:07 +01:00
the-real-herowl
d441262c8e Merge pull request 'Fix pulling partial stacks from double chests with hopper minecart' (#4850) from fix-chest-hopper-pulling into master
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4850
Reviewed-by: kno10 <kno10@noreply.git.minetest.land>
2025-01-20 18:42:40 +01:00
teknomunk
c72ff616ab Change hopper minecart delay to 0.25 seconds from 0.05 seconds 2025-01-20 18:42:40 +01:00
teknomunk
53e1546219 Fix crash when hopper minecart is off rails 2025-01-20 18:42:40 +01:00
teknomunk
e08505d24d Make hopper minecart pull items from containers when stopped 2025-01-20 18:42:40 +01:00
teknomunk
74de26b3c8 Fix pulling partial stacks from double chests 2025-01-20 18:42:40 +01:00
the-real-herowl
7456eba0f5 Merge pull request 'Update playerphysics to 1.1.0 (upstream mod changes)' (#4836) from playerphysics_upstream into master
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4836
Reviewed-by: kno10 <kno10@noreply.git.minetest.land>
2025-01-20 18:41:22 +01:00
Wuzzy
4eafc06531 playerphysics: Version 1.1.0 2025-01-20 18:41:22 +01:00
the-real-herowl
62efc371a1 Merge pull request 'mcl_mobs spawning cleanup and performance optimization' (#4468) from mcl_mobs_cleanup into master
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4468
Reviewed-by: kno10 <kno10@noreply.git.minetest.land>
2025-01-20 18:37:09 +01:00
teknomunk
9474da5e75 Fix crash 2025-01-20 18:37:09 +01:00
teknomunk
e5279a2723 Rework fixed_timestep() to be more accurate and remove maximum spawn cycle time 2025-01-20 18:37:09 +01:00
teknomunk
ed5a08ba36 Rework build_state_for_position so that more cases will return early and avoid computations and a table allocation, replace find_spawning_position() with get_next_spawning_position(), add (commented out) notes for tracking which cases lead to mobs not spawning to help guide optimization 2025-01-20 18:37:09 +01:00
teknomunk
94da5fe813 Replace minetest. with core., fix percentage calculation 2025-01-20 18:37:09 +01:00
teknomunk
f59beb9961 Address review comments 2025-01-20 18:37:09 +01:00
teknomunk
60d6d252b1 Further optimizations: pairs() -> for i=, remove most mcl_log() calls, remove unused parameter in mob_cap_space() 2025-01-20 18:37:09 +01:00
teknomunk
85155f8cd5 Convert state hash to number from string, exclude core.add_entity() time from profiling 2025-01-20 18:37:09 +01:00
teknomunk
23c04a6735 Add per-spawn-attempt timing calculation 2025-01-20 18:37:09 +01:00
teknomunk
29717808cd Add built-in mob spawn profiling 2025-01-20 18:37:09 +01:00
teknomunk
8cabee0621 Localize minetest.get_node() 2025-01-20 18:37:09 +01:00
teknomunk
ce993654f3 Finish converting to use localized version of math.* functions 2025-01-20 18:37:09 +01:00
teknomunk
e37c8a9530 Fix rebase 2025-01-20 18:37:09 +01:00
teknomunk
8f0fdfe03a Move registered_entity[] check to spawn registration, use localized math.* functions, fix typo, add error messages to asserts in spawn registration 2025-01-20 18:37:09 +01:00
teknomunk
43321083f7 Remove redundant room check 2025-01-20 18:37:09 +01:00
teknomunk
57f3ad4fd7 Change state serialization to use table.concat() with a persistent workspace table 2025-01-20 18:37:09 +01:00
teknomunk
9a34c124c1 Only create biomes_lookup if one wasn't provided in the definition 2025-01-20 18:37:09 +01:00
teknomunk
3a54c67c4c Remove unused table.find(), add comment on fallthru, fix typo in log message, switch to using mcl_log for two log messages, set guardians to no biomes (structures only) 2025-01-20 18:37:09 +01:00
teknomunk
374db5ad24 Add seethru node list support to mcl_mobs.check_line_of_sight 2025-01-20 18:37:09 +01:00
teknomunk
299c209b60 Fix lava spawns 2025-01-20 18:37:09 +01:00
teknomunk
f4e2275ae1 Remove development logging, correct luacheck findings 2025-01-20 18:37:09 +01:00
teknomunk
5844dcfff9 Rewrite mcl_mobs:spawn_specific() in terms of mcl_mobs:spawn_setup() and mark as deprecated, cleanup mcl_mobs:spawn_setup(), compute cumulative chance once when the spawn list is created instead of every time a spawn is attempted 2025-01-20 18:37:09 +01:00
teknomunk
886098e5f4 Remove comment superceded by type annotations, give explicit values for mcl_mobs.SpawnDef.dimension 2025-01-20 18:37:09 +01:00
teknomunk
09eb6bde1e Fix crashes in generating state serialization, make adaptive spawn attempt rate actually work 2025-01-20 18:37:09 +01:00
teknomunk
2626a475ee Redo guardian spawn registration (copy biomes from glow squid) 2025-01-20 18:37:09 +01:00
teknomunk
8957bf300c Make sure all parameters to spawn_specific() get stored in the spawn definition, change select_random_mob_def() to remove possible error() call 2025-01-20 18:37:09 +01:00
teknomunk
b568a5cc49 Fix rebase missing moving a function to new mcl_util/table.lua 2025-01-20 18:37:09 +01:00
teknomunk
9aade4034f Add lava conditions 2025-01-20 18:37:09 +01:00
teknomunk
b4cd5fe37c Add biome_lookup table to SpawnDef, type annotation for mcl_mobs.SpawnDef class 2025-01-20 18:37:09 +01:00
teknomunk
511434a923 Replace compute_hash with a string.format(), move spawn_names into logging block, remove argument aliasing in get_spawn_list(), add SpawnState type annotation 2025-01-20 18:37:09 +01:00
teknomunk
bc5e5f7262 Inline most spawn definition fields, remove table.insert() 2025-01-20 18:37:09 +01:00