Added trading and quests, checkpoint push
This commit is contained in:
BIN
images-source/items/water_bottle.png
Normal file
BIN
images-source/items/water_bottle.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 544 KiB |
@@ -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
|
||||
|
||||
BIN
images-source/static_npcs/trader_joe.png
Normal file
BIN
images-source/static_npcs/trader_joe.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.0 MiB |
Reference in New Issue
Block a user