12 Commits

Author SHA1 Message Date
mattsc
ea915d36c2 battle_calcs.attack_rating: bug fix for when AI side has no leader
Check for AI side's leader's existence before trying to calculate
distance from leader.
2013-11-25 19:37:20 -08:00
mattsc
c6db6cd8d5 Lua AIs: Remove unnecessary arguments in call to wesnoth.put_unit() 2013-11-14 20:04:52 -08:00
mattsc
554a95749a battle_calcs.best_defense_map(): add parameter ignore_these_units
This is a table of enemy units whose ZoC is to be ignored for route
finding.  It is useful for determing where the enemy can move while
ignoring own units (enemies of the enemy) that have not moved yet.
2013-10-31 08:22:15 -07:00
mattsc
526debf3e9 battle_calcs.lua: remove some debug code 2013-10-31 08:17:47 -07:00
mattsc
019b6df9c4 Remove double spaces after periods
wmllint complains about this in WML.  This is all in Lua code, done for
consistency only.
2013-07-07 10:35:07 -07:00
mattsc
e7a71a51d7 battle_calcs library: add functions best_defense_map() and get_attack_combos_subset() 2013-05-03 07:06:22 -07:00
mattsc
5fb4dd3816 battle_calcs relative_damage_map: enemy leader needs to have unity weight 2013-05-03 07:02:23 -07:00
mattsc
7e189c1d51 battle_calcs relative_damage_map: add own and enemy damage to output 2013-05-03 07:01:21 -07:00
mattsc
122d674b9b battle_calcs library: some tweaks to attack_rating() function 2013-05-03 06:55:19 -07:00
mattsc
6b119e4039 battle_calcs library: fix formatting and indenting 2013-05-03 06:51:14 -07:00
Matthias Schoeck
93ba347695 Remove all references to Wesnoth Lua Pack dbms debug function.
They were all commented out, but better to remove them altogether.
2012-12-29 20:20:56 +00:00
Matthias Schoeck
7eb57b40dd Update AI helper library files...
...and adjust experimental multiplayer AI code accordingly
2012-12-29 00:36:54 +00:00