public override bool ReApply(NPC npc, int time, int buffIndex)
        {
            NInfo info = npc.GetModInfo <NInfo>(mod);

            if (info.nebulaFlameStacks < 5)
            {
                info.nebulaFlameStacks++;
            }
            return(true);
        }
Пример #2
0
        public override bool ReApply(NPC npc, int time, int buffIndex)
        {
            NInfo info = npc.GetModInfo <NInfo>(mod);

            if (info.fireStacks < 3)
            {
                info.fireStacks++;
            }
            npc.buffTime[buffIndex] = time;
            return(true);
        }
Пример #3
0
        public override void Update(NPC npc, ref int buffIndex)
        {
            NInfo info = npc.GetModInfo <NInfo>(mod);

            if (info.fireStacks <= 0)
            {
                info.fireStacks = 1;
            }
            if (Main.rand.Next(2) == 0)
            {
                int dust = Dust.NewDust(npc.position, npc.width, npc.height, 6);
            }
        }
        public override void Update(NPC npc, ref int buffIndex)
        {
            NInfo info = npc.GetModInfo <NInfo>(mod);

            if (info.nebulaFlameStacks == 0)
            {
                info.nebulaFlameStacks = 1;
            }

            for (int i = 0; i < info.nebulaFlameStacks; ++i)
            {
                Dust.NewDust(npc.position, npc.width, npc.height, DustID.PurpleCrystalShard);
            }
        }
Пример #5
0
        public override void Update(NPC npc, ref int buffIndex)
        {
            NInfo info = npc.GetModInfo <NInfo>(mod);

            if (info.GhostJellyStacks == 0)
            {
                info.GhostJellyStacks = 1;
            }

            for (int i = 0; i < info.GhostJellyStacks; ++i)
            {
                Dust.NewDust(npc.position, npc.width, npc.height, 206);
            }
        }
Пример #6
0
        public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
        {
            NInfo modNPC = target.GetModInfo <NInfo>(mod);

            if (target.life <= 0)
            {
                //Workaround: OnHitNPC gets called after NPCLoot for some reason.
                Vector2 pos = target.Center;
                Projectile.NewProjectile(pos.X, pos.Y, 0f, 0f, TikiBiter._ref.projectile.type, (int)(projectile.damage * 0.75f), 0f, projectile.owner, -1f);
            }
            else
            {
                target.AddBuff(Buffs.TikiInfestation._ref.Type, Buffs.TikiInfestation.duration);
                modNPC.AddTikiSource(projectile);
            }
        }
        public override void Update(NPC npc, ref int buffIndex)
        {
            NInfo info = npc.GetModInfo <NInfo>(mod);

            info.amberFracture = true;
        }