Ref: PR #190
Description
After adding an enhancement to a playing card, the modifier.enhancement field in the gamestate response contains the localized text from card.ability.effect (e.g. "BONUS") instead of a stable identifier. This breaks any automation that depends on reading the enhancement type, especially in non-English locales.
Steps to Reproduce
- Start a run
- Add a playing card with an enhancement:
add({"key": "H_A", "enhancement": "BONUS"})
- Inspect the gamestate response
Expected Behavior
modifier.enhancement should contain a stable, locale-independent key (e.g. "m_bonus").
Actual Behavior
modifier.enhancement contains "BONUS" — derived from the English string "Bonus Card" via :gsub(" Card", ""). This breaks in other languages.
Environment
- OS: macOS
- Lovely version: 0.8.0
- SMODS version: v1.0.0~BETA-1221a
- BalatroBot commit: 084044e
Files
Ref: PR #190
Description
After adding an enhancement to a playing card, the
modifier.enhancementfield in the gamestate response contains the localized text fromcard.ability.effect(e.g."BONUS") instead of a stable identifier. This breaks any automation that depends on reading the enhancement type, especially in non-English locales.Steps to Reproduce
add({"key": "H_A", "enhancement": "BONUS"})Expected Behavior
modifier.enhancementshould contain a stable, locale-independent key (e.g."m_bonus").Actual Behavior
modifier.enhancementcontains"BONUS"— derived from the English string"Bonus Card"via:gsub(" Card", ""). This breaks in other languages.Environment
Files