248 Commits

Author SHA1 Message Date
Aaron Suen
d22a391055 Allow grass to grow on loose soil too. 2019-02-24 14:23:42 -05:00
Aaron Suen
905f2ade60 Update notes. 2019-02-24 14:00:10 -05:00
Aaron Suen
fb75424335 Encumbered injured players walk slower.
Encumbrance is calculated from inventory slots filled (ignoring
count within stacks), compared to health; players can freely carry
the same proportion of slots as their health.

Players who are encumbered lose up to 80% of their walking speed
(i.e. for a full hotbar and no health).

This is another disadvantage for being injured, and an incentive
for players to take care of their health.
2019-02-24 13:54:58 -05:00
Aaron Suen
a3a1f441c7 Tersify some hints. 2019-02-24 11:00:26 -05:00
Aaron Suen
6e0d5a0778 Strata overhaul
- Apply stratification last in shared mapgens, so it can see all
  already-placed ores.
- Support stratification for nodes other than plain stone.
- Register lode stone and lode ore for stratification.
2019-02-24 10:19:22 -05:00
Aaron Suen
7c18b8110d Sponge nerf.
- Spawn fewer clumps.
- Spawn larger clumps.
- Spread much slower.
2019-02-23 23:29:55 -05:00
Aaron Suen
c5e6641d39 Added emergency suicide command.
Kills the player over a short span of time.  Any movement
aborts the kill.
2019-02-23 23:29:27 -05:00
Aaron Suen
510e642a53 Remove debug code. 2019-02-23 22:50:04 -05:00
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