Commit graph

15 commits

Author SHA1 Message Date
trans_soup
c4a70e45ce decomposition fix.
make decomposing leaves no longer traverse nodes that don't affect their
decomposition rate, when determining said rate. this means that they're
only affected by nodes that either touch them directly, or touch nodes
that affect them.
2023-10-19 13:12:10 +02:00
trans_soup
a3319cf9ea decomposition tweak.
make leaves that have started to decompose continue to do so regardless
of their surrounding nodes.
2023-10-19 13:11:41 +02:00
trans_soup
72a8666a86 leaves decomposition tweaks.
make decomposing leaves account for the pile size of nearby decomposing
leaves when determining their decomposition rate.
2023-10-19 13:10:49 +02:00
trans_soup
5014254c91 tweak decomposition rng.
leaves now have a higher chance of turning into dirt, the higher they're
piled within the node. full stacks (taking up an entire node) always
turn into dirt.
2023-10-19 12:58:31 +02:00
trans_soup
4b408d9943 make decomposing leaves have layers.
decomposing leaves now stack in layers, each one 1/4 of a node in
height.

currently this doesn't affect their behaviour, beyond making them stack
when placed or landing.
2023-10-19 12:54:09 +02:00
trans_soup
bab59828f8 tweak leaves decomposition gains.
make it twice as expensive to turn leaves into dirt.
2023-10-17 19:21:16 +02:00
trans_soup
3459e94de8 improve flood_fill api function.
make `flood_fill` able to be interrupted if its callback returns false;
the meaning that was previously indicated by this return value is now
indicated by nil instead.

update code that uses this function to account for this change.
2023-10-17 15:48:57 +02:00
trans_soup
17636dbf87 improve leaves decomposition.
leaves will now decompose faster depending on their surroundings.
touching dirty nodes or other decomposing leaves will make them decay
quicker.
2023-10-17 13:41:30 +02:00
trans_soup
548d33d146 fix minor error. 2023-10-17 10:33:48 +02:00
trans_soup
aaeef448f0 make decomposing leaves sometimes not create dirt.
add a 1/2 chance for decomposing leaves to disappear instead of becoming
dirt.
2023-10-17 10:27:41 +02:00
trans_soup
1ef3759ae6 tweak to leaves decomposition.
leaves will now start decomposing if they're touching either a dirty
node, or already decomposing leaves.
2023-10-17 10:15:13 +02:00
trans_soup
8dccef9389 refactor: fix modname being hard-coded into string. 2023-10-17 09:48:48 +02:00
trans_soup
812e0a7e3b tweak leaves decomposition time. 2023-10-16 21:48:53 +02:00
trans_soup
dcb0eb257e update decomposition to use increasing ABM:s. 2023-10-16 21:30:57 +02:00
trans_soup
d04e92a15c add decomposition of leaves into dirt.
make leaves decompose over time into dirt when near dirty nodes. also
remove placeholder pummel recipe that turns leaves into dirt.
2023-10-16 20:41:09 +02:00