Skip to content

Commit

Permalink
Fix external Lua CA example for new syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Mar 24, 2016
1 parent 18b1356 commit d48060b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions data/ai/lua/extCAexample.lua
Expand Up @@ -2,13 +2,13 @@

example_ca = {}

function example_ca:evaluation(ai)
function example_ca:evaluation()
wesnoth.message("External CA evaluation says hi.")

return 10000
end

function example_ca:execution(ai)
function example_ca:execution()
wesnoth.message("External CA execution attacks.")

-- Note that there is no check whether these attacks are possible.
Expand Down
2 changes: 0 additions & 2 deletions data/ai/scenarios/scenario-lua_ai.cfg
Expand Up @@ -105,8 +105,6 @@ Gs^Fp , Gs^Fp , Wwf , Wwf , Mm , Rd
name=external_CA
id=external_CA
location="ai/lua/extCAexample.lua"
eval_parms=""
exec_parms=""
[/candidate_action]
[/stage]
[/ai]
Expand Down

0 comments on commit d48060b

Please sign in to comment.