Lua AIs: remove commented-out debug code

(cherry-picked from commit 23f35546fc)
This commit is contained in:
mattsc 2018-09-03 14:48:10 -07:00
parent b044b289e5
commit 7e63932c8e
3 changed files with 0 additions and 9 deletions

View file

@ -1523,7 +1523,6 @@ function ai_helper.movefull_outofway_stopunit(ai, unit, x, y, cfg)
if unit_in_way and (unit_in_way ~= unit)
and ai_helper.is_visible_unit(viewing_side, unit_in_way)
then
--W.message { speaker = 'narrator', message = 'Moving out of way' }
ai_helper.move_unit_out_of_way(ai, unit_in_way, cfg)
end
end

View file

@ -688,7 +688,6 @@ return {
if recruit_data.castle.loose_gold_limit >= recruit_data.recruit.cheapest_unit_cost then
gold_limit = recruit_data.castle.loose_gold_limit
end
--print (recruit_data.castle.loose_gold_limit .. " " .. recruit_data.recruit.cheapest_unit_cost .. " " .. gold_limit)
local recruitable_units = {}

View file

@ -32,9 +32,6 @@ function ca_ogres_flee:execution()
local max_rating, best_hex, best_unit = - math.huge
for i,u in ipairs(units) do
local reach = wesnoth.find_reach(u)
--local rating_map = LS.create()
for j,r in ipairs(reach) do
local unit_in_way = wesnoth.get_unit(r[1], r[2])
@ -74,8 +71,6 @@ function ca_ogres_flee:execution()
rating = rating + own_unit_rating * own_unit_weight
--rating_map:insert(r[1], r[2], rating)
if (rating > max_rating) then
best_hex = { r[1], r[2] }
best_unit = u
@ -83,8 +78,6 @@ function ca_ogres_flee:execution()
end
end
end
--AH.put_labels(rating_map)
end
if best_hex then