Skip to content

Commit 7b2fab5

Browse files
committed
feat: use cards descriptions instead of hard-coded strings
Closes #18
1 parent 2f62dd7 commit 7b2fab5

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/balatrollm/strategies/default/GAMESTATE.md.jinja

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
The current Jokers count is {{ G.jokers.config.card_count }}/{{ G.jokers.config.card_limit }}.
2323
{% for j in G.jokers.cards -%}
2424
{% if j.facing == "front" %}
25-
- {{ loop.index0 }}: {{ j.label }} ({{ constants.jokers[j.config.center_key] }})
25+
- {{ loop.index0 }}: {{ j.label }} ({{ j.description }})
2626
- **Sell value**: {{ j.sell_cost }}
2727
{%- if j.edition %}
2828
- **{{ j.edition.type|title }} Edition**: {{ constants.editions[j.edition.key] }}
@@ -40,7 +40,7 @@ The current Jokers count is {{ G.jokers.config.card_count }}/{{ G.jokers.config.
4040
The current Consumables count is {{ G.consumables.config.card_count }}/{{ G.consumables.config.card_limit }}.
4141
{% for c in G.consumables.cards -%}
4242
{% if c.facing == "front" %}
43-
- {{ loop.index0 }}: {{ c.label }} ({{ constants.consumables[c.config.center_key] }})
43+
- {{ loop.index0 }}: {{ c.label }} ({{ c.description }})
4444
- **Sell value**: {{ c.sell_cost }}
4545
{%- if c.debuff %}
4646
- **Debuff**: this consumable is debuffed so its effect is disabled
@@ -57,7 +57,7 @@ Here is the list of vouchers redeemed during the run:
5757

5858
{% for v, redeemed in G.game.used_vouchers.items() -%}
5959
{% if redeemed -%}
60-
- {{ v }}: {{ constants.vouchers[v] }}
60+
- {{ v }}: {{ v.description }}
6161
{% endif -%}
6262
{% endfor -%}
6363
{% endif -%}
@@ -118,7 +118,7 @@ Here are the available cards in the shop:
118118
{% for card in G.shop_jokers.cards -%}
119119
{% if card.facing == "front" %}
120120
{%- if card.ability.set == "Joker" %}
121-
- {{ loop.index0 }}: {{ card.label }} ({{ constants.jokers[card.config.center_key] }})
121+
- {{ loop.index0 }}: {{ card.label }} ({{ card.description }})
122122
- **Set**: {{ card.ability.set }}
123123
- **Cost**: ${{ card.cost }}
124124
- **Sell value**: ${{ card.sell_cost }}
@@ -129,7 +129,7 @@ Here are the available cards in the shop:
129129
- **Debuff**: this card is debuffed and will not be counted in scoring
130130
{%- endif %}
131131
{%- elif card.ability.set in ["Tarot", "Planet", "Spectral"] %}
132-
- {{ loop.index0 }}: {{ card.label }} ({{ constants.consumables[card.config.center_key] }})
132+
- {{ loop.index0 }}: {{ card.label }} ({{ card.description }})
133133
- **Set**: {{ card.ability.set }}
134134
- **Cost**: ${{ card.cost }}
135135
- **Sell value**: ${{ card.sell_cost }}
@@ -184,7 +184,7 @@ The cost of the reroll is ${{ G.game.current_round.reroll_cost }}.
184184
Here are the vouchers that can be redeemed:
185185
{% for voucher in G.shop_vouchers.cards -%}
186186
{%- if voucher.facing == "front" %}
187-
- {{ loop.index0 }}: {{ voucher.label }} ({{ constants.vouchers[voucher.config.center_key] }})
187+
- {{ loop.index0 }}: {{ voucher.label }} ({{ voucher.description }})
188188
- **Cost**: ${{ voucher.cost }}
189189
- **Sell value**: ${{ voucher.sell_cost }}
190190
{%- else %}

0 commit comments

Comments
 (0)