gives repair a lower priority compared to capture, fixes #3443

This was SVN commit r17342.
This commit is contained in:
mimo
2015-11-30 20:26:10 +00:00
parent 6f09803e8c
commit 66bd932374
2 changed files with 2 additions and 2 deletions
@@ -292,7 +292,7 @@ function determineAction(x, y, fromMinimap)
// if two actions are possible, the first one is taken
// so the most specific should appear first
var actions = Object.keys(unitActions).slice();
actions.sort(function(a, b) {return unitActions[a].specificness - unitActions[b].specificness;});
actions.sort((a, b) => unitActions[a].specificness - unitActions[b].specificness);
var actionInfo = undefined;
if (preSelectedAction != ACTION_NONE)
@@ -230,7 +230,7 @@ var unitActions =
return {"type": "build", "cursor": "action-repair", "target": target};
return false;
},
"specificness": 4,
"specificness": 15,
},
"gather":