![Surgebinding](https://media.forgecdn.net/avatars/thumbnails/549/241/256/256/637886069192971258.png)
[Cosmere] Refactor power granting code
leafreynolds opened this issue ยท 0 comments
Currently the cosmere library mod handles granting powers, even though it doesn't properly know what allomancy/feruchemy etc is.
We should refactor things so that it's the sub mods themselves that grant the powers. This is a little more complicated because there's lore related rules to what powers can't be granted with other powers, like mistborn and full feruchemist.
Proposed changes:
We set up events for when powers are needing to be granted:
- onGrantStartingPowers
- onBreedGrantPowers
- etc
and then have those events track:
- whether a listener has said yes I wanna give powers.
- what powers it wants to give
- And whether that listener says other powers are blacklisted from being granted with it (mistborn/feruchemist)
The event should then take all that information and then decide resolve the granting of powers using that information.