57 Commits

Author SHA1 Message Date
Aaron Suen
78f4c8bd74 Fix crafting, move staff to woodworking. 2018-12-30 18:44:28 -05:00
Aaron Suen
c91151ab06 Start of a more flexible centralized crafting system. 2018-12-30 17:36:47 -05:00
Aaron Suen
7835a357da API refacs, and some planning. 2018-11-05 20:03:05 -05:00
Aaron Suen
f301ac8d17 Better pummel particle image. 2018-11-05 00:34:02 -05:00
Aaron Suen
674f169090 Various touch-up. 2018-11-05 00:21:02 -05:00
Aaron Suen
e6977e1a0a Added particle effects to pummelling.
Similar to crack texture on digging, this gives visual feedback
that what the user is doing is working, and just needs more time.
2018-11-04 23:30:06 -05:00
Aaron Suen
db302c8807 Smother fire to produce ash. 2018-11-04 22:19:32 -05:00
Aaron Suen
bd526122e8 Start initial stub work on fire. 2018-11-04 22:03:22 -05:00
Aaron Suen
8a316dea75 Lighter, less coal-like particles. 2018-11-03 21:24:25 -04:00
Aaron Suen
aa1da28637 Simplify knowledge, add pummel support, stack breaking particles. 2018-11-03 21:18:39 -04:00
Aaron Suen
8acfe467ac Expose API. 2018-11-03 21:05:15 -04:00
Aaron Suen
7f619a4e4e Remove debug messages. 2018-11-03 21:00:57 -04:00
Aaron Suen
41f4cbcbc8 Back out stubbed hints system for now. 2018-11-03 21:00:38 -04:00
Aaron Suen
d042609b85 Player knowledge tracking system.
Track a list of all unique experiences a player has had with
various nodes.  This can be used for a hints/achievements system.
2018-11-03 20:58:49 -04:00
Aaron Suen
ac1d23c988 Merge nc_inv into nc_player.
Considering an eventual "achievement" system.
2018-11-03 19:23:33 -04:00
Aaron Suen
90574771c6 Simplify trees, since logs currently cannot be moved.
Presumably this will change in the future, but it's also not
a given that we should have a falling or rotating version of the
tree (or that it should also split to planks).
2018-11-03 19:18:28 -04:00
Aaron Suen
7bd9c4e63a Use adze to split logs into planks. 2018-11-03 18:56:07 -04:00
Aaron Suen
90c7d2daaf Clean up crack texture, refac tool crafting, dig/punch facing. 2018-11-03 17:40:04 -04:00
Aaron Suen
146d50bcb1 Very basic tree growth from EggCorns.
Right now, the growth timing is purely stochastic, and does not
factor in environment, light, space, or cumulative time.
2018-11-03 12:55:26 -04:00
Aaron Suen
4941a966e5 Double-res crack texture to make easier to see. 2018-11-03 12:11:50 -04:00
Aaron Suen
f69fd6ce72 Setup crack_anylength, fix a bug in loose repacking. 2018-11-03 12:02:44 -04:00
Aaron Suen
94ba8e8419 Attractive replacement inventory screen. 2018-11-03 11:43:44 -04:00
Aaron Suen
37c8b0865c Separate tech trees in tree mod. 2018-11-03 11:26:15 -04:00
Aaron Suen
b7e3048fd7 API cleanup, librarify "visible inventory" functionality.
If we later implement solo-stack open containers, then this will
be reusable for that as well.
2018-11-03 08:46:14 -04:00
Aaron Suen
24e4f73213 Basic adze tool, able to break trees now.
Much TODO:
- Primitive adze should not harvest trees whole; need to split into
  planks from end only.
- Not entirely satisfied with crafting experience from gameplay nor
  API perspective.
- Need an easier way to register these kinds of recipe checks.
- Need more gameplay actions to commmit a craft, e.g. have to pound
  the tool head into place.
2018-11-02 23:54:43 -04:00
Aaron Suen
20e79f0db1 Add more resources to be harvested from tree canopies. 2018-11-02 22:55:14 -04:00
Aaron Suen
d4295833fa Slightly better continuity from tree to root texture. 2018-11-02 22:16:24 -04:00
Aaron Suen
99ceadf677 More repose tweaks/fixes/improvements. 2018-11-02 22:00:39 -04:00
Aaron Suen
15e71cfd3b Have to use hand to pack earth, code cleanup, fixes, optimization. 2018-11-02 21:20:51 -04:00
Aaron Suen
e4f5ac93bc Fix missing API param.
Without puncher, we wouldn't be able to lookup wielditems.
2018-11-02 19:23:13 -04:00
Aaron Suen
cd8db98c68 Add "pummel" action, for repeatedly punching nodes.
- Punch a node repeatedly, aborting dig between each swing, to
  trigger the "pummel" action.
- Can use this to repack "loose soil" type nodes into solid,
  non-falling versions.
2018-11-02 19:08:59 -04:00
Aaron Suen
3a7ac241fc Disable normal punch mechanism; MUST settle into node-space first. 2018-11-02 18:52:02 -04:00
Aaron Suen
7e9fcf296d API-ify some node behavior upon registration. 2018-11-02 18:47:44 -04:00
Aaron Suen
8260805612 Sync stack visual scale with item_entity. 2018-11-02 07:58:19 -04:00
Aaron Suen
b8b4b24982 Start unified API, add angle-of-repose logic.
"Loose" versions of materials will only allow a certain maximum
angle of repose, and will shuffle around sideways and fall if
that angle is exceeded.  Softer materials like sand, leaves, loose
items, will all have shallow angles, while sturdier stuff like
dirt, gravel, etc. may allow steeper ones.
2018-11-02 07:52:23 -04:00
Aaron Suen
0fdd842953 Dryer leaf color when falling. 2018-11-02 00:53:53 -04:00
Aaron Suen
92344e871f Can now cut down leaves. 2018-11-02 00:50:34 -04:00
Aaron Suen
1aa85e4a6e Transform grass->dirt in-world.
Effects:
- Grass now "toughens up" the dirt by making it take effectively
  twice as long to dig up.
- Conversion from grass to dirt is now a lot more visible in world.

The idea of "transformations taking place in world" should arguably
apply to drop transformations: all nodes when dug should EITHER
go to inventory without changing, i.e. drop themselves, OR should
transform in-world and need to be dug a second time.
2018-11-02 00:39:52 -04:00
Aaron Suen
bdb0cb1b2c Prevent trunks peeking out at the top. 2018-11-02 00:25:12 -04:00
Aaron Suen
71e67c396b Notably less-perfect trees. 2018-11-02 00:19:44 -04:00
Aaron Suen
7547175aa2 More advanced trees, with roots. 2018-11-02 00:08:42 -04:00
Aaron Suen
5aab77a031 Move trees into their own mod.
Tell all versions of the mapgen never to place them, and only
ever use decoration placement system.
2018-11-01 23:06:06 -04:00
Aaron Suen
0cc6ecfebe Tone down sand similarly. 2018-11-01 22:16:31 -04:00
Aaron Suen
5182718586 Make grass less sickeningly overpowering. 2018-11-01 22:13:37 -04:00
Aaron Suen
7969989d95 Make trees a lot less plentiful. 2018-11-01 22:07:00 -04:00
Aaron Suen
045e1a7f5b Oops my water had disappeared! 2018-11-01 21:53:55 -04:00
Aaron Suen
b478701f3f New textures for terrain.
They're a less "realistic" and fit the more regular, crystalline
visual theme from the title graphics.
2018-11-01 21:33:56 -04:00
Aaron Suen
1923c32282 Some dummy player graphics to appease the engine. 2018-11-01 20:33:42 -04:00
Aaron Suen
b4add562b5 Fixed liquids, made sand, grass, gravel, dirt diggable. 2018-11-01 19:56:38 -04:00
Aaron Suen
d516c74b1b Fix CONTENT_IGNORE warnings.
Apparently you can't register something as a liquid for
swimmability reasons anymore without also specifying alternate
source/flowing versions for the liquid transformer.
2018-11-01 19:36:08 -04:00