-
Notifications
You must be signed in to change notification settings - Fork 397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Temporary Run Credits #400
Conversation
This is excellent 👍. I've done some testing on my dev machine and things are working beautifully.
@mtgred may want to comment on the UI, as I believe he had a plan for how to show the run credits (in orange? I forget), but otherwise this is a great first contribution :). BTW, did you do any collaboration with @justinliew on this? He has been working on a BP system in #362. (At first I actually thought this was his contribution!) |
Awesome 👍 |
@DominicKexel, perhaps you could help @laganojunior update |
@nealterrell No, I just picked up the source code and worked on it because I was running a deck with lots of BP and got annoyed that I had to keep track of BP credits for the runner. I figured that someone else was probably working on this, and perhaps they have a better design. The UI does need work. Particularly, the run credit count isn't manually adjustable or back-trackable. E.g. if you want to redo a stimhack run and you manually adjust credits, or you manually adjust credits to pay through a pop-up window or Gagarin ability. Maybe something like "Added X run credits" and "Returned X run credits" in the chat log would help at least with the back-tracking part. @nealterrell |
Right on. I see what you mean about using the manual credit adjust -- the up/down arrows use |
Looks great. I'll sync up and use this as a basis for the recurring credits. |
Awesome 👍 |
Using Tollbooth during a run doesn't take away run credit. I think it is because Tollbooth uses @laganojunior Can you update your run credit code to also include |
This makes the lose function aware of run credits, so that credit costs use run credits first. This is intended to fix github issue mtgred#400.
I added tracking of temporary credits that are given at the beginning of the run and are returned at the end of the run. The amount of credits available on just the run (and will be returned at the end) is displayed on the credit count if applicable. I've implemented stimhack and bad publicity credits here.