magowiz / Castle-Age-Autoplayer

Auto player for Castle Age game on Facebook.
http://caaplayer.freeforums.org
20 stars 30 forks source link

Festival Duels, Battle Rewrite, General Reset Build #219

Closed Artifice closed 9 years ago

Artifice commented 9 years ago

Battle Full re-write of battle routines. Including: Add Festival Duel Champion battles Unified common functions that handle all battle-type stuff for battle, conquest, festival duel, and guild battles Automatic recon at all times. CAAP records all targets it sees on the battle pages and keeps a list of the best 250 targets Improve target selection, based on chance to win by level/army of opponent * number of points for winning Target rank updating based on points received Improve chaining. CAAP remembers the last target and will go back to finish chaining them even if interrupted Simplify config menu -- Raid stuff hidden and moved under Raid section only to appear if selected. Level filters for targets removed, since CAAP will automatically pick the best target by level Separate Wait for Monster into check box to allow Max Stamina, Between X Stamina, settings otherwise Add ability to do relative or absolute rank selection. For example, your rank +3 ranks or over rank 19, regardless of your rank Convert to next generation Navigate3 navigation Net reduction of about 1000 lines of code, even after increased Festival Duel functionality Probably break Raid and userId list functionality. Will have to check those out.

Generals Add general quick switch for all pages Enable loadouts reset rebuild -- I said I wasn't going to do this, since it's CA's bug, but it's taken too long to fix. Of course, now that I've gone to the trouble of coding a fix, they'll probably fix tomorrow. ;) Not 100% sure this works yet. Hard to test without a reset. General level up detection -- CAAP notices when the general level up pop-up appears and levels up the general Under level general order changed to default to do lowest level first. Add check box to config menu to do highest under level first instead.

Conquest Battle All battle improvements above apply Add level selection to go for 300+, 600+, or 900+ for better Conqueror points Burn tokens when about to do a Conquest level up to get the token refill

Monster Finder Fix for blank lines Fix for [0] conditions

GB Fix for continually trying to rejoin battle that ended early Fix for select by FB ID conditions

LoE/LoM Fix check for LoM/LoE defend actions Add check for low health, and stop LoM defend when health too low

Monster Fix for monsters joined with zero damage (joined a monster with zero health or not enough stamina) not registering as joined Fix dashboard display of title with stamina/energy use for monsters when using user-set achievement

Other Add read for Festival Duel Champion rank to keep Change level up logic to find biggest monster hit or current quest, use all stamina, use all energy, then do the big hit Remove some page reviews where the information is read elsewhere, such as Oracle for FP or Battle Rank page for rank which is on Keep Expand logged out page check to include pages without the splash page, so hypervisor can log in account Add bqh value (CA method for prevention of stale link use) to navigate3 navigation Add log suppression option for record validation Add bulk regex mismatch log suppression option Add "blank" option for google sheet configurations Add reboot if FB ID not loaded correctly. This happens on FB sometimes and will cause CAAP to erase all your monsters because it doesn't see your FB ID in the damage table.