313 Commits

Author SHA1 Message Date
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
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
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
70d9e7a320 Resolve flammable itemstack regression.
Using a separate ABM for this.  We may want the burn-up effect with
containers later, but it may have to be handled differently in
those cases as the container itself may have flammability
characteristics to take into account.

This SHOULD also resolve the problem with transient states of the
stack node (i.e. wherein it was temporarily empty) burning up,
which caused some things to burn up when they shouldn't.
Particularly egregious was the destruction of hot lode prills when
they dropped into forgefire.
2019-02-10 12:16:00 -05:00
Aaron Suen
1c8398a511 Fixed stack pummel particle regression. 2019-02-10 00:43:02 -05:00
Aaron Suen
8dac110942 Tone down particles, record last few regressions. 2019-02-10 00:34:25 -05:00
Aaron Suen
50875fc9d8 FINALLY finish converting remaining pummel stuff. 2019-02-10 00:25:57 -05:00
Aaron Suen
4b972b4d3b More recipe conversion, bugfixing. 2019-02-10 00:20:55 -05:00
Aaron Suen
a6c4ec6706 Fix crafting crash. 2019-02-09 23:36:39 -05:00
Aaron Suen
35d814fb43 Fix suspected infinite loop in nodefall. 2019-02-09 23:35:16 -05:00
Aaron Suen
1a3afc6fa9 Cleanup. 2019-02-09 23:24:01 -05:00
Aaron Suen
b02af51b20 Efficiency for heavily-used abm. 2019-02-09 23:00:38 -05:00
Aaron Suen
b5bd67d5a7 Finished pummel-craft API, started converting recipes. 2019-02-09 22:44:56 -05:00
Aaron Suen
beb36c2ee8 Merge branch 'master' into refac1 2019-02-09 14:00:18 -05:00
Aaron Suen
2d9eb0255e Typo. 2019-02-09 14:00:02 -05:00
Aaron Suen
8abaac5997 Guard against new players w/o certain stats. 2019-02-09 00:44:24 -05:00