926 Commits

Author SHA1 Message Date
Aaron Suen
b17845f949 Auto-format/check, including some bugs found and fixed. 2019-10-01 18:30:15 -04:00
Aaron Suen
02057cf612 Allow on_ignite handler to bail early.
For igniter logic where the node handles its own ignition process
in its entirety and doesn't use the base logic.
2019-10-01 18:26:29 -04:00
Aaron Suen
8aa95d1f61 Merge branch 'dev' into torch 2019-10-01 18:24:39 -04:00
Aaron Suen
79419dd10a Simplify composting logic.
- Leaves no longer decay into air.
- Leaves compost over longer time, following tree growth logic
  (i.e. based on moisture and soil) when not exposed to air.
2019-10-01 18:23:12 -04:00
Aaron Suen
bc90850a0e Notes. 2019-09-28 08:56:09 -04:00
Aaron Suen
b7f6d3c7cb Sponge mapgen spawning tweak.
Reinstate sponges spawning as mature colonies, and match mapgen
colonies to expected end-state of natural regrowth.  This should
make it harder to distinguish an "old growth" area where players
have been hanging around a long time from pristine sponges.
2019-09-23 21:46:23 -04:00
Aaron Suen
cc30c80069 Sponge cultivation overhaul.
- Inhibit sponge colony growth beyond a maximum size.  Players
  will have to prune colonies (or, smarter yet, split them) to
  grow more sponges.

- Allow sponge colony transplantation.  Sponges near the "core"
  of a colony (i.e. surrounded by more sponges) are more viable
  and more able to survive the player's crude harvesting.
2019-09-23 21:28:48 -04:00
Aaron Suen
d61f5c8c52 Make sure what we have is a player before loading player stats. 2019-09-23 20:01:14 -04:00
Aaron Suen
54cc3445d3 Further shelf placement fixes. 2019-09-21 12:12:52 -04:00
Aaron Suen
2a3e0cc3ca Fix vertical shelf building.
Placing a shelf against the side of another shelf was possible
with a simple right-click, but placing one against the top or
bottom of another shelf didn't work.  This fixes that.
2019-09-21 09:50:26 -04:00
Aaron Suen
88cf7be08c Don't trigger a craft upon dropping a stack.
This was causing dropping a stack of sticks against the side of a
staff to craft a ladder, and destroy any excess sticks.
2019-09-21 09:06:53 -04:00
Aaron Suen
6536276430 Non-loose nodes inherit crush damage from loose alternatives. 2019-09-21 08:38:16 -04:00
Aaron Suen
3b16be70d4 Fix mattock crafting issue. 2019-09-21 08:33:59 -04:00
Aaron Suen
58b4e09bab Merge notes from discord again. 2019-09-19 07:34:03 -04:00
Aaron Suen
8f12b3aa80 Update issue now that it has an official ID. 2019-09-18 22:41:29 -04:00
Aaron Suen
9e0efb4840 Fix hint breakage discovered by GreenDimond. 2019-09-15 20:38:20 -04:00
Aaron Suen
9bfe902634 Try nerfing composting rates by 5x. 2019-09-15 07:38:38 -04:00
Aaron Suen
e48d306e98 Fix broken lux ore hard strata. 2019-09-15 07:32:06 -04:00
GreenXenith
d3510d263a Add torch quirk note 2019-09-14 22:38:35 -07:00
GreenXenith
3a3eb976cd Torches depend on woodwork 2019-09-14 22:29:50 -07:00
GreenXenith
5c5de0813c Animate torch texture 2019-09-14 22:24:41 -07:00
GreenXenith
57dac2c808 Move torch blend file to src 2019-09-14 21:42:12 -07:00
GreenXenith
00b3e0f206 Snuff torches when underwater or quenched 2019-09-14 21:40:35 -07:00
GreenXenith
47e7ac505f Separate torch files 2019-09-14 20:35:58 -07:00
GreenXenith
86441e7179 Remove torch mtl file 2019-09-14 20:35:32 -07:00
GreenXenith
1ebe187cd1 Add torch wield light 2019-09-14 20:18:09 -07:00
GreenXenith
01438ca10b Make torch produce less light than fire 2019-09-14 19:49:27 -07:00
GreenXenith
688c750fe7 Adjust lit torch box 2019-09-14 19:48:26 -07:00
GreenXenith
c1d1243250 Only ignite torches if under air 2019-09-14 19:46:57 -07:00
GreenXenith
7b82a923ff Dont ignite materials underneath torch 2019-09-14 19:39:48 -07:00
GreenXenith
7f724fcb0a Fix re-placed expiration time 2019-09-14 18:29:52 -07:00
GreenXenith
833ae46716 Remove empty torch texture 2019-09-14 18:07:09 -07:00
GreenXenith
7647eb547a Add torches 2019-09-14 18:05:29 -07:00
Aaron Suen
8d850980d1 Try removing sparks on collision.
Didn't look right with sparks going through glass, and still
didn't look right having sparks hit glass and go sliding off
to the side at constant velocity.
2019-09-14 19:11:54 -04:00
Aaron Suen
974f0c2672 Having sparks go through solid glass is a bit distracting. 2019-09-14 19:06:22 -04:00
Aaron Suen
afc4d408c7 For now, remove direction bias of fire sparks.
After much discussion about things like wind velocity, it was
concluded that many fires are indoors or underground, and the
check to see if they're out in the open is not worth the cost.
2019-09-14 19:03:40 -04:00
Aaron Suen
35f96fb571 Merge improved fire visuals by GreenXenith. 2019-09-14 18:28:35 -04:00
Aaron Suen
82c012fb1e Add attribution for GreenXenith. 2019-09-14 18:28:20 -04:00
Aaron Suen
9b9b14b173 Standard battery of auto formatting and optimizing. 2019-09-14 18:27:06 -04:00
GreenXenith
da9dea607c Add fire spark particles 2019-09-14 14:42:29 -07:00
GreenXenith
2d63bdba43 Improve fire texture 2019-09-14 14:42:03 -07:00
Aaron Suen
6e345816ad Stack overflow that builds up over time... 2019-09-14 17:09:13 -04:00
Aaron Suen
222b511de2 Barring rebalance needs, this is done now. 2019-09-14 15:37:16 -04:00
Aaron Suen
8270724c07 Stumps now drop sticks instead of dirt.
There is now a "dirt cycle" in NodeCore ecology.  Trees consume
dirt, and stumps now no longer return it.  Players need to compost
leaves by burying them away from light near dirt, which will then
allow them to create new dirt.

This is one step closer to viable skyblock gameplay.
2019-09-14 15:34:27 -04:00
Aaron Suen
40d1c672b9 Merge remote-tracking branch 'origin/master' into dev 2019-09-14 15:11:38 -04:00
Aaron Suen
b078ebbc20 Merge branch 'master' into 'master'
Add swim animation and increase size of head overlay

See merge request sztest/nodecore!1
2019-09-14 19:11:07 +00:00
LoneWolfHT
310206dd4e Add swim animation and increase size of head overlay 2019-09-14 11:23:00 -07:00
Aaron Suen
57b032d062 Initial work on leaf composting.
- Leaves left in the sun decay to nothing.
- Leaves deprived of air decay into dirt.

TODO:
- Decay out of stack nodes, half-life qty?
- Dig particle effects for node destruction; create API and
  apply to other places?
2019-09-14 10:33:02 -04:00
Aaron Suen
0ae0172edd Fix crash on to many falling leaves. 2019-09-14 10:16:42 -04:00
Aaron Suen
7e75fd149a Quote consistency. 2019-09-14 09:49:06 -04:00