Skip to content

Commit

Permalink
Lua AI: do not add deprecated-syntax fetchers for new aspects
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsc committed Mar 6, 2021
1 parent d9e8f69 commit 200f5dd
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/ai/lua/core.cpp
Expand Up @@ -498,22 +498,6 @@ static int cfun_ai_get_recruitment_pattern(lua_State *L)
return 1;
}

static int cfun_ai_get_retreat_enemy_weight(lua_State *L)
{
DEPRECATED_ASPECT_MESSAGE("retreat_enemy_weight");
double retreat_enemy_weight = get_readonly_context(L).get_retreat_enemy_weight();
lua_pushnumber(L, retreat_enemy_weight);
return 1;
}

static int cfun_ai_get_retreat_factor(lua_State *L)
{
DEPRECATED_ASPECT_MESSAGE("retreat_factor");
double retreat_factor = get_readonly_context(L).get_retreat_factor();
lua_pushnumber(L, retreat_factor);
return 1;
}

static int cfun_ai_get_scout_village_targeting(lua_State *L)
{
DEPRECATED_ASPECT_MESSAGE("scout_village_targeting");
Expand Down Expand Up @@ -912,8 +896,6 @@ static int impl_ai_get(lua_State* L)
{ "get_passive_leader", &cfun_ai_get_passive_leader },
{ "get_passive_leader_shares_keep", &cfun_ai_get_passive_leader_shares_keep },
{ "get_recruitment_pattern", &cfun_ai_get_recruitment_pattern },
{ "get_retreat_enemy_weight", &cfun_ai_get_retreat_enemy_weight },
{ "get_retreat_factor", &cfun_ai_get_retreat_factor },
{ "get_scout_village_targeting", &cfun_ai_get_scout_village_targeting },
{ "get_simple_targeting", &cfun_ai_get_simple_targeting },
{ "get_support_villages", &cfun_ai_get_support_villages },
Expand Down

0 comments on commit 200f5dd

Please sign in to comment.