
The whitespace-fixing script seems to be slightly different depending on the platform. Even though it produces no effect in the CI, it made these changes locally on my Mac. I'm committing them now so as to avoid unrelated files being changed in other pull requests.
21 lines
550 B
Lua
21 lines
550 B
Lua
--! #textdomain wesnoth
|
|
|
|
local example_ca = {}
|
|
|
|
function example_ca:evaluation()
|
|
wesnoth.interface.add_chat_message("External CA evaluation says hi.")
|
|
|
|
return 10000
|
|
end
|
|
|
|
function example_ca:execution()
|
|
wesnoth.interface.add_chat_message("External CA execution attacks.")
|
|
|
|
-- Note that there is no check whether these attacks are possible.
|
|
-- The CA will therefore be blacklisted the second time it gets called.
|
|
ai.attack(2, 12, 3, 12, 1, 1)
|
|
ai.attack(3, 13, 3, 12, 2, 1)
|
|
ai.attack(3, 11, 3, 12)
|
|
end
|
|
|
|
return example_ca
|