wesnoth/data/ai/lua/debug.lua
Celtic Minstrel 759b040069 fix whitespace
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.
2022-02-06 00:05:09 -05:00

36 lines
681 B
Lua

--! #textdomain wesnoth
return {
init = function(ai)
if (not wesnoth.game_config.debug) then
wesnoth.interface.add_chat_message("LuaAI Error", "The LuaAI debug library is only available in debug mode")
return
end
ai.debug = {}
function ai.debug.get_dst_src()
ai.recalculate_move_maps()
return ai.get_dst_src()
end
function ai.debug.get_src_dst()
ai.recalculate_move_maps()
return ai.get_src_dst()
end
function ai.debug.get_enemy_dst_src()
ai.recalculate_enemy_move_maps()
return ai.get_enemy_dst_src()
end
function ai.debug.get_enemy_src_dst()
ai.recalculate_enemy_move_maps()
return ai.get_enemy_src_dst()
end
end
}