Skip To Phase
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
3 posts
• Page 1 of 1
Skip To Phase
by friarsol » 17 Apr 2012, 15:39
A few weeks ago when I had some time I coded up Skip To Phase. Right now it works about 90%. The only thing that's left to do is Passing Priority just after the button is clicked. I'm adding the patch here just in case someone else wants to play with it and see if they can get it working. If someone else doesn't get the final step figured out, I'm sure I'll figure it out, but I need to take a break with it and hoped a separate set of eyes might be able to work it out.
As currently implemented:
1. Click End Turn
2. Manually Pass Priority
3. Phases are skipped until something happens, or the turn ends
Implementation at the End
1. Click End Turn
2. (Automatically Pass Priority if Human has Priority)
3. Phases are skipped until something happens, or the turn ends
I've removed my attempts that will actually try to pass priority if it was currently mine, those used to be in PhaseHandler.autoPassTo() just before the resetInput(). From testing, it seems like the first time I attempted to auto pass priority it worked. But after that it didn't.
As currently implemented:
1. Click End Turn
2. Manually Pass Priority
3. Phases are skipped until something happens, or the turn ends
Implementation at the End
1. Click End Turn
2. (Automatically Pass Priority if Human has Priority)
3. Phases are skipped until something happens, or the turn ends
I've removed my attempts that will actually try to pass priority if it was currently mine, those used to be in PhaseHandler.autoPassTo() just before the resetInput(). From testing, it seems like the first time I attempted to auto pass priority it worked. But after that it didn't.
- Attachments
-
SkipToPhase.txt
- You may need to Rename to .patch or .diff to apply using SVN Patcher
- (8.9 KiB) Downloaded 199 times
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Skip To Phase
by friarsol » 29 Apr 2012, 02:59
I checked this in with it's current state. I still haven't quite figured out why the priority isn't going through, but I'll tweak with with it occasionally to see if I can get it 100%.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 21 guests