Skip to content

Commit

Permalink
Protect Unit MAI: remove unused configuration variables
Browse files Browse the repository at this point in the history
They cannot be set for the MAI, and they would have to be set through 'cfg' not 'data' anyway.
  • Loading branch information
mattsc committed Sep 2, 2018
1 parent 42b4430 commit 62625fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions data/ai/micro_ais/cas/ca_protect_unit_move.lua
Expand Up @@ -55,10 +55,10 @@ function ca_protect_unit_move:execution(cfg, data)
end)

-- Configuration parameters (no option to change these enabled at the moment)
local enemy_weight = data.PU_enemy_weight or 100.
local my_unit_weight = data.PU_my_unit_weight or 1.
local distance_weight = data.PU_distance_weight or 3.
local terrain_weight = data.PU_terrain_weight or 0.1
local enemy_weight = 100.
local my_unit_weight = 1.
local distance_weight = 3.
local terrain_weight = 0.1

-- If there are no enemies left, only distance to goal matters
-- This is to avoid rare situations where moving toward goal rating is canceled by rating for moving away from own units
Expand Down

0 comments on commit 62625fd

Please sign in to comment.