17 Commits

Author SHA1 Message Date
Aaron Suen
fcb8463953 Stone-tipped tools.
- Add a bit of stone to the tip of a wooden tool to harden it.
- Stone tools wear back down to their wooden originals.
- Stone tools dig faster, but wear quickly, so you need to pay
  attention to wear levels and carry spare stone tips.

Also:
- Nerfed mining speeds again, but made higher-tier tools much
  faster relative to lower.
- Nerfed tool durability as well.

Also:
- Standardized item ejection logic.
2019-01-25 09:26:15 -05:00
Aaron Suen
4bf1f7ae85 Remove the cheat tool again. 2019-01-25 01:17:08 -05:00
Aaron Suen
5fe1fe0c29 Fix crash on log splitting. 2019-01-25 00:27:49 -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
e3beb7d54b Finally add a "cheat" tool.
Got tired of not being able to dig through stuff when I'm trying
to debug something.
2019-01-23 22:46:17 -05:00
Aaron Suen
714e2d40ac Add cobble and loose cobble for pick usage.
Loose cobble now requires a mallet to repack into cobble.
2019-01-06 17:09:34 -05:00
Aaron Suen
90c7d2daaf Clean up crack texture, refac tool crafting, dig/punch facing. 2018-11-03 17:40:04 -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
15e71cfd3b Have to use hand to pack earth, code cleanup, fixes, optimization. 2018-11-02 21:20:51 -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
92344e871f Can now cut down leaves. 2018-11-02 00:50:34 -04:00
Aaron Suen
05f8ae46a8 Smooth up item grid stacking further. 2018-10-30 19:54:28 -04:00
Aaron Suen
6b9e083776 Got stack node working more-or-less smoohly. 2018-10-30 11:12:36 -04:00
Aaron Suen
7f426f5200 Attempt to fix some mapgen issues. 2018-10-30 10:18:38 -04:00
Aaron Suen
7fb3f1be0f More hud stuff, limit inventory. 2018-10-29 23:43:34 -04:00
Aaron Suen
c2992ad3e0 Setup a few basic mods for terrain and some basic UI. 2018-10-29 22:37:57 -04:00