Skip to content

Commit 77f6295

Browse files
AmbratolmAmbratolm
Ambratolm
authored and
Ambratolm
committed
Fixed item icons (hopefully)🙂...hlA:)
1 parent a3dd0bf commit 77f6295

File tree

4 files changed

+41
-10
lines changed

4 files changed

+41
-10
lines changed

.github/workflows/deploy.yml

+26-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,32 @@ jobs:
2222
key: ${{ secrets.EC2_SSH_KEY }}
2323
command_timeout: "20m"
2424
script: |
25-
cd /home/ubuntu/ACT/
26-
git fetch fork ft-rework
27-
git reset --hard fork/ft-rework
25+
if [ ! -d "/home/ubuntu/ACT/" ]; then
26+
echo "Directory /home/ubuntu/ACT/ does not exist. Creating and cloning..."
27+
mkdir -p /home/ubuntu/ACT/
28+
cd /home/ubuntu/ACT/
29+
git clone --depth 1 https://github.com/simple-works/ACT.git .
30+
git checkout ft-rework
31+
else
32+
echo "Directory /home/ubuntu/ACT/ exists. Fetching and resetting..."
33+
cd /home/ubuntu/ACT/
34+
if [ ! -d ".git" ]; then
35+
echo "No git repo found, Re-cloning..."
36+
rm -rf *
37+
git clone --depth 1 https://github.com/simple-works/ACT.git .
38+
git checkout ft-rework
39+
else
40+
git fetch origin ft-rework
41+
git reset --hard origin/ft-rework
42+
fi
43+
fi
2844
sudo systemctl restart act-app.service
2945
sleep 3
3046
sudo systemctl status act-app.service --no-pager
47+
# script: |
48+
# cd /home/ubuntu/ACT/
49+
# git fetch fork ft-rework
50+
# git reset --hard fork/ft-rework
51+
# sudo systemctl restart act-app.service
52+
# sleep 3
53+
# sudo systemctl status act-app.service --no-pager

db/Item.py db/item.py

+15-7
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ class ItemStack(Model):
5353
# * Items
5454
# ----------------------------------------------------------------------------------------------------
5555
ITEMS = [
56-
# Weapons
56+
# ----------------------------------------------------------------------------------------------------
57+
# * Weapon Equippables
58+
# ----------------------------------------------------------------------------------------------------
5759
Item(
5860
id="dagger",
5961
name="Dagger",
@@ -150,7 +152,9 @@ class ItemStack(Model):
150152
speed_bonus=1,
151153
price=35000,
152154
),
153-
# Armor
155+
# ----------------------------------------------------------------------------------------------------
156+
# * Armor Equippables
157+
# ----------------------------------------------------------------------------------------------------
154158
Item(
155159
id="shield",
156160
name="Shield",
@@ -198,7 +202,9 @@ class ItemStack(Model):
198202
speed_bonus=-1,
199203
price=45000,
200204
),
201-
# Footwear
205+
# ----------------------------------------------------------------------------------------------------
206+
# * Footwear Equippables
207+
# ----------------------------------------------------------------------------------------------------
202208
Item(
203209
id="sandals",
204210
name="Sandals",
@@ -233,7 +239,9 @@ class ItemStack(Model):
233239
defense_bonus=1,
234240
price=30000,
235241
),
236-
# Consumables
242+
# ----------------------------------------------------------------------------------------------------
243+
# * Consumables
244+
# ----------------------------------------------------------------------------------------------------
237245
Item(
238246
id="potion",
239247
name="Potion",
@@ -260,12 +268,12 @@ class ItemStack(Model):
260268
id="cookie",
261269
name="Cookie",
262270
description="A delicious cookie that restores a small amount of health and energy.",
263-
emoji="",
271+
emoji="<:cookie:1351081122267660349>",
264272
alt_emoji="🍪",
265-
icon_url="",
273+
icon_url="https://cdn.discordapp.com/attachments/1348859490203734057/1351081403634417695/cookie.png?ex=67d9141c&is=67d7c29c&hm=4ae302921dc66a87b29814141acb8ab666386ac15d9167be43926efc8d5d053d&",
266274
type=ItemType.CONSUMABLE,
267275
health_bonus=1,
268276
energy_bonus=1,
269-
price=20,
277+
price=50,
270278
),
271279
]

z_assets/items/128x128/cookie.png

10.8 KB
Loading

z_assets/items/cookie.png

475 KB
Loading

0 commit comments

Comments
 (0)