12 Commits

Author SHA1 Message Date
Aaron Suen
6e751a5996 Make sound on sponge squeeze expire 2020-06-01 21:19:45 -04:00
Aaron Suen
533bdd0de8 Fix sponge squeeze expiration
Apparently we can't trust node meta to return
the same data to us that we just pushed in for
a few seconds, so check an in-memory cache
first and only use the meta for newly loaded
areas.
2020-06-01 21:00:22 -04:00
Aaron Suen
7bc1a4ddad Standardize node placement sounds.
Add node placement sounds to processes
missing them, like tree growth.
2020-01-16 22:02:59 -05:00
Aaron Suen
2106569e7b New sponge squeezing mechanics.- Squeezing a sponge creates flows of temporar water.- Re-squeezing the sponge maintains the water flows.- Since fluid is non-renewable, we no longer need to worry about checking for neighbors. 2019-12-25 11:55:47 -05: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