mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-18 17:27:50 -05:00
/account/items, linked from the account page and using its sign-in, gives items to the account signed in: - clothing: the item's own colours, or four colours of your own as a picker, #RRGGBB, or AJ's numbers (palette places, or the whole item's colour id signed or unsigned), converted as you type; hex colours not in the palette become an exact custom colour - den items: the variants their art has (lib/den-variants.json, made by tools/den-variants.sh) and a whole-item tint with a strength, kept in the item's version above the variant and drawn by DenItemHelper (build 83) - a preview of each: clothing icons coloured on the page as the game colours them, den items played by Ruffle in a sandboxed frame through public/item-preview.swf (tools/preview-host) a give with a custom colour id that does not exist is refused.
13 lines
528 B
Bash
13 lines
528 B
Bash
#!/bin/sh
|
|
# rebuilds lib/den-variants.json: every den item's art fetched (into cache/
|
|
# too), decompiled by JPEXS (tools/ffdec, needs Java) and read for its
|
|
# variants. see tools/den-variants.js.
|
|
#
|
|
# tools/den-variants.sh [work folder] (default: a new temporary one)
|
|
set -e
|
|
cd "$(dirname "$(readlink -f "$0")")/.."
|
|
work=${1:-$(mktemp -d)}
|
|
node tools/den-variants.js fetch "$work"
|
|
java -jar tools/ffdec/ffdec-cli.jar -export script "$work/out" "$work/swf" > "$work/ffdec.log" 2>&1
|
|
node tools/den-variants.js index "$work"
|