Pychnight / TshockRpgToolKit

Master Controller for distrubtion of quests, custom npcs, custom items and skills, housing, leveling, npcshops, etc.
GNU General Public License v2.0
11 stars 1 forks source link

[Custom Npc 2] Custom Spawning System & Boo Hooks #24

Closed Pychnight closed 7 months ago

Pychnight commented 6 years ago

Currently there are a few unusable custom npcs that will never spawn due to the normal terraria spawn logic has no idea how to spawn them correctly.

Problems of the current spawn system

So, here is a plan for a custom spawn system

terraria_2018-10-05_02-28-22

if the npc has special flags activated

Add OnStartInvasion, OnWaveProgress, OnEndInvasion Hooks