Skip to content

Commit c21201b

Browse files
AmbratolmAmbratolm
authored andcommitted
Updated rpg: item prices lowered & combat rewards adjusted
1 parent c35b026 commit c21201b

File tree

3 files changed

+43
-44
lines changed

3 files changed

+43
-44
lines changed

db/attack.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,16 @@ class Attack(Model):
3636
gold_penalty: NonNegativeInt = 0
3737

3838
ENERGY_COST: ClassVar[NonNegativeInt] = 1
39-
GOLD_REWARD_BASE: ClassVar[NonNegativeInt] = 40 # Win base gold reward
39+
GOLD_REWARD_BASE: ClassVar[NonNegativeInt] = 100 # Win base gold reward
4040
GOLD_REWARD_PER_LEVEL: ClassVar[NonNegativeInt] = (
41-
8 # Extra gold per level (of loser)
41+
20 # Extra gold per level (of loser)
4242
)
4343
LEVEL_DIFF_SCALE: ClassVar[NonNegativeFloat] = 15.0 # level diff impact
4444
GOLD_REWARD_ADVANTAGE_REDUCTION: ClassVar[NonNegativeFloat] = (
45-
0.7 # Max reduction (e.g., winner gets 1.0 - 0.7 = 30% reward if much higher)
45+
0.0 # Max reduction (e.g., winner gets 1.0 - 0.0 = 100% reward if much higher)
4646
)
4747
GOLD_REWARD_UNDERDOG_BONUS: ClassVar[NonNegativeFloat] = (
48-
0.6 # Max bonus (e.g., winner gets 1.0 + 0.6 = 160% reward if much lower)
48+
1.0 # Max bonus (e.g., winner gets 1.0 + 1.0 = 200% reward if much lower)
4949
)
5050
GOLD_PENALTY_ADVANTAGE_REDUCTION: ClassVar[NonNegativeFloat] = (
5151
0.5 # Max reduction (loser pays 1.0 - 0.5 = 50% penalty % if winner much higher)
@@ -57,7 +57,7 @@ class Attack(Model):
5757
0.025 # Loser base loss: 2.5% of their current gold (slightly lowered base)
5858
)
5959
GOLD_PENALTY_MAX: ClassVar[NonNegativeInt] = (
60-
400 # Max gold loser can lose in one duel
60+
500 # Max gold loser can lose in one duel
6161
)
6262
REVIVE_COST_BASE: ClassVar[NonNegativeInt] = 75
6363
REVIVE_COST_PER_LEVEL: ClassVar[NonNegativeInt] = 15

db/data/items.toml

Lines changed: 37 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Base price per positive stat point: 500
2+
13
#----------------------------------------------------------------------------------------------------
24
# * Weapon Equippables
35
#----------------------------------------------------------------------------------------------------
@@ -13,11 +15,11 @@ alt_emoji = "🗡"
1315
icon_url = "https://cdn.discordapp.com/attachments/1348859490203734057/1350655923160354907/dagger.png?ex=67d787da&is=67d6365a&hm=582b04b4d8dce9de72c15630cd3f4e83ca35db88aa01dc688876c510fdddb7f7&"
1416
type = "equippable"
1517
attack_bonus = 1
16-
speed_bonus = 2 # Focus: Speed. Total +3 stats.
18+
speed_bonus = 2 # Focus: Speed. Total +3 positive stats.
1719
defense_bonus = 0
1820
health_max_bonus = 0
1921
energy_max_bonus = 0
20-
price = 4500 # 3 * 1500
22+
price = 1500 # 3 * 500
2123

2224
[short_sword]
2325
id = "short_sword"
@@ -28,11 +30,11 @@ alt_emoji = "⚔️"
2830
icon_url = "https://cdn.discordapp.com/attachments/1348859490203734057/1350655933486862439/short_sword.png?ex=67d787dc&is=67d6365c&hm=8b88ef796761eb5a0a5756d37250c1b26418942e4b4f1edf10e8f1b52ea6f1b9&"
2931
type = "equippable"
3032
attack_bonus = 2
31-
speed_bonus = 1 # Focus: Balanced Attack/Speed. Total +3 stats.
33+
speed_bonus = 1 # Focus: Balanced Attack/Speed. Total +3 positive stats.
3234
defense_bonus = 0
3335
health_max_bonus = 0
3436
energy_max_bonus = 0
35-
price = 4500 # 3 * 1500
37+
price = 1500 # 3 * 500
3638

3739
[sword]
3840
id = "sword"
@@ -43,11 +45,11 @@ alt_emoji = "⚔️"
4345
icon_url = "https://cdn.discordapp.com/attachments/1348859490203734057/1350655934141038616/sword.png?ex=67d787dc&is=67d6365c&hm=ca9e16a8374db65f3d940a8ae7c883eda4c1891fca47fc33c46dd0abec9b2a&"
4446
type = "equippable"
4547
attack_bonus = 3
46-
health_max_bonus = 1 # Focus: Pure Attack + some HP for sturdiness. Total +4 stats.
48+
health_max_bonus = 1 # Focus: Pure Attack + some HP for sturdiness. Total +4 positive stats.
4749
speed_bonus = 0
4850
defense_bonus = 0
4951
energy_max_bonus = 0
50-
price = 6000 # 4 * 1500
52+
price = 2000 # 4 * 500
5153

5254
[scimitar]
5355
id = "scimitar"
@@ -57,12 +59,12 @@ emoji = "<:scimitar:1350710445610242070>"
5759
alt_emoji = "⚔️"
5860
icon_url = "https://cdn.discordapp.com/attachments/1348859490203734057/1350655932568309760/scimitar.png?ex=67d787dc&is=67d6365c&hm=4159155d521e71c48f9248a36137f3898b449b61bcb4e27fb5cd7b586e3dbd73&"
5961
type = "equippable"
60-
attack_bonus = 4 # Focus: High Attack with Speed penalty. Total +4 positive, -1 negative = Net 3.
62+
attack_bonus = 4 # Focus: High Attack with Speed penalty. Total +4 positive stats.
6163
speed_bonus = -1
6264
defense_bonus = 0
6365
health_max_bonus = 0
6466
energy_max_bonus = 0
65-
price = 5500 # Priced slightly below pure 4-stat due to drawback, but higher than pure 3-stat for peak attack.
67+
price = 2000 # 4 * 500. Drawback balances the high attack.
6668

6769
[spear]
6870
id = "spear"
@@ -73,11 +75,11 @@ alt_emoji = "🔱"
7375
icon_url = "https://cdn.discordapp.com/attachments/1348859490203734057/1350655933830664202/spear.png?ex=67d787dc&is=67d6365c&hm=372e40a86edff2f172ee9e0c8942bc8d75ccbf78200c003d0aa38b2df4df1126&"
7476
type = "equippable"
7577
attack_bonus = 2
76-
defense_bonus = 1 # Focus: Balanced Attack/Defense. Total +3 stats.
78+
defense_bonus = 1 # Focus: Balanced Attack/Defense. Total +3 positive stats.
7779
speed_bonus = 0
7880
health_max_bonus = 0
7981
energy_max_bonus = 0
80-
price = 4500 # 3 * 1500
82+
price = 1500 # 3 * 500
8183

8284
[axe]
8385
id = "axe"
@@ -88,11 +90,11 @@ alt_emoji = "🪓"
8890
icon_url = "https://cdn.discordapp.com/attachments/1348859490203734057/1350655921411461210/axe.png?ex=67d787d9&is=67d63659&hm=fef92de5958e86ddc6e314e6aa1fe33e54322eb6a012a93de139ca7f73dd1a1b&"
8991
type = "equippable"
9092
attack_bonus = 4
91-
health_max_bonus = 1 # Focus: High Attack + some HP, with Defense penalty. Total +5 positive, -1 negative = Net 4.
93+
health_max_bonus = 1 # Focus: High Attack + some HP, with Defense penalty. Total +5 positive stats.
9294
defense_bonus = -1
9395
speed_bonus = 0
9496
energy_max_bonus = 0
95-
price = 6500 # High potential stats offset by drawback.
97+
price = 2500 # 5 * 500. Drawback balances the high attack/hp.
9698

9799
[mace]
98100
id = "mace"
@@ -103,11 +105,11 @@ alt_emoji = "🔨"
103105
icon_url = "https://cdn.discordapp.com/attachments/1348859490203734057/1350655931540836353/mace.png?ex=67d787dc&is=67d6365c&hm=a332201cb819a928698d991a833f7565ed76458178fd517ce212884514b425d4&"
104106
type = "equippable"
105107
attack_bonus = 2
106-
defense_bonus = 1 # Focus: Attack/Defense + Energy for sustained fighting. Total +4 stats.
107-
energy_max_bonus = 1 # Represents stamina/utility against armor
108+
defense_bonus = 1
109+
energy_max_bonus = 1 # Focus: Attack/Defense + Energy for sustained fighting. Total +4 positive stats.
108110
speed_bonus = 0
109111
health_max_bonus = 0
110-
price = 6000 # 4 * 1500
112+
price = 2000 # 4 * 500
111113

112114
[bow]
113115
id = "bow"
@@ -119,16 +121,15 @@ icon_url = "https://cdn.discordapp.com/attachments/1348859490203734057/135065592
119121
type = "equippable"
120122
attack_bonus = 2
121123
speed_bonus = 1
122-
energy_max_bonus = 1 # Focus: Attack/Speed + Energy for focus/stamina. Total +4 stats.
124+
energy_max_bonus = 1 # Focus: Attack/Speed + Energy for focus/stamina. Total +4 positive stats.
123125
defense_bonus = 0
124126
health_max_bonus = 0
125-
price = 6000 # 4 * 1500
127+
price = 2000 # 4 * 500
126128

127129
#----------------------------------------------------------------------------------------------------
128130
# * Armor Equippables
129131
#----------------------------------------------------------------------------------------------------
130132
# Armor focuses on Defense and Max Health, often with Speed trade-offs.
131-
# Target Net Stat Budget: ~3-4 for Body/Shield, ~1-2 for Helmet.
132133

133134
[shield]
134135
id = "shield"
@@ -139,11 +140,11 @@ alt_emoji = "🛡️"
139140
icon_url = "https://cdn.discordapp.com/attachments/1348859490203734057/1350655932866232360/shield.png?ex=67d787dc&is=67d6365c&hm=2c6ca7a3edd62fdbe9006320ea435f4c0d50714d1c8776565726a82d09a94b4e&"
140141
type = "equippable"
141142
defense_bonus = 3
142-
health_max_bonus = 1 # Focus: High Defense + Health, with Speed penalty. Total +4 positive, -1 negative = Net 3.
143+
health_max_bonus = 1 # Focus: High Defense + Health, with Speed penalty. Total +4 positive stats.
143144
speed_bonus = -1
144145
attack_bonus = 0
145146
energy_max_bonus = 0
146-
price = 5500 # Priced slightly below pure 4-stat due to drawback.
147+
price = 2000 # 4 * 500. Drawback balances the high defense/hp.
147148

148149
[helmet]
149150
id = "helmet"
@@ -153,27 +154,27 @@ emoji = "<:helmet:1350710433551618058>"
153154
alt_emoji = "⛑️"
154155
icon_url = "https://cdn.discordapp.com/attachments/1348859490203734057/1350655920371404911/helmet.png?ex=67d787d9&is=67d63659&hm=ccebe366e9ec93bfcc9679bc6321bd47245cdada5498e86ddc6e314e6aa1fe33e54322eb6a012a93de139ca7f73dd1a1b&"
155156
type = "equippable"
156-
defense_bonus = 1 # Focus: Simple Defense. Total +1 stat.
157+
defense_bonus = 1 # Focus: Simple Defense. Total +1 positive stat.
157158
health_max_bonus = 0
158159
speed_bonus = 0
159160
attack_bonus = 0
160161
energy_max_bonus = 0
161-
price = 1500 # 1 * 1500
162+
price = 500 # 1 * 500
162163

163-
[armor] # Renaming slightly to Plate Armor for clarity vs Chainmail
164-
id = "plate_armor" # Changed ID
164+
[armor]
165+
id = "plate_armor"
165166
name = "Plate Armor" # Changed Name
166167
description = "Heavy plate armor offering excellent health and defense, but is heavy."
167-
emoji = "<:armor:1350705245625253888>"
168+
emoji = "<:armor:1350705245625253888>"
168169
alt_emoji = "🦺"
169170
icon_url = "https://cdn.discordapp.com/attachments/1348859490203734057/1350655920962666580/armor.png?ex=67d787d9&is=67d63659&hm=80ab8ea8e8e86ddc6e096a6374839d409aeccde039cff87da7f8615ac51a3c8ccf&"
170171
type = "equippable"
171172
health_max_bonus = 2
172-
defense_bonus = 3 # Focus: High Defense/Health with Speed penalty. Total +5 positive, -1 negative = Net 4.
173+
defense_bonus = 3 # Focus: High Defense/Health with Speed penalty. Total +5 positive stats.
173174
speed_bonus = -1 # Added speed penalty for heavy plate
174175
attack_bonus = 0
175176
energy_max_bonus = 0
176-
price = 6500 # High potential stats offset by drawback.
177+
price = 2500 # 5 * 500. Drawback balances the high defense/hp.
177178

178179
[chainmail]
179180
id = "chainmail"
@@ -184,18 +185,16 @@ alt_emoji = "🧥"
184185
icon_url = "https://cdn.discordapp.com/attachments/1348859490203734057/1350655922808164352/chainmail.png?ex=67d787d9&is=67d6365c&hm=106ea326b53e1ad5d59d5b661239415ab852603489c0461fd35ec5e373648000&"
185186
type = "equippable"
186187
defense_bonus = 2
187-
speed_bonus = 1 # Focus: Balanced Defense/Speed. No health/energy focus. Total +3 stats.
188+
speed_bonus = 1 # Focus: Balanced Defense/Speed. No health/energy focus. Total +3 positive stats.
188189
health_max_bonus = 0
189190
attack_bonus = 0
190191
energy_max_bonus = 0
191-
price = 4500 # 3 * 1500 (Changed concept from heavy to more balanced/agile medium armor)
192-
192+
price = 1500 # 3 * 500
193193

194194
#----------------------------------------------------------------------------------------------------
195195
# * Footwear Equippables
196196
#----------------------------------------------------------------------------------------------------
197197
# Footwear focuses on Speed, sometimes with Defense, Health or Energy.
198-
# Target Net Stat Budget: ~1-2 points.
199198

200199
[sandals]
201200
id = "sandals"
@@ -206,11 +205,11 @@ alt_emoji = "👡"
206205
icon_url = "https://cdn.discordapp.com/attachments/1348859490203734057/1350655932253868114/sandals.png?ex=67d787dc&is=67d6365c&hm=2a86819852e1e282b35e62d142a40947e34f84db1e0960c274b9220aef7b312c&"
207206
type = "equippable"
208207
speed_bonus = 1
209-
energy_max_bonus = 1 # Focus: Speed + Energy (lightness). Total +2 stats.
208+
energy_max_bonus = 1 # Focus: Speed + Energy (lightness). Total +2 positive stats.
210209
defense_bonus = 0
211210
health_max_bonus = 0
212211
attack_bonus = 0
213-
price = 3000 # 2 * 1500
212+
price = 1000 # 2 * 500
214213

215214
[shoes]
216215
id = "shoes"
@@ -220,12 +219,12 @@ emoji = "<:shoes:1350710452228984852>"
220219
alt_emoji = "👞"
221220
icon_url = "https://cdn.discordapp.com/attachments/1348859490203734057/1350655933205839964/shoes.png?ex=67d787dc&is=67d6365c&hm=22eb643751b16521a77c1a0c3b3bb8b8805ca0bff36e4af09c2b0e341c4d629a&"
222221
type = "equippable"
223-
speed_bonus = 2 # Focus: Pure Speed. Total +2 stats.
222+
speed_bonus = 2 # Focus: Pure Speed. Total +2 positive stats.
224223
defense_bonus = 0
225224
health_max_bonus = 0
226225
attack_bonus = 0
227226
energy_max_bonus = 0
228-
price = 3000 # 2 * 1500
227+
price = 1000 # 2 * 500
229228

230229
[boots]
231230
id = "boots"
@@ -236,16 +235,16 @@ alt_emoji = "🥾"
236235
icon_url = "https://cdn.discordapp.com/attachments/1348859490203734057/1350655921793269853/boots.png?ex=67d787d9&is=67d63659&hm=0b72f2267e232100531686bc6321bd47245cdada5498e86ddc6e314e6aa1fe33e54322eb6a012a93de139ca7f73dd1a1b&"
237236
type = "equippable"
238237
defense_bonus = 1
239-
health_max_bonus = 1 # Focus: Defense + Health (sturdiness). Total +2 stats.
238+
health_max_bonus = 1 # Focus: Defense + Health (sturdiness). Total +2 positive stats.
240239
speed_bonus = 0 # Removed speed bonus to emphasize defensive nature
241240
attack_bonus = 0
242241
energy_max_bonus = 0
243-
price = 3000 # 2 * 1500
242+
price = 1000 # 2 * 500
244243

245244
#----------------------------------------------------------------------------------------------------
246245
# * Consumables
247246
#----------------------------------------------------------------------------------------------------
248-
# Consumables balanced based on restoration amount vs. price. Prices from previous step maintained.
247+
# Prices unchanged as they are balanced differently.
249248

250249
[potion]
251250
id = "potion"

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)