Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: primary attribute prerequisites may not have been added as depen…
…dencies The previous implementation relied on the tradition being added to the hero object before the entry having the prerequisite was added, since the dependency has been added statically, depending on the then-known traditions. But there are situations where this is not the case, resulting in no prerequisite being added. The new implementation does not bind the dependencies to a specific attribute, but instead dynamically infers which is the primary attribute to then apply the registered primary dependencies. This makes the dependencies independent of the presence of tradition entries in the initialization phase. Fixes #1260
- Loading branch information
Showing
4 changed files
with
54 additions
and
27 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