Ejemplo n.º 1
0
        public override void UpdateLifeRegen(NPC npc, ref int damage)
        {
            MharadiumNPCInfo modNPC = (MharadiumNPCInfo)npc.GetModInfo(mod, "MharadiumNPCInfo");

            if (modNPC.onMharadiumFire)
            {
                if (npc.lifeRegen > 0)
                {
                    npc.lifeRegen = 0;
                }
                npc.lifeRegen -= 12;
            }
        }
Ejemplo n.º 2
0
        public override void DrawEffects(NPC npc, ref Color drawColor)
        {
            MharadiumNPCInfo modNPC = (MharadiumNPCInfo)npc.GetModInfo(mod, "MharadiumNPCInfo");

            if (modNPC.onMharadiumFire)
            {
                if (Main.rand.Next(4) == 0)
                {
                    int index2 = Dust.NewDust(new Vector2(npc.position.X - 2f, npc.position.Y - 2f), npc.width + 4, npc.height + 4, 6, npc.velocity.X * 0.4f, npc.velocity.Y * 0.4f, 100, new Microsoft.Xna.Framework.Color(), 3f);
                    Main.dust[index2].noGravity = true;
                    Main.dust[index2].velocity *= 1.8f;
                    //Dust dust = Main.dust[index2];
                    Main.dust[index2].velocity.Y -= 0.5f;
                }
            }
        }
Ejemplo n.º 3
0
        public override void ResetEffects(NPC npc)
        {
            MharadiumNPCInfo modNPC = (MharadiumNPCInfo)npc.GetModInfo(mod, "MharadiumNPCInfo");

            modNPC.onMharadiumFire = false;
        }