It is currently 12 Sep 2025, 04:05
   
Text Size

Skip To Phase

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Skip To Phase

Postby 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.
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

Postby Milod » 17 Apr 2012, 20:08

wooowww sweeeeeeeeeet friarsol thanks! i like it
Milod
 
Posts: 360
Joined: 20 Jul 2011, 08:57
Has thanked: 4 times
Been thanked: 5 times

Re: Skip To Phase

Postby 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


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 28 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 28 users online :: 0 registered, 0 hidden and 28 guests (based on users active over the past 10 minutes)
Most users ever online was 7967 on 09 Sep 2025, 23:08

Users browsing this forum: No registered users and 28 guests

Login Form