public static void Exit(NPC npc, bool syncFromServer) { npc.active = false; if (syncFromServer) { NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, npc.whoAmI); } PirateNegotiatorTownNPC.EmitSmoke(npc.Center, false); }
public static void EmitSmoke(Vector2 pos, bool fake) { ParticleFxHelpers.MakeDustCloud( position: fake ? pos : pos - new Vector2(16f), quantity: 1, sprayAmount: 0.3f, scale: fake ? 0.5f : 2f ); if (!fake) { PirateNegotiatorTownNPC.EmitSmoke(pos, true); } }