Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
unit_recall: Show unrecallable units grayed out. #4362
Part of issue #1282.
Looks like this:
Units that don't match the [filter_recall] do not appear in the dialog in the first place. (The list of units passed to
Old behavior: the gold is shown in red if the unit has a recall_cost higher than the team's recall_cost, regardless of how much gold the team has in the bank.
New behavior: if the unit's recall cost is higher than the team's gold, the line is gray. Otherwise, same as old behavior.
…hiteboard. This makes it so if you try to recall and your recall list is empty when accounting for the whiteboard, you get the "There are no troops" error rather than the "You currently can't recall" error below it.