7 Commits

Author SHA1 Message Date
Aaron Suen
99aec737d5 Dump inventory on all teleports by default
A low-level player teleportation must be explicitly
declared nodecorian via a keepinv property on
the position, or the player must be exempted via
the keepinv priv, to be allowed to teleport without
leaving the inventory behind.

This means that naive mods like /home commands
will now work correctly and teleport only the
player, and not items.
2021-03-17 08:13:36 -04:00
Aaron Suen
7fc796bd93 Hints for dropping items
These may be especially valuable because some
players may be used to dropping items ONLY using
the formspec inventory and may have forgotten that
they even have key bindings for this; the hint should
motivate them to search for a way.
2020-09-26 16:17:11 -04:00
Aaron Suen
2022371cff Finally retire old inventory rearrange logic
It seems as though the new intercept hooks are catching
everything, and since this logic was disabled hardly anyone
noticed.  The few rearrangements that were happening were
probably caused by inventory clear/restore mods unrelated to
NC operation.  This code was quite complex and removing it
will simplify the project.
2020-09-17 07:01:06 -04:00
Aaron Suen
387a72ccbc Aux+drop dumps entire inventory 2020-09-03 20:22:09 -04:00
Aaron Suen
310ce1bc6c Treat NodeCore as a unified thing.
- Collapse all nodecore "core" mods in the /mods listing, so it's
  easier to find the actual add-on mods.
- Parameterize in-game branding to make renaming derivatives just
  a little easier.
2019-09-07 09:08:57 -04:00
Aaron Suen
dca1e58a85 Yet more inventory/pickup changes.
- Intercept /give commands.
- Provide an API for giving the player an item and inserting it
  into the inventory in the right place(s).
- Change the fill order.  We try to fill the current slot first,
  the continue to the right to the end of the bar, and then
  finally work our way left to the beginning.  I think this fill
  order should be most comfortable, in terms of having items tend
  to fall close to the cursor.
2019-03-28 22:52:48 -04:00
Aaron Suen
47b4ae9bc6 Promote inventory pickup changes to a first-class feature mod.
Use interception where possible to modify destintion for items
directly instead of relying on post-hoc inventory rearrangement.

This should resolve the glitches where items appear in the wrong
place in inventory for a flash before being moved.
2019-03-27 22:10:45 -04:00