SotBE: remove macros to force attacks on high-XP enemies

This is not needed any more with the new high XX attacks candidate
action.
This commit is contained in:
mattsc 2016-09-03 19:28:04 -07:00
parent f76e2d0c59
commit 8e50c4ee06
3 changed files with 0 additions and 48 deletions

View file

@ -75,8 +75,6 @@
[/side]
{STARTING_VILLAGES 2 10}
{AI_FORCE_ATTACK_HIGH_XP_UNITS_SETUP}
{AI_FORCE_ATTACK_HIGH_XP_UNITS 2}
[side]
type=Orcish Slayer
@ -107,7 +105,6 @@
[/side]
{STARTING_VILLAGES 4 10}
{AI_FORCE_ATTACK_HIGH_XP_UNITS 4}
[side]
type=Elvish Marshal
@ -134,7 +131,6 @@
[/side]
{STARTING_VILLAGES 5 6}
{AI_FORCE_ATTACK_HIGH_XP_UNITS 5}
[side]
type=Elvish Marshal
@ -151,7 +147,6 @@
[/side]
{STARTING_VILLAGES 6 8}
{AI_FORCE_ATTACK_HIGH_XP_UNITS 6}
{SOTBE_TRACK {JOURNEY_04_NEW} }

View file

@ -70,8 +70,6 @@
[/side]
{STARTING_VILLAGES 2 28}
{AI_FORCE_ATTACK_HIGH_XP_UNITS_SETUP}
{AI_FORCE_ATTACK_HIGH_XP_UNITS 2}
[story]
[part]

View file

@ -199,44 +199,3 @@
[/unstore_unit]
[/event]
#enddef
#define AI_FORCE_ATTACK_HIGH_XP_UNITS_SETUP
# Function needed for Micro AI which forces attacks on units 1 XP from leveling
# Goes directly into scenario toplevel, but only once per scenario
[event]
name=preload
first_time_only=no
[lua]
code=<<
function close_to_advancing(unit)
if (unit.experience >= unit.max_experience-1) then
return true
else
return false
end
end
>>
[/lua]
[/event]
#enddef
#define AI_FORCE_ATTACK_HIGH_XP_UNITS SIDE
# Micro AI which forces attacks on units 1 XP from leveling
# Goes directly into scenario toplevel, one macro per side
[event]
name=prestart
[micro_ai]
side={SIDE}
ai_type=simple_attack
action=add
ca_score=100001
[filter]
canrecruit=no
[/filter]
[filter_second]
lua_function = "close_to_advancing"
[/filter_second]
[/micro_ai]
[/event]
#enddef