Update to poison RCA test scenario
This commit is contained in:
parent
03bac721d0
commit
587ed03445
2 changed files with 115 additions and 117 deletions
|
@ -1,16 +1,10 @@
|
|||
fai 'poisoner_eval.fai'
|
||||
|
||||
if(
|
||||
not filter(me.attacks,'att',filter(att.special,'spe',contains_string(spe,'poison'))),-1,
|
||||
target.undead != 0,-1,
|
||||
target.hitpoints < 5,-1,
|
||||
target.max_experience - target.experience <= 8,-1,
|
||||
index_of('poisoned',keys(target.states)) != -1,-1,
|
||||
index_of('regenerates',target.abilities) != -1, 1,
|
||||
find( villages, 'vill', vill = target.loc ), 1,
|
||||
target.leader, 5,
|
||||
2
|
||||
)
|
||||
|
||||
|
||||
faiend
|
||||
|
|
|
@ -142,12 +142,16 @@ Gs^Fp , Gs^Fp , Wwf , Wwf , Mm , Rd
|
|||
[ai]
|
||||
eval_list=yes
|
||||
|
||||
[register_candidate_move]
|
||||
[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_move]
|
||||
[/register_candidate_action]
|
||||
|
||||
[/ai]
|
||||
[/side]
|
||||
|
|
Loading…
Add table
Reference in a new issue