cleanup of 'formula ai poisoning' ai config
This commit is contained in:
parent
7add8fe9f5
commit
0d18781e10
1 changed files with 24 additions and 19 deletions
|
@ -1,22 +1,27 @@
|
|||
#textdomain wesnoth
|
||||
[ai]
|
||||
ai_algorithm =formula_ai
|
||||
id=formula_ai_poisoning
|
||||
description=Formula AI with poisoning formula
|
||||
[stage]
|
||||
engine=cpp
|
||||
name=testing_ai_default::fallback
|
||||
fallback=formula_ai
|
||||
[/stage]
|
||||
eval_list=yes
|
||||
[register_candidate_action]
|
||||
name=poisoner
|
||||
type=attack
|
||||
[filter]
|
||||
me="filter( input, 'me', filter(me.attacks,'att',filter(att.special,'spe',contains_string(spe,'poison'))))"
|
||||
target="filter( input, 'target', target.undead = 0 and target.hitpoints > 5 and index_of('poisoned',keys(target.states)) = -1)"
|
||||
[/filter]
|
||||
evaluation="{ai/formula/poisoner_eval.fai}"
|
||||
action="{ai/formula/poisoner_attack.fai}"
|
||||
[/register_candidate_action]
|
||||
ai_algorithm = composite_ai
|
||||
id=default_ai_poisoning
|
||||
description= Default AI with poisoning formula
|
||||
[stage]
|
||||
engine=cpp
|
||||
name=testing_ai_default::candidate_action_evaluation_loop
|
||||
[candidate_action]
|
||||
engine=fai
|
||||
name=poisoner
|
||||
type=attack
|
||||
[filter]
|
||||
me="filter( input, 'me', filter(me.attacks,'att',filter(att.special,'spe',contains_string(spe,'poison'))))"
|
||||
target="filter( input, 'target', target.undead = 0 and target.hitpoints > 5 and index_of('poisoned',keys(target.states)) = -1)"
|
||||
[/filter]
|
||||
evaluation="{ai/formula/poisoner_eval.fai}"
|
||||
action="{ai/formula/poisoner_attack.fai}"
|
||||
[/candidate_action]
|
||||
[/stage]
|
||||
[stage]
|
||||
engine=cpp
|
||||
name=testing_ai_default::fallback
|
||||
fallback=formula_ai
|
||||
[/stage]
|
||||
eval_list=yes
|
||||
[/ai]
|
||||
|
|
Loading…
Add table
Reference in a new issue