Goto MAI: Set ca_score and max_score default to 300,000

This commit is contained in:
mattsc 2013-07-02 18:17:22 -07:00
parent b7fdf80ec2
commit a277f760eb
2 changed files with 3 additions and 2 deletions

View file

@ -69,7 +69,7 @@ return {
-- Now store units and locs in self.data, so that we don't need to duplicate this in the exec function
self.data.units, self.data.locs = units, locs
return cfg.ca_score or 210000
return cfg.ca_score or 300000
end
function engine:mai_goto_exec(cfg)

View file

@ -593,7 +593,8 @@ function wesnoth.wml_actions.micro_ai(cfg)
optional_keys = { "release_all_units_at_goal", "release_unit_at_goal", "unique_goals", "use_straight_line" }
CA_parms = {
{ -- Note: do not define max_score
ca_id = 'goto', eval_name = 'mai_goto_eval', exec_name = 'mai_goto_exec'
ca_id = 'goto', eval_name = 'mai_goto_eval', exec_name = 'mai_goto_exec',
max_score = cfg.ca_score or 300000
}
}