JavidPack / SummonersAssociation

Summoners Association mod for tModLoader
https://forums.terraria.org/index.php?threads/summoners-association.30041/
8 stars 7 forks source link

MinionModel + resulting API changes #16

Closed direwolf420 closed 1 year ago

direwolf420 commented 1 year ago

MinionModel has been made more expandable by incorporating a dictionary approach to the projectile data (from the triple of item/buff/projectile(s)), which currently only includes a Projectile.minionSlots override, but may have more info in the future.

The resulting API changes are as follows:

This change makes it so there's always 3 parameters, two calls being for registering 1 projectile, and two for more than 1 projectile, with each variant allowing a simple definition that will assume default parameters for any additional data (such as "Slot"), and an advanced definition through a dictionary.

None of these changes are made to be backwards compatible due to mods adding summons having to recompile their mods anyways due to various tml changes.

Misc: