Some of these are copies from the respective origins from mtg,
to make sure we have headers everywhere listing the proper code.
I've relicensed spectator_mode from WT*PL to LGPL-2.1. No other
licenses were changed.
We also need to set the current box meta in memory to 0 num_items,
because otherwise it retains the old (non-0) value, and re-saves that
value when the box is saved.
Allows players to fill the bottom of their box with an arbitrary
fill stack. The box is filled bottom-to-top, and can have holes.
Stack size determines the thickness of the layers. The box can't
be overfilled. Uses vmanip to fill, so it's very fast. Extra input
checking is done to assure user has the correct privs and token to
perform the action, as it is destructive.
This is strictly secured. Admins can wipe user boxes. A token
is generated and the user has to type the token to confirm they
want to erase it. Erasing is logged on the server. All data is
validated before being accepted.
Erasing is done with a single vmanip. Nodes with meta are removed
separately, to assure all node meta is gone afterwards.
If a box is started with a "tag", then the music track code will
now continuously play tag_add songs (a table) after as long as the
player is in the box.
I've added a `create` tag as well so we can have music while editing
boxes.
Defaults to one song every 7 minutes.
Male, female, and unknown gender. Using appropriate names assuming
that "Jesse" can both be boy or girl names.
Uses sfinv. Always available to the player.
This adds 3 menus for the inventory:
- lobby: pretty much empty for now.
- play: shows /leave button when playing in a box.
- edit: shows /save and /stopedit buttons while editing.