diff options
-rw-r--r-- | rules.js | 28 |
1 files changed, 6 insertions, 22 deletions
@@ -1109,8 +1109,6 @@ var supply_defender, supply_defender_sides, supply_friendly, supply_enemy, suppl var supply_visited = new Array(hexcount).fill(0) var supply_src = new Array(hexcount).fill(0) -var trace_total - function is_supply_line_blocked(here, next, side) { // impassable hexside if (side_limit[side] === 0) @@ -1142,8 +1140,6 @@ function is_supply_line_blocked(here, next, side) { } function trace_supply_highway(here) { - trace_total++ - if (supply_src[here]) return true @@ -1189,8 +1185,6 @@ function trace_supply_highway(here) { } function trace_supply_chain(here, n, range) { - trace_total++ - if (supply_src[here]) return true @@ -1265,7 +1259,6 @@ function trace_supply_network(start) { supply_src[start] = 1 supply_net[start] = 1 - trace_total = 0 for (let x of search_order) { if (supply_friendly[x] > 0 && x !== start) { if (supply_friendly[x] > 1 && supply_net[x]) @@ -1273,8 +1266,6 @@ function trace_supply_network(start) { trace_supply_chain(x, 0, 3) } } - - console.log("SUPPLY VISITS", trace_total) } function trace_fortress_network(fortress, ss) { @@ -1289,7 +1280,6 @@ function trace_fortress_network(fortress, ss) { supply_src[fortress] = 1 supply_net[fortress] = 1 - trace_total = 0 for (let u = 0; u < unit_count; ++u) { if (unit_supply(u) === ss) { let x = unit_hex(u) @@ -1300,8 +1290,6 @@ function trace_fortress_network(fortress, ss) { } } } - - console.log("FORTRESS SUPPLY VISITS", trace_total) } function init_trace_supply(net, line, friendly) { @@ -2051,7 +2039,7 @@ function list_valid_withdrawal_regroup_command_points() { } } - console.log("WITHDRAW REGROUP CANDIDATES", always, test) + // console.log("WITHDRAW REGROUP CANDIDATES", always, test) if (is_axis_player()) maybe = list_withdrawal_permutations(EL_AGHEILA, test) @@ -2103,7 +2091,7 @@ function list_withdrawal_permutations(src, maybe) { if (maybe.length < 2) return {} - console.log("LIST WITHDRAWAL REGROUPS", maybe) + // console.log("LIST WITHDRAWAL REGROUPS", maybe) // List all possible command points with more than one 'maybe' hex let cmd_maybe = {} @@ -2183,7 +2171,7 @@ function list_withdrawal_permutations(src, maybe) { } } - console.log("MAYBE", result) + // console.log("MAYBE", result) return result } @@ -3127,12 +3115,12 @@ states.group_move_from = { let src = unit_supply_source(who) let net = unit_supply_network(who) - console.log("CALC WITHDRAWAL DESTINATIONS") + // console.log("CALC WITHDRAWAL DESTINATIONS") search_withdraw(who, 1 + rommel1) game.withdraw.to = list_valid_withdrawal_group_moves_to(src, net, game.from1, unit_speed[who] + 1 + rommel1) - console.log("DONE") + // console.log("DONE") } else { - console.log("CALC WITHDRAWAL SKIPPED: full retreat") + // console.log("CALC WITHDRAWAL SKIPPED: full retreat") } } }, @@ -6383,8 +6371,6 @@ states.free_deployment = { gen_action('end_deployment') if (game.selected.length > 0) { - trace_total = 0 - let base = friendly_base() init_trace_supply_to_base_or_fortress() @@ -6399,8 +6385,6 @@ states.free_deployment = { } } } - - console.log("DEPLOYMENT SUPPLY VISITS", trace_total) } }, unit(u) { |