Page 1 of 1

Skip To Phase

PostPosted: 17 Apr 2012, 15:39
by friarsol
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.

Re: Skip To Phase

PostPosted: 17 Apr 2012, 20:08
by Milod
wooowww sweeeeeeeeeet friarsol thanks! i like it

Re: Skip To Phase

PostPosted: 29 Apr 2012, 02:59
by friarsol
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%.