Pryaxis / TSAPI

🛠🌳 The TShock Scaffold API enables developers to build plugins that hook directly into the Terraria game engine.
http://tshock.co/
GNU General Public License v3.0
109 stars 66 forks source link

Fix tombstones and other "disable projectile" settings #225

Closed SignatureBeef closed 2 years ago

SignatureBeef commented 2 years ago

This moves the projectile hook to after the SetDefaults call, matching OTAPI2 functionality, and allowing the type to be checked correctly. Without this, the tombstone ID's will not be ready for tshock to use.

see here for old code: https://github.com/Pryaxis/TSAPI/blob/4c2075fbdd7e9b17dd96d6495fe9f491a2af0bbb/TerrariaServerAPI/TerrariaApi.Server/Hooking/ProjectileHooks.cs#L22

Context: Screen Shot 2022-10-09 at 9 01 20 pm