Marjanah not getting discount
The cost to use Marjanah is not changing after the first run of a turn.
Thanks for the report!
I think this is just a display issue, using the ability costs the correct amount
Nah, definitely costs the full 2/sub, I just came across it myself and hit "pay 10 to fully break" just to check if it was just a display bug or not. It cost me the full 10.
I think this is just a display issue, using the ability costs the correct amount
This was also my experience: the amount of credits paid was correct, but the message shown was misleading.
Also I can confirm that the match-strength-and-fully-break shortcut makes you pay it in full.
I've investigated a little bit on what's happening here, though I'm definitely no Clojure expert:
- Marjanah leverages the
:break-cost-bonusfunction, which alters the cost being paid later. - the
break-subfunction instead requires the cost upfront, so it has no knowledge of the possible discount. - because of this,
breaker-auto-pumpfunction also has no knowledge of the possible discount.
So, could Marjanah's break-sub function be refactored to look more like Odore's?
Looks like we should be using break-sub-ability-cost from game.core.cost-fns to calculate the cost, as relying strictly on :break-cost won't capture the full story, as you've noted. Thanks for doing the research!