18 Commits

Author SHA1 Message Date
Aaron Suen
310ce1bc6c Treat NodeCore as a unified thing.
- Collapse all nodecore "core" mods in the /mods listing, so it's
  easier to find the actual add-on mods.
- Parameterize in-game branding to make renaming derivatives just
  a little easier.
2019-09-07 09:08:57 -04:00
Aaron Suen
39dea8a2ae MAJOR: Code quality audit using luacheck.
- Removed lots of unused variables, a few shadowed identifiers.
- Removed a few sections of dead code.
2019-08-31 09:26:53 -04:00
Aaron Suen
fe2c153f9e Clean up all lua code style.
Formatting rules based on Paul Kulchenko's perl-based formatter...
http://notebook.kulchenko.com/programming/lua-beautifier-in-55-lines-of-perl
...using a single tab for indent.

Mostly pure whitespace changes.
2019-08-27 19:14:51 -04:00
Aaron Suen
f4aa27299e New concrete mod provides access to smooth-stone.
Bash gravel down into ash to produce dry aggregate.

Dampen the aggregate to produce wet aggregate.  The ash chemically
reacts with gravel to produce a cement.

Let the wet aggregate dry and it will cure into smooth-stone.
It will tend to flow and wander if left uncontained though.
2019-08-23 22:45:08 -04:00
Aaron Suen
bba8edfc39 Lower sponge water TTL. 2019-08-23 21:42:48 -04:00
Aaron Suen
86ecd96cc9 One more tweak to sponge mechanic.
Water is now squeezed out, can be reabsorbed, BUT might disappear
before being reabsorbed anyway.  The original sponge can be
removed, though, and the water will just disappear on its own
after the timeout.
2019-08-23 21:39:54 -04:00
Aaron Suen
a2fa61b77f Alternative sponge mechanic.
When squeezing a wet sponge, it doesn't become dry, but must
remain wet and in place, and the water source it places lives only
a short time.
2019-08-23 21:36:11 -04:00
Aaron Suen
6141a6206e More sounds for sponge stuff. 2019-08-23 21:25:29 -04:00
Aaron Suen
10db2d6dbf Squeeze sponges to produce temporary splashes of water.
Pummel a sponge and it will release water if there is space
nearby, though it will be reabsorbed by the sponge in a few
seconds.

This CAN be used to wet other sponges (i.e. to have a managed
supply of water if working far from oceans) but CANNOT be used
to create infinite springs.

If the original sponge is removed (and there is no other sponge
to absorb the water) then the water will be removed as well.
2019-08-23 21:18:20 -04:00
Aaron Suen
fe00eb65c0 Wet sponges contribute to tree growth too. 2019-08-23 20:51:19 -04:00
Aaron Suen
de4dff158f Sounds for lode things and sponges. 2019-03-14 19:31:56 -04:00
Aaron Suen
7c18b8110d Sponge nerf.
- Spawn fewer clumps.
- Spawn larger clumps.
- Spread much slower.
2019-02-23 23:29:55 -05:00
Aaron Suen
44b6a1d228 Shared mapgen API, add hard stone strata. 2019-02-23 22:48:39 -05:00
Aaron Suen
2a33e77ea3 Remove debug code. 2019-02-19 19:05:48 -05:00
Aaron Suen
b622883995 Made living sponges spread. 2019-02-19 19:02:21 -05:00
Aaron Suen
c1f3fbb241 Simplify sun-drying. 2019-02-19 13:53:06 -05:00
Aaron Suen
294fb0285f Some initial basic sponge wetting/drying logic. 2019-02-19 00:50:59 -05:00
Aaron Suen
c0d031eb24 Create initial node defs for sponges. 2019-02-16 19:34:53 -05:00