gurrenm3 / BTD-Mod-Helper

A powerful and easy to use API for modding BTD6, BATTD, and other Ninja Kiwi games.
https://gurrenm3.github.io/BTD-Mod-Helper/
GNU General Public License v3.0
175 stars 119 forks source link

Prevent the error caused from GetDamageModel, add GetDamageModels. #231

Closed DarkTerraYT closed 4 months ago

DarkTerraYT commented 5 months ago

Prevents the error caused from GetDamageModel if the projectile used on has the damage model in a behavior

Also added GetDamageModels which returns a list of every damage model in the projectile (behaviors and all)

DarkTerraYT commented 5 months ago

This shouldn't cause any errors in mods even with just the GetDescendant but just to make sure I added how it was done before if it isn't null

DarkTerraYT commented 4 months ago

kinda useless