Beispiel #1
0
        public override void Update(NPC npc, ref int buffIndex)
        {
            SGAnpcs npcs = npc.GetGlobalNPC <SGAnpcs>();

            npcs.marked     = true;
            npcs.damagemul += 0.10f;
        }
Beispiel #2
0
        public override void ModifyHitNPC(Player player, NPC target, ref int damage, ref float knockBack, ref bool crit)
        {
            SGAnpcs nyx = target.GetGlobalNPC <SGAnpcs>();
            float   it  = nyx.truthbetold;

            nyx.truthbetold = it + 0.02f;
            if (nyx.truthbetold > 0.5f)
            {
                nyx.truthbetold = 0.5f;
                IdgNPC.AddBuffBypass(target.whoAmI, mod.BuffType("SunderedDefense"), 60 * 3);
            }
            damage = (int)(damage + (target.defense * nyx.truthbetold));
            //Idglib.Chat("Defense: "+nyx.truthbetold,244, 179, 66);
        }