Update the animals Micro-AI demo with boars and piglets

This adjusts to the change in e7b5996e98.

The micro ai itself is unchanged, it's still controlled by `tusker_type` and
`tusklet_type`, it simply needed the new unit ids to be used in this scenario.
This commit is contained in:
Steve Cotton 2021-04-04 09:15:00 +02:00 committed by Steve Cotton
parent 942743eb78
commit de3e798e72

View file

@ -11,9 +11,9 @@
#define ANIMAL_AI_DESCRIPTIONS2
_"Each <u>Deer (replaced by Vampire Bats)</u> wanders randomly on forest tiles, except when enemies get in its (the deer's) range, in which case it flees to the farthest point it can reach.
<u>Tuskers</u> exhibit the same behavior as deer, except when an enemy is next to one of the tusklets. This enemy will then experience the full wrath of an irate boar.
<u>Tuskers (Woodland Boars)</u> exhibit the same behavior as deer, except when an enemy is next to one of the tusklets. This enemy will then experience the full wrath of an irate boar.
<u>Tusklets</u> blindly follow the closest adult tusker, except when there is no tusker left, in which case they behave the same as deer.
<u>Tusklets (Piglets)</u> blindly follow the closest adult tusker, except when there is no tusker left, in which case they behave the same as deer.
<u>Rabbits (replaced by Rats)</u> also wander randomly, but in addition disappear into their holes (replaced by straw bales; if any are within reach) when enemies are close. They reappear out of their holes at the beginning of the turn, if it is safe.
@ -151,10 +151,10 @@
{VARIABLE scenario_name animals}
{SCATTER_UNITS 3 "Vampire Bat" 1 (x,y,terrain=6-99,12-99,G*^F*) (side,random_traits=2,no)}
{NOTRAIT_UNIT 2 "Gorer" 6 20}
{NOTRAIT_UNIT 2 "Gorer" 7 21}
{NOTRAIT_UNIT 2 "Tusklet" 7 20}
{NOTRAIT_UNIT 2 "Tusklet" 8 21}
{NOTRAIT_UNIT 2 "Woodland Boar" 6 20}
{NOTRAIT_UNIT 2 "Woodland Boar" 7 21}
{NOTRAIT_UNIT 2 "Piglet" 7 20}
{NOTRAIT_UNIT 2 "Piglet" 8 21}
# Do this separately, so that there will definitely be two
{SCATTER_UNITS 1 "Cave Bear" 1 (x,y,terrain=1-10,1-11,G*) (side,random_traits=3,no)}
@ -241,8 +241,8 @@
deer_type=Vampire Bat
rabbit_type=Giant Rat
tusker_type=Gorer
tusklet_type=Tusklet
tusker_type=Woodland Boar
tusklet_type=Piglet
[filter_location]
terrain=*^F*
[/filter_location]
@ -414,12 +414,12 @@ Also note: The Animal AIs are coded as Micro AIs. A Micro AI can be added and ad
[/objectives]
[/event]
# After first Gorer attack on wolves, wolves do not attack those any more
# After first boar attack on wolves, wolves do not attack those any more
[event]
name=attack end
[filter]
side=2
type=Gorer
type=Woodland Boar
[/filter]
[filter_second]
side=6
@ -445,7 +445,7 @@ Translation: Those boars are mean! We better stay away from them and their youn
[filter_second]
type=Vampire Bat
[/filter_second]
avoid_type=Yeti,Giant Spider,Cave Bear,Footpad,Gorer,Tusklet
avoid_type=Yeti,Giant Spider,Cave Bear,Footpad,Woodland Boar,Piglet
[/micro_ai]
[/event]
@ -469,8 +469,8 @@ Translation: Those boars are mean! We better stay away from them and their youn
#enddef
{NEW_UNIT_SIDE_TURN 2 "Vampire Bat" "0-2" 18 33}
{NEW_UNIT_SIDE_TURN 2 Gorer "0-1" 1 20}
{NEW_UNIT_SIDE_TURN 2 Tusklet "0-1" 1 21}
{NEW_UNIT_SIDE_TURN 2 "Woodland Boar" "0-1" 1 20}
{NEW_UNIT_SIDE_TURN 2 Piglet "0-1" 1 21}
{NEW_UNIT_SIDE_TURN 3 "Cave Bear" "0-1" 1 1}
{NEW_UNIT_SIDE_TURN 4 "Giant Spider" "0-1" 57 1}
{NEW_UNIT_SIDE_TURN 5 Yeti 0 15 1}