1102 Commits

Author SHA1 Message Date
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
Aaron Suen
bcbe77644e Buff drowning damage, nerf some node damage. 2020-02-19 19:55:22 -05:00
Aaron Suen
00aa460942 Some damage buffs.
- Player hp_max is 8 now, so most injuries will block
  a whole slot each time.
- Player can be reduced to 1 slot, not 2.  The 2 slots
  was from back in the day when players needed to go
  to the surface to heal faster, to help them get up
  there.  Now the 1 slot is only needed in case the
  player is trapped in fire or something.
- Damage effects now don't stop playing just because
  the player has reached maximum injury, and healing
  is also delayed by continued injury.
2020-02-19 19:48:51 -05:00
Aaron Suen
f03154453f More grass, less dirt on hillsides. 2020-02-19 08:15:39 -05:00
Aaron Suen
191e97fa27 Rename texture to avoid disrupting texture packs.
Reinterpreting the grass side as a mask instead of a texture
causes some really ugly artifacts with texture packs designed for
legacy textures and not overriding this.

Renaming the texture prevents the collision, and creates a sane
fallback for texture packs that don't have an override.
2020-02-19 11:08:59 -05:00
Aaron Suen
e19c9a8283 Reoptimize image. 2020-02-18 22:12:38 -05:00
Aaron Suen
bb85c4679f Misalignment. 2020-02-18 22:12:14 -05:00
Aaron Suen
1a9eafd04f Fix wood tool tint mismatching planks. 2020-02-18 21:34:01 -05:00
Aaron Suen
484c1a337f More subdued look for molten glass, image opt. 2020-02-18 20:10:08 -05:00
Aaron Suen
2ac5403149 The last few texture tweaks. 2020-02-18 19:57:30 -05:00
Aaron Suen
6a89bb5415 Compromise grass, and some more lode textures. 2020-02-18 19:02:52 -05:00
Aaron Suen
df2bb58793 Finish tree + terrain textures, new "rusty" lode look. 2020-02-18 06:30:43 -05:00
Aaron Suen
dc71f05a30 Try violet-tinting lode to make it stand out. 2020-02-18 00:48:26 -05:00
Aaron Suen
9642564378 Lode ore updates. 2020-02-18 00:29:40 -05:00
Aaron Suen
bc5708b343 Bold new look for lode! 2020-02-18 00:07:59 -05:00
Aaron Suen
979b652484 Fix grass side shadow, image opt. 2020-02-17 22:40:26 -05:00
Aaron Suen
e4e5dadf42 Start work on new textures.
New style is much more uniform, tiles better.
Look is more flat, muted, lower contrast.
2020-02-17 22:32:27 -05:00
Aaron Suen
47d18a554b Remove an unused resource. 2020-02-17 21:48:49 -05:00
Aaron Suen
80ed908b6b Fix grass eating tree sprouts (again). 2020-02-16 16:11:49 -05:00
Aaron Suen
cfdc19c851 Experimental text chat sound/particles.
When players are near one another, they can get
positional cues from nearby public chat messages.
2020-02-16 14:45:19 -05:00
Aaron Suen
7aeaf31acc Only play node stack sounds for visinv. 2020-02-15 22:18:00 -05:00
Aaron Suen
b2eac10f95 Quench glowing lode cobble to cobble, but anneal to ore. 2020-02-15 10:27:50 -05:00
Aaron Suen
06a94e4ffb Fix leech->leach spelling 2020-02-14 21:25:25 -05:00