157 Commits

Author SHA1 Message Date
Aaron Suen
2231d1dffe Add wield description HUD.
Swap it out with the breath bar, since the breath bar won't be
displaying most of the time, so we can afford to not read what an
item is until we come up for air to look at it.

Also, "eggcorn" is a single word.
2019-03-04 00:52:21 -05:00
Aaron Suen
98b235511c Standardize use of include function. 2019-03-02 20:39:08 -05:00
Aaron Suen
5aed5449ad Tweak tree-gen, making them a little easier to find.
Had multiple complaints from players that trees are hard to find.
The possiblity of needing some exploration is reasonable, and we
don't want the world to be too uniform for aesthetic reasons, but
there shouldn't be much harm in making trees less frustrating
to find.
2019-02-24 23:49:24 -05:00
Aaron Suen
9fe3f296b9 Tree stumps can finally be ground up by lode axes. 2019-02-24 16:36:53 -05:00
Aaron Suen
726f385e52 Add player natural healing.
- Players heal over time at variable speed, depending on subtle
  environmental factors.
- This frees us up to work on the death mechanic, since it's no
  longer the only way to restore health and prevent an untimely
  death.
2019-02-23 13:14:09 -05:00
Aaron Suen
63d587cf8b Missed files in prev commit. 2019-02-21 14:59:41 -05:00
Aaron Suen
c5ebe7f35a Fix stick firestarting.
Wasn't working when wielding more than one stick/staff, due to
implied count check added to fix log-stack-splitting issue.
2019-02-21 14:27:06 -05:00
Aaron Suen
a2f00b3c30 Fix fire-starting wield bug. 2019-02-21 09:35:31 -05:00
Aaron Suen
4b972b4d3b More recipe conversion, bugfixing. 2019-02-10 00:20:55 -05:00
Aaron Suen
35d814fb43 Fix suspected infinite loop in nodefall. 2019-02-09 23:35:16 -05:00
Aaron Suen
b02af51b20 Efficiency for heavily-used abm. 2019-02-09 23:00:38 -05:00
Aaron Suen
05d4d52eb4 Survey of how we're using pummels right now. 2019-02-08 21:12:10 -05:00
Aaron Suen
1ba1d13fcc Craft eggcorn dirt instead of abming it. 2019-02-04 20:21:33 -05:00
Aaron Suen
33cbce23e5 Merge branch 'master' into refac1 2019-02-04 20:16:54 -05:00
Aaron Suen
a8009f4c0c Make eggcorns "attached" instead of "falling".
Functionally, When they land, they'll land as an item stack instead
of placing as a node.  Visually, they won't look huge as they fall
anymore.
2019-02-03 13:22:43 -05:00
Aaron Suen
08a27aaae2 Downscale eggcorn inventory/falling image. 2019-02-03 13:20:19 -05:00
Aaron Suen
d67f736ac5 Merge node_is into match. 2019-02-03 12:44:33 -05:00
Aaron Suen
e78ba700a1 Some more adjustments.
Started flattening recipes.
2019-02-03 11:24:06 -05:00
Aaron Suen
ef8a756f8e Workaround https://github.com/minetest/minetest/issues/7020 2019-02-03 09:47:42 -05:00
Aaron Suen
0627c22101 More tree nerfs. Too many leaves. 2019-02-01 22:17:06 -05:00
Aaron Suen
03fd234f44 MORE tree nerfing. 2019-02-01 21:39:46 -05:00
Aaron Suen
7de5a4d7e3 Nerf tree growth rates.
- Trees now take a long time to develop after planting.
- Environmental factors are important.  Growth is aide by access
  to dirt for roots, and extra moisture from nearby water sources.
2019-02-01 18:34:03 -05:00
Aaron Suen
2d3b468c65 Knock out a bunch of small low-hanging issues.
- Eggcorn cleanup.  They look a little better falling out of the
  tree, and we don't have so many now.
- Crushing damage fixes.  Crushing is nuanced now, and most things
  don't smush you, and many do reduced damage.  A few may do more.
- Item stack convenience.  Items landing on a stack or right-
  clicked onto one attempt to merge into it.
- Ladders now fall (they don't connect to sides).  Use the new
  full-scale frames for ones that don't.
2019-01-29 20:41:29 -05:00
Aaron Suen
e4dc398b3a Start work on usage survey.
- Refactor player knowledge into player mod, to declutter API.
- Move player knowledge into mod storage so players don't need to
  be connected to access.  Old knowledge will be reset, but I
  doubt there was very much of it to lose.
- Start gathering some basic stats.
  - Main glaring omission is player moving and idle time.
2019-01-26 16:39:07 -05:00
Aaron Suen
8a7dbfe255 Remove debug code. 2019-01-26 16:18:21 -05:00
Aaron Suen
8e47b687d0 TOOL CAPABILITIES / LEVELS OVERHAUL
Try to standardize the way we handle tools, materials, digtimes.
- Levels start at 1 and work upwards.
  - Level 1 is for "hand" or "primitive" tools.
  - Levels 2+ are wood, stone, metal, etc.
- Link dig times, tool levels, and durability together.
- Material groups now define standard "base dig times" which
  are the main thing that makes e.g. stone harder to dig than dirt.

The speed of digging almost everything will probably have changed,
in some cases not for the better; much testing will be needed.
2019-01-24 22:08:05 -05:00
Aaron Suen
464a0e1d89 Finite fire rework.
- There are now 6 degrees of embers.  Better fuel sources will
  make better embers.
- Embers differ only in lifespan; each class lasts twice as long
  as the previous.  Top-grade fuels may last 15 minutes or
  longer.
- Embers decay stochastically.
- Embers decay 16x as fast when smothered, but still go through
  the same lifecycle.

Also:
- Plain ash now reposes.

There are no infinite fuel sources, nor are any specifically
planned at this time.
2019-01-17 00:01:00 -05:00
Aaron Suen
d968be62ee Squelch excess limited ABM warnings. 2019-01-12 20:53:02 -05:00
Aaron Suen
983f698f2c Refacs, start on iron ore.
Iron ore is distributed in sheets.  The ore itself will not be
exposed to the air (or any other material other than stone) but
can be detected by the rusty tint it gives nearby rocks.

Iron ore is a stone that yields cobble infused with iron.

Smelting processes to produce steels are TBD.
2019-01-08 02:03:18 -05:00
Aaron Suen
f9abfc5e22 Fire refinements.
- Make some more materials flammable.

- Flammable items in stack form burn up too.

- Some items burn away without converting into fuel.
2019-01-06 14:51:09 -05:00
Aaron Suen
4440e1f0b8 Sticks burn up in presence of fire. 2019-01-06 14:26:27 -05:00
Aaron Suen
6a50eb33b9 Burn up sticks instead of just deleting.
This actually makes it a little easier to start a fire, in case
the node we picked to send sparks to isn't flammable enough; the
fire here may last long enough that, depending on ABM timing,
nearby tinder may catch fire anyway.
2019-01-06 13:11:51 -05:00
Aaron Suen
915cd773e2 Stricter fire starting: node must be max flammability. 2019-01-06 13:05:51 -05:00
Aaron Suen
62f0db49e0 Fire mod is now basically functional.
"Qualitative" fire now works, spreads, etc.

Rub 2 sticks/staves together to start a fire in nearby flammables.
2019-01-06 13:04:07 -05:00
Aaron Suen
7d29907ab2 Some API refactors.
- Clean up utils into multiple files.

- Standardize limited ABM.

- Standardize debug trace handling.  Instead of using chat_send_all
  to debug, and then having to remember to remove before release,
  allow privileged players to receive all server debug messages.
2019-01-06 12:02:37 -05:00
Aaron Suen
e2dd2de5ba Leaf decay, woodcraft wears tools. 2019-01-05 23:11:38 -05:00
Aaron Suen
82d88b2e42 Make tree logs choppable! 2019-01-04 20:36:46 -05:00
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
674f169090 Various touch-up. 2018-11-05 00:21:02 -05: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
37c8b0865c Separate tech trees in tree mod. 2018-11-03 11:26:15 -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
15e71cfd3b Have to use hand to pack earth, code cleanup, fixes, optimization. 2018-11-02 21:20:51 -04:00
Aaron Suen
7e9fcf296d API-ify some node behavior upon registration. 2018-11-02 18:47:44 -04:00