magowiz/Castle-Age-Autoplayer — pull request #182 by Artifice (2014-12-16 05:47:19+00:00)
Title: Auto-join and Heal my damage

Monster
Monsters can now be auto-joined. Details on the info link next to the
Monster Finder.
Added a new option for fortifying that will only heal the damage you
cause. A maximum percentage amount of the stamina spent is set and after
attacking, CAAP will heal until the Fortification percent is greater
than when you started or until the percentage of stamina is reached. For
example, if set to the default of 20%, and CAAP started hitting when the
monster was at 95% health and used 200 stamina, CAAP would heal until
the health was back above 95% or until it had used 200 * 20% = 40
energy, whichever came first. This healing will ignore other energy
usage limitations. Set to 0% to disable. If not disabled, then stamina
that can be spent attacking monsters will be limited by the amount of
energy you have available to heal.
Quests now has a new choice for when to quest, called when "Not Covering
My Damage." This will hold in reserve the amount of energy you need to
cover your current stamina, and heal the rest. For example, if you have
300 stamina and set reserves to 20%, it would save 60 energy, and spent
any energy over that on quests.
Fix several issues with attacking and fortifying monsters
Remove the delete all monster records CAAP did every time you levelled
up
Remove Power Fortify Max option. CAAP will fortify for the most possible
when levelling up. Otherwise, it will use the smallest fortify.
Correct siege phase for old style LoM monsters
Tweak for Dashboard refresh. Hopefully the dashboard will refresh faster
for monsters
Improve general detection for monsters to decide if using a multiplier
general like Maalvus

GB
Improve collecting and entering battles
Reduce guild battle checking when using tokens "over" or stunned. CAAP
will burn at least two tokens after it does a tower review.
Fix for starting classic guild battles
Fix data structure for GB, so the records are not nestled one layer down
below a "data" object
Reduce limitations of what can be done when CAAP is pausing for a class
or timed loadout

Other
Added a new function to clean records, such as monster.records or
general.records, which will add any blank fields from the template and
notice any fields which are not in the template, and inform in the logs.
This reduces the need for deleting records to fill in missing fields or
add lots of error checking into the code because it's not sure if a
field will be present or not.
Improve code speed for building general lists