Added trading and quests, checkpoint push

This commit is contained in:
Joan
2026-02-08 20:18:42 +01:00
parent 8820cd897e
commit 70dc35b4b2
36 changed files with 3583 additions and 279 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 544 KiB

View File

@@ -10,13 +10,14 @@ set -e
SOURCE_DIR="."
OUTPUT_DIR="../images"
ITEM_SIZE="256x256"
PORTRAIT_SIZE="512x512"
echo "🔄 Starting image conversion..."
echo " Source: $SOURCE_DIR"
echo " Output: $OUTPUT_DIR"
echo ""
for category in items locations npcs interactables characters placeholder; do
for category in items locations npcs interactables characters placeholder static_npcs; do
src="$SOURCE_DIR/$category"
out="$OUTPUT_DIR/$category"
@@ -38,11 +39,15 @@ for category in items locations npcs interactables characters placeholder; do
continue
fi
if [[ "$category" == "items" || "$category" == "placeholder" ]]; then
if [[ "$category" == "items" || "$category" == "placeholder" || "$category" == "static_npcs" ]]; then
# Special processing for items: remove white background and resize
echo " ➜ Converting item: $filename"
tmp="/tmp/${base}_clean.png"
convert "$img" -fuzz 10% -transparent white -resize "$ITEM_SIZE" "$tmp"
if [[ "$category" == "static_npcs" ]]; then
convert "$img" -fuzz 10% -transparent white -resize "$PORTRAIT_SIZE" "$tmp"
else
convert "$img" -fuzz 10% -transparent white -resize "$ITEM_SIZE" "$tmp"
fi
cwebp "$tmp" -q 85 -o "$out_file" >/dev/null
rm "$tmp"
else

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB