You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
less draconian card update function [bounty: 20 XTR] #1996
In the game's dash, can't see abilities of Kraken unit for example, because some energy values haven't been defined.
The function for updating that stuff should be way more lose and just skip missing stuff or have a predefined value for that.
That way, it will get easier to work on additional unit sets pretty soon, being able to constantly check out the progress.
The issue was that the card update function checked costs !== undefined but then accessed costs.energy directly without verifying the energy property was defined. For units like Kraken whose abilities don't define energy costs, this caused problems.
The fix uses optional chaining: typeof costs?.energy === 'number' to safely skip displaying cost info when it's not defined.
Claiming this one: making the card update skip missing costs instead of reading costs.energy straight off. Wallet (MintMe/XTR): 0x9f135aeB40e7B26a72AA730CF6eBb241C6b8813A
Activity
[-]less draconian card update function[/-][+]less draconian card update function [bounty: 20 XTR][/+]sungdark commentedon Mar 26, 2026
我来认领
收款地址:eB51DWp1uECrLZRLsE2cnyZUzfRWvzUzaJzkatTpQV9
fix: make card ability update function more lenient (closes FreezingM…
zhaog100 commentedon Mar 26, 2026
/attempt
roxonn-contribution-rewards commentedon Mar 26, 2026
👤 @zhaog100 is now working on this issue!
Started: Thu, 26 Mar 2026 23:30:16 GMT
Next steps:
fixes #1996in PR description/bounty <amount> <currency>Other contributors: Please coordinate in comments or work on different issues.
Powered by Roxonn
fix: make card update function less draconian when ability costs are …
sungdark commentedon Mar 27, 2026
我来认领!
收款地址:eB51DWp1uECrLZRLsE2cnyZUzfRWvzUzaJzkatTpQV9
I've implemented a fix in PR #2916.
The issue was that the card update function checked
costs !== undefinedbut then accessedcosts.energydirectly without verifying the energy property was defined. For units like Kraken whose abilities don't define energy costs, this caused problems.The fix uses optional chaining:
typeof costs?.energy === 'number'to safely skip displaying cost info when it's not defined.fix(ui): make card update function less draconian
fix(ui): less draconian card update
fix(ui): type incomplete ability_info fallback for dash cards (Freezi…
domfelipe commentedon Oct 30, 2026
Claiming this one: making the card update skip missing costs instead of reading
costs.energystraight off. Wallet (MintMe/XTR):0x9f135aeB40e7B26a72AA730CF6eBb241C6b8813A