33 Commits

Author SHA1 Message Date
Aaron Suen
a7b84724c8 Improved smoke API, smoking torches
- Smoke API uses expandable options param instead of positional
- Separate burst qty from automatically adjusted rate
- Backward compat with old API for now
- Standardize burst of smoke puffs for crafting
- Torches emit small smoke particles at increasing rate as they
  start to wear out, to warn players holding them to light another
- Torches now emit a puff of smoke upon snuffing
2022-06-08 08:15:31 -04:00
Aaron Suen
d668c5c06b Certain puffs of smoke can block optics
This can be used to detect some recipe
completions, esp. cooking, cooling, quenching,
and curing.
2022-05-01 00:42:19 -04:00
Aaron Suen
6018adf839 Make pumwater much more common
There is a chance to find some at any depth.  At
around -256, it should start to get practical to
actually hunt for it.  By -600 or so, it is common
enough to actually be an obstacle, and deep
caverns start to get pum-filled.

Pumwater is added by scattering "blob" ore
throughout stone at various depths.  Stone
immediately above pumwater sources is carved
away to air, to encourage the pumwater ambiance
to play, to make it a bit easier to find it by audio
cues.
2022-04-30 15:31:13 -04:00
Aaron Suen
a0a14f9195 Fix amalgamation melting in falling node form 2022-01-22 16:52:20 -05:00
Aaron Suen
17c3f1700f Area load check for AISMs 2021-12-18 12:10:58 -05:00
Aaron Suen
a1b2df3941 Begin standardization of unload bounds check
- New near_unloaded API that supports custom
  distance parameter, map bounds check, and
  some optimizations.
- Add area automatic unload check support to ABM
  API and add to applicable ABMs, replacing many
  old manual checks.

Note that the explicit unload check is only strictly
necessary when something will happen due to
a node NOT being present in the area, e.g. something
igniting due to absent coolant, or soaking quantity
being reset due to missing sources.  In simple cases
where the absence of a thing causes the ABM to do
nothing, then the standard check can work because
the default action is to do nothing anyway.
2021-12-18 11:28:14 -05:00
Aaron Suen
f5e966480b Fix delayed witness mis-ordering
Witness checks include data about the node in
place at the time that the witness even occurred,
so players are not awarded credit if the node they
see there was changed again afterwards.  A lot of
old witness code inserted the witness right
before the node was changed, since the node
change was done as a tail call, but this does not
work with delayed witnessing because the
delayed witness data would be tied to the old
node, not the replacement one.

Moving witness to after node setting should fix
a number of broken hints that should have been
delayed-witnessable, e.g. brick bonding.
2021-12-12 00:04:37 -05:00
Aaron Suen
8bfdc211a3 Convert some action logs to info
We were using action log level for a lot of
things because by default MT does not seem
to capture info logs to stderr.  On "production"
servers though this makes too much noise and
makes it hard to find actual player actions.
Servers that want info logging will just have
to configure/compile it in.
2021-12-11 21:26:18 -05:00
Aaron Suen
9fb4cf55b2 Deprecate register_limited_abm
This has just been an alias to minetest.register_abm
for a while now, and all ABM enhancement features
have been added directly to the core API.
2021-07-10 11:09:44 -04:00
Aaron Suen
848910a992 Tweak plantlife destroyability
- Wilted flowers can be planted but will
  disintegrate if plucked.
- Flowers can be washed away by water.
- Destroying flowers/sedges uses the same
  particle effects as pumice.
2021-07-01 21:32:04 -04:00
Aaron Suen
708b861299 Slight pumwater renewal nerf
Extra pumwater surrounding does still increase
speed, but not by as much.  Long-run production is
still exponential though.
2021-06-20 12:49:49 -04:00
Aaron Suen
e8823a8dae Fix pumwater renewal 2021-04-23 06:58:05 -04:00
Aaron Suen
4ad14dddba Fix remaining manual ABM inversions
- Fire (longest-standing)
- Stone hardening
- Lava renewal
2021-03-23 20:27:35 -04:00
Aaron Suen
cb2251529a Pumwater renewal recipe
Surround stone with pumwater on at least 4 sides.
If surrounded on all 6 faces, should take about
30 minutes on average.
2021-03-14 10:26:46 -04:00
Aaron Suen
410ebd5d8d Recompression using ECT
https://github.com/fhanau/Efficient-Compression-Tool
2021-03-09 08:16:23 -05:00
Aaron Suen
c10e80ef87 Set name in mod.conf as demanded by 5.5+ 2021-03-01 20:10:27 -05:00
Aaron Suen
ae74e4f546 Complete basic hint audit of all mods 2020-09-11 17:20:21 -04:00
Aaron Suen
1b33ccb431 XD 2020-09-07 21:55:41 -04:00
Aaron Suen
4da3d92757 Fix pumice melt antigravity bug 2020-09-07 21:34:36 -04:00
Aaron Suen
35c800d942 Make pumice snappy=2
Paving the way for infused rakes that can clean
up more extensive messes...
2020-09-06 17:09:43 -04:00
Aaron Suen
18b01c1ae7 Redistribute hints into each mod
Hints themselves have not been tided up
much, but this makes the project of fixing the
hints for each mod a little more manageable
and breaks up the hard-to-navigate single
monolithic hints file in the old guide mod.

The old guide mod has now been completely
retired.  Hints are now a full-fledged API-layer
standard feature.
2020-09-04 19:07:45 -04:00
Aaron Suen
6743f97d32 Lava quench fx, notes update
Dump most core game ideas from my
discord collected notes.
2020-08-30 21:49:38 -04:00
Aaron Suen
6b2447266b Add stone softening 2020-08-30 21:07:13 -04:00
Aaron Suen
50498c3edf Nerf stone hardening 2020-08-30 20:26:09 -04:00
Aaron Suen
e06fff7620 Pumice quenching can now affect water too
Face-touching water can be converted to pumice instead of the
flowing lava (e.g. lava intrudes into that space and quenches
instead) creating even more of a mess.
2020-06-24 08:21:43 -04:00
Aaron Suen
cb844813f0 Refactor and nerf stone hardening 2020-06-18 06:40:19 -04:00
Aaron Suen
984e87e155 Consistent ABM labeling
- Make sure every ABM has a label
- Use consistent case
- More concise names / consistent voice
2020-06-17 07:09:20 -04:00
Aaron Suen
0a5565a3ea Buff player breath 2020-06-07 12:15:56 -04:00
Aaron Suen
86d4a1a1fa More glassy pumice texture
Multiplied by inverted chromatic glass to create
larger-scale glassy structures.
2020-06-06 09:17:42 -04:00
Aaron Suen
ba2eed812d More uniform pumice texture 2020-06-06 09:16:56 -04:00
Aaron Suen
646f218abc Tweak particles 2020-06-06 08:28:19 -04:00
Aaron Suen
3493e8222b Add new pumice material
- Flowing lava quenches to pumice
- Pumice can spontaneously melt back to flowing
  lava, when touching lava, and sometimes even
  when still quenched.
- Pumice cannot be harvested or moved, it's
  utterly destroyed by digging.
2020-06-06 08:23:29 -04:00
Aaron Suen
f70c34cf8e Refactor amalgam into its own mod
This declutters nc_terrain and paves the way for
more igneous content
2020-06-06 08:00:59 -04:00