Poisoning formula improvement:
...it it better to poison regenerating/in_village unit than to not poison them.
This commit is contained in:
parent
21e3e164a5
commit
08a6860c95
2 changed files with 5 additions and 5 deletions
|
@ -3,10 +3,10 @@ ai_algorithm =formula_ai
|
|||
[ai]
|
||||
eval_list=yes
|
||||
|
||||
[register_candidate_move]
|
||||
[register_candidate_action]
|
||||
name=poisoner
|
||||
type=attack
|
||||
evaluation="{ai/formula/poisoner_eval.fai}"
|
||||
action="{ai/formula/poisoner_attack.fai}"
|
||||
[/register_candidate_move]
|
||||
[/register_candidate_action]
|
||||
[/ai]
|
||||
|
|
|
@ -5,11 +5,11 @@ if(
|
|||
target.undead != 0,-1,
|
||||
target.hitpoints < 5,-1,
|
||||
target.max_experience - target.experience <= 8,-1,
|
||||
index_of('regenerates',target.abilities) != -1,-1,
|
||||
index_of('poisoned',keys(target.states)) != -1,-1,
|
||||
find( villages, 'vill', vill = target.loc ), -1,
|
||||
index_of('regenerates',target.abilities) != -1, 1,
|
||||
find( villages, 'vill', vill = target.loc ), 1,
|
||||
target.leader, 5,
|
||||
1
|
||||
2
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue