Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
            }
        }