Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement unit instance recall costs.
Actually allows for the unit instance recall costs to be used. Proper taking of the gold and undoing the cost for each unit is implemented and works. At advancement if the unit's current recall matches their unit_type's recall_cost then it takes the new unit_type's recall_cost otherwise it keeps whatever value it currently has until it fails this check. Recall costs are also now persistant and will carry over from one scenario into the next as well. If a cost is not set, it will continue to use the team/side/default costs, these changes should not affect the current workings when dealing with unaltered scenarios, and unit config files. I repeat This will not affect or change the currently way things work UNLESS a user alters a file or includes the new recall_cost (as in copies and modifies a unit in the scenario unit files) for a unit instance in their scenario file(s).
- Loading branch information
Showing
5 changed files
with
38 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters