1124 Commits

Author SHA1 Message Date
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
Aaron Suen
5e27f5c175 Stronger depth light diminishing. 2020-02-22 10:41:18 -05:00
Aaron Suen
c7a322941e Experimental new natural light system.
- No day/night cycle, no sun/moon.
- Get rid of clouds too.
- Skybox is now 100% texture-packable.
- Natural light diminishes with depth.

Night-time no longer disrupts gameplay topside, but
skylights are no longer useful to an infinite depth and
artificial light is necessary for all deep mining.
2020-02-22 10:38:03 -05:00
Aaron Suen
03223f72aa Fix sponges never drying in sunlight anymore. 2020-02-22 09:17:36 -05:00
Aaron Suen
ca708e7125 Fix agg mix fail recipe. 2020-02-22 09:13:32 -05:00
Aaron Suen
090417daf8 Set-velocity item scattering.
This prevents chopped planks from landing atop the
log below, and all sorts of other recipe annoyances
when items scattered are not necessarily scattered
far enough.
2020-02-22 09:11:24 -05:00
Aaron Suen
64f4abff59 New texture for staff/ladder/frame.
Grain of bark now runs along the stick/staff in each direction,
rather than having "rings" along some axes.
2020-02-21 07:30:32 -05:00
Aaron Suen
509cf043d4 Distinct new look for lux infusion. 2020-02-20 22:14:29 -05:00
Aaron Suen
756b12b7d4 Better record damage/heal types for stats. 2020-02-20 07:16:19 -05:00
Aaron Suen
a8e9c7dbda Add a couple more sound registrations. 2020-02-20 07:16:00 -05:00
Aaron Suen
670cbbb89b Prevent damage flash for new players.
Setting hp_max before player actually emerges in a
join event seems to prevent damage flash (MT engine
issue 7876) for new players.

Old players rejoining for the first time since the
change will still experience it though.
2020-02-20 07:35:39 -05:00
Aaron Suen
2c91f8f95d Make the log top a little less extremely square. 2020-02-20 02:21:33 -05:00
Aaron Suen
0c5611ed57 Remove broken-anyway breath check. 2020-02-19 22:35:18 -05:00
Aaron Suen
3271dba8b2 Limit damage FX replay for fully hurt players. 2020-02-19 22:32:19 -05:00
Aaron Suen
bc7987f9c4 Set drowning damage the correct way. 2020-02-19 21:30:45 -05:00
Aaron Suen
828312d452 Cache to account for metadata jitteriness.
It seems that when we access metadata too rapidly
it pulls data out of order or something, so that the
player damage time stuff is unstable, and healing can
start immediately, or more than 8 seconds later.

Caching this stuff manually seems to work around the
issue, and it seems that the metadata system is at
least EVENTUALLY consistent, so it's still good for
long-term use or across world unloads.
2020-02-19 21:05:20 -05:00
Aaron Suen
ebce2950c9 Retire chat effects.
This is better done by an external mod.

It can be pulled from history if wanted later.
2020-02-19 20:23:36 -05:00
Aaron Suen
416855b766 Slow down lode ore "annealing". 2020-02-19 20:21:07 -05:00