Esempio n. 1
0
        public static void Postfix(int actorId, ref float __result)
        {
            if (!Main.enabled || !Main.settings.hasDebuff)
            {
                return;
            }

            if (actorId <= 0)
            {
                return;
            }

            int totalDebuff = 0;

            totalDebuff += ActorDebuff.GetActorTotalDebuff(actorId, ActorDebuff.DebuffType.Mind);
            __result     = ((100 - totalDebuff * (__result) / 100));
        }
Esempio n. 2
0
        public static void Postfix(int actorId, ref int __result, int index)
        {
            if (!Main.enabled || !Main.settings.hasDebuff)
            {
                return;
            }

            if (actorId <= 0)
            {
                return;
            }
            if (index != 601 && index != 602 && index != 603)
            {
                return;
            }

            int totalDebuff = 0;

            totalDebuff += ActorDebuff.GetActorTotalDebuff(actorId, ActorDebuff.DebuffType.LeftHand);
            totalDebuff += ActorDebuff.GetActorTotalDebuff(actorId, ActorDebuff.DebuffType.RightHand);
            __result     = ((100 - totalDebuff * (__result) / 100));
        }