1299 Commits

Author SHA1 Message Date
Aaron Suen
f2455c28f2 Stop entities falling of the bottom of the map. 2020-03-22 14:06:23 -04:00
Aaron Suen
b1c1ffb86a Fix item ents settling on map lower bound. 2020-03-22 11:10:47 -04:00
Aaron Suen
cfcbb4bdb0 Fix broken bounds calc. 2020-03-22 11:07:20 -04:00
Aaron Suen
d27c9cbc86 Mapgen limit API cleanup. 2020-03-22 10:59:06 -04:00
Aaron Suen
f140618e45 Partial ent settling on mapgen lower bound
Trying to make it so that the map lower bound
(via mapgen_limit) is solid to all built-in objects.
Before, entities would fall into this space, remain
until unloaded, and then be destroyed.

Falling nodes appear to work correctly.
Item ents still don't settle.
2020-03-22 10:42:01 -04:00
Aaron Suen
baa54a6cd7 Damage logic consolidation 2020-03-22 08:19:39 -04:00
Aaron Suen
4dd97d3b2c Tweak cheat torch command decription 2020-03-22 08:15:50 -04:00
Aaron Suen
e987a87bd8 Simplify breath hud handling 2020-03-22 08:14:51 -04:00
Aaron Suen
5a19628586 Odd crash on nil vel in nodefall damage. 2020-03-22 00:09:24 -04:00
Aaron Suen
ba95b0989a Mapgen: lava and water springs.
Rarity values may need to be adjusted.
2020-03-21 09:05:53 -04:00
Aaron Suen
0b2f3fce52 Tweak settling check fix to be more cautious. 2020-03-21 08:22:58 -04:00
Aaron Suen
bb81d0c4d5 Notes update. 2020-03-21 08:19:24 -04:00
Aaron Suen
54ab2b7cc6 Accumulated discord notes dump. 2020-03-20 07:27:06 -04:00
Aaron Suen
a37ef544ee Destabilize item ents stuck on edges.
Instead of checking only in the center below an entity,
check a random x/z offset below its bounding box, so
an ent that's stuck on an edge will eventually detect
the blocking node below that edge and settle.
2020-03-20 08:43:08 -04:00
Aaron Suen
4e8e95935b Fix soaking ABMs not properly resetting. 2020-03-19 21:33:01 -04:00
Aaron Suen
2ef99d64f9 Add effects to firestarting fail recipe.
Stick breaking noise (to accompany loss of stick) and
a puff of smoke to indicate you're on the right track.
2020-03-17 07:53:30 -04:00
Aaron Suen
5d465c7afb Fix lava hints. 2020-03-15 09:18:35 -04:00
Aaron Suen
cdb32ebc36 Only detect "full sun" where not diminished. 2020-03-15 09:16:34 -04:00
Aaron Suen
63ee28c8e0 Base torch life variance on base life. 2020-03-15 09:11:51 -04:00
Aaron Suen
bd9edb15c4 Buff base torch lifetime to 2 minutes. 2020-03-15 09:06:08 -04:00
Aaron Suen
0f474b90e4 Remove debug code. 2020-03-15 09:03:44 -04:00
Aaron Suen
8a5835f21b Add visible stages of lit torch decay. 2020-03-15 09:02:58 -04:00
Aaron Suen
48e7bab366 More torch smoothing.
- Smoother entity light casting.
- Fix flicker on torch pickup.
2020-03-15 08:34:45 -04:00
Aaron Suen
0a26b5bdec Preserve all torch metadata, not just expire. 2020-03-15 08:24:48 -04:00
Aaron Suen
82bc47642e Smoother torch light operation.
Also reduce client packets by tracking dynalight node
ttl in-memory instead of meta.  Lights might flicker out
a bit on area first loading, but some startup judder is
expected on any unloaded area anyway.

Add a "cheat" code for torch testing, and possibly for
other dev uses.
2020-03-15 08:20:56 -04:00
Aaron Suen
04250fbf19 Some guide improvements.
- Fix scaling tip so mobile users can figure it out.
- 3x3 recipe and symmetry hints.
2020-03-15 07:54:24 -04:00
Aaron Suen
10e65388b9 Try not to send unnecessary visinv updates. 2020-03-14 18:50:29 -04:00
Aaron Suen
9dd9192bfa Get rid of transient hand wieldmesh. 2020-02-27 22:33:04 -05:00
Aaron Suen
12b6649a30 A little didying. 2020-02-27 19:12:07 -05:00
Aaron Suen
14fc9ecd8f Try to make cherenkov more specific. 2020-02-27 19:11:35 -05:00
Aaron Suen
0cb72f7f2b Updated code standards. 2020-02-27 19:11:12 -05:00
Aaron Suen
9094c00606 Fix virtual item placement prediction. 2020-02-25 00:36:08 -05:00
Aaron Suen
65c21683a3 Fix burn/injury inventory/hand appearance. 2020-02-24 21:45:13 -05:00
Aaron Suen
de5d88b753 Allow for "hand node" cleanup. 2020-02-24 06:23:47 -05:00
Aaron Suen
5a5c546596 Use actual mesh and skin for player hand. 2020-02-24 06:22:09 -05:00
Aaron Suen
f541cf9062 Fix crash on unknown nodes for radiant heat. 2020-02-24 06:21:35 -05:00
Aaron Suen
3200149cc4 Buff torch and scaling light sources.
- Better compat with low gamma play.
- Torch now emits some light when in inventory, even
  if not actively wielded.
- Dynamic light API for mod use.
2020-02-22 21:57:08 -05:00
Aaron Suen
15ef9de66a Try dimming the sky a bit more.
This should hopefully make the land seem a bit
brighter in comparison...
2020-02-22 21:16:15 -05:00
Aaron Suen
8272cd25ae Another typo. 2020-02-22 19:43:12 -05:00
Aaron Suen
aa0f4943cf Dynamically dim fog too. 2020-02-22 19:12:28 -05:00
Aaron Suen
7444a0248b Fix fog color (again) and a crash bug.
Sadly I don't have a way to make fog color texture
pack customizable, so it will have to be hard-coded
for now, and TP artists may want to advise players
to just disable fog if they can, or maybe a CSM could
work...
2020-02-22 19:08:51 -05:00
Aaron Suen
06ab50888b Fix fog brightness...? 2020-02-22 18:32:44 -05:00
Aaron Suen
42ec1d7d5a Merge highly experimental perpetual twilight.
This removes the day/night cycle from NodeCore,
which experience seems to suggest may be more of
an annoyance than a useful and interesting gameplay
feature.

Some aspects of gameplay are notably altered, such
as the balance between artificial and natural light,
and the operation of optics (no more solar lenses).

The overall atmosphere of the game is also deeply
changed by this, taking on a timeless, dream-like
quality.  It remains to be seen whether this change is
beneficial or even tolerable.
2020-02-22 17:42:43 -05:00
Aaron Suen
f2a6dddfb2 Make sky a tiny bit more vibrant. 2020-02-22 17:38:32 -05:00
Aaron Suen
71db095b99 Remove debugging code. 2020-02-22 16:57:14 -05:00
Aaron Suen
6db8d9fc26 Adjust things to work in twilight.
- Lenses no longer produce light from sun at all;
  artificial light is always needed.
- Grass and trees survive, don't do dual-time check.
- Breeze sounds work in twilight.
- Sponge drying only requires twilight, now also can
  happen under artificial light.
- Peat to grass happens under twilight.
2020-02-22 16:55:42 -05:00
Aaron Suen
5b2b334fe4 Bathe the world in twilight, not sunlight. 2020-02-22 16:36:27 -05:00
Aaron Suen
f12cbd2c61 Merge branch 'master' into dev 2020-02-22 11:39:02 -05:00
Aaron Suen
1ddc9b52d0 API to dump inventory for mods. 2020-02-22 11:38:49 -05:00
Aaron Suen
e0d15dcd4b Simplify lens sensitivity.
Lenses work from sunlight up to roughly y = -10.

You can now have unlimited optic power from the sun,
but conducting it all the way down from the surface is
more of a pain than having a loop at depth.
2020-02-22 10:44:40 -05:00