290 Commits

Author SHA1 Message Date
Aaron Suen
44b6a1d228 Shared mapgen API, add hard stone strata. 2019-02-23 22:48:39 -05:00
Aaron Suen
2091c6621e Nudge stack ents up to prevent z-fighting w/ bottom of shelves. 2019-02-23 21:30:35 -05:00
Aaron Suen
72c2df452b Hints about sponges. 2019-02-23 20:46:17 -05:00
Aaron Suen
7771974371 Flesh out lode and shelf hints. 2019-02-23 20:45:00 -05:00
Aaron Suen
0d44601374 Fix shelf appearance under mipmapping. 2019-02-23 20:35:22 -05:00
Aaron Suen
a364e28cd2 Make shelf selection and collision boxes consistent.
This was causing weird issues with items falling "into" a shelf
and ending up stored there, leading to a few "where did my items
go" moments.
2019-02-23 20:08:40 -05:00
Aaron Suen
e2cf72282c Disallow shelf access through top/bottom. 2019-02-23 20:06:14 -05:00
Aaron Suen
9bf273fdde Fix crash on death. 2019-02-23 18:47:11 -05:00
Aaron Suen
710f5e3d7c Make death scatter items more.
Also move death next to respawn code.
2019-02-23 17:52:23 -05:00
Aaron Suen
838e6249f5 Minor hint tweaks.
- Display numerical stats too.
- Display update check reminder when out of hints.
2019-02-23 17:28:01 -05:00
Aaron Suen
b680b69cd8 Stat improvements.
- Fix cheat stat bug.
- Hook to track crafting recipe completion.
2019-02-23 17:00:42 -05:00
Aaron Suen
e6c3be714a Fix serious regression in stone-tipping tools. 2019-02-23 13:34:41 -05:00
Aaron Suen
659f1dcf2a Penalty for death: respawn with minimum health. 2019-02-23 13:20:56 -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
480b999705 Make shelves easier to build.
- Double recipe yield
- Bash planks directly to sticks with mallet

- Remove debug code.
2019-02-23 10:39:38 -05:00
Aaron Suen
e303f100cf Shelves can no longer be nested.
- As a general rule, we're disallowing nesting of containers for
  now.  Only bare stack nodes may contain containers.
- Overhaul docs.  Ideas are getting out of hand, shoved a lot of
  stuff into the icebox for now.
2019-02-23 10:33:17 -05:00
Aaron Suen
58cd080fdf Apply big stack refactor. 2019-02-23 10:21:27 -05:00
Aaron Suen
94bd5a9cc8 Fix wield check again, make shelves flammable. 2019-02-23 10:00:31 -05:00
Aaron Suen
f893f613c3 API refinements.
- Make node match operate on only one of node or stack, depending
  on whether node defers to stack via is_stack_only.  This should
  hopefully prevent future pummel recipe issues.
- Add new core stack API.  Needs to be deployed in a lot of places.
- Start work on system for allowing flammable containers; they
  eject their potentially non-flammable contents.
2019-02-23 09:44:22 -05:00
Aaron Suen
f02de5719a Players cannot see each other in dim light.
Also, homage to Castle of the Winds.
2019-02-23 02:58:34 -05:00
Aaron Suen
b6650068a1 Trying to find a saner way to handle node stack recipes. 2019-02-23 02:29:16 -05:00
Aaron Suen
fc53bdd72e Fix recipe check mutability bugs. 2019-02-23 02:05:41 -05:00
Aaron Suen
63d587cf8b Missed files in prev commit. 2019-02-21 14:59:41 -05:00
Aaron Suen
0638e3f11f Crafting cleanup.
- Alternate shelf recipe to make it a little more intuitive.
- Label all existing recipes.
2019-02-21 14:37:22 -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
aa714cd218 Make log tracing optional, and off by default.
This can be very annoying/distracting in singleplayer.
2019-02-21 10:45:24 -05:00
Aaron Suen
4e3d359904 Limit absolute tool speed to 0.25s.
Tool speeds too high make pummeling impossible.
2019-02-21 10:24:48 -05:00
Aaron Suen
ceb95efae1 Fix itemstack repose/falling crash.
With item_eject trying to place stack nodes now instead of ents,
converting stack nodes to ents was causing an infinite loop.
Impart a tiny velocity on ents to make them ineligible for
automatic immediate stack placement.

Hacky.  Should probably have a separate API to indicate ejection
as an ent or as ent/stack or something.
2019-02-21 10:10:36 -05:00
Aaron Suen
dd9100ad1e Slow down choppy tools significantly.
Axes were way too powerful, and apparently even stone axes were
digging trees way too fast.  Make this closer to the speed of
digging stone instead of the speed of dirt.  Make higher-tier
tools more useful here.
2019-02-21 10:00:36 -05:00
Aaron Suen
52368c1d9b Fix pummel working on count>1 stacks when it shouldn't. 2019-02-21 09:52:27 -05:00
Aaron Suen
05737fcf30 Fix placement delay on crafting. 2019-02-21 09:46:26 -05:00
Aaron Suen
a2f00b3c30 Fix fire-starting wield bug. 2019-02-21 09:35:31 -05:00
Aaron Suen
0df805f647 Fix lode tool head name capitalization. 2019-02-20 01:58:14 -05:00
Aaron Suen
8559316b89 Shelf fixes.
- Remove debugging code.
- We don't really need to be able to reach through shelves, but
  we don't want to miss when trying to access them, so make
  shelf hitboxes solid for now.
2019-02-20 00:48:55 -05:00
Aaron Suen
6d2b15a81b Item storage shelving. 2019-02-20 00:40:55 -05:00
Aaron Suen
7c9c5a06f2 Lode tools are now a thing! Rejoice! 2019-02-19 23:53:40 -05:00
Aaron Suen
b2bf45cf9a Pull in limited name visibility from old sztest mods. 2019-02-19 21:09:10 -05:00
Aaron Suen
2a33e77ea3 Remove debug code. 2019-02-19 19:05:48 -05:00
Aaron Suen
b622883995 Made living sponges spread. 2019-02-19 19:02:21 -05:00
Aaron Suen
8e4c677d76 Merge branch 'master' into sponge 2019-02-19 18:25:13 -05:00
Aaron Suen
33ba42965b Planning. 2019-02-19 18:25:01 -05:00
Aaron Suen
c1f3fbb241 Simplify sun-drying. 2019-02-19 13:53:06 -05:00
Aaron Suen
294fb0285f Some initial basic sponge wetting/drying logic. 2019-02-19 00:50:59 -05:00
Aaron Suen
5f4ff881d3 Merge branch 'master' into sponge 2019-02-19 00:41:34 -05:00
Aaron Suen
d184209521 Fix item settling behavior.
The old code wasn't working in v5.0+, due to the separation of
item entity physical_state into separate moving/sliding states.
Instead, just check to see if its position has remained unchanged
for a nominal amount of time before settling.
2019-02-19 00:34:12 -05:00
Aaron Suen
c1e7a3898d Add contribution guide. 2019-02-19 00:22:50 -05:00
Aaron Suen
c0d031eb24 Create initial node defs for sponges. 2019-02-16 19:34:53 -05:00
Aaron Suen
fa3871e99c Drop slabs, increase stepheight.
Non-cubic nodes wreak havoc with falling items and stacks.  The
general need for slabs can be worked around by increasing the
player's stepheight allowing traversal of normal terrain without
jumping.  Unfortunately this will only work in 5.0+, which should
hopefully be released soon.
2019-02-15 21:24:37 -05:00
Aaron Suen
0f84b244c2 More idea work. Lists are getting long, due for a pruning soon... 2019-02-11 22:00:43 -05:00
Aaron Suen
b4eff63552 Getting some suggestions for materials to work with.
I completely forgot about dungeons, but they could be a valuable
mapgen resource, and they really do need to be fleshed out better.
2019-02-11 21:41:36 -05:00