示例#1
0
        static bool ReduceDamagePrefix(Npc __instance, ref float v, Npc from, ref g_emElementKind element, ref g_emDamageSource source, ref Vector3?hitpos, ref float Penetration, ref string desc, FabaoBase fabao)
        {
            var arg = new ReduceDamageEventArgs(from, __instance, v, element, source, hitpos, Penetration, desc, fabao);

            v = EventManager.OnReduceDamage(__instance, arg);
            return(true);
        }
示例#2
0
 public ReduceLingDamageEventArgs(Npc from, Npc target, float v, g_emElementKind element, bool bodydamage, string desc)
 {
     From       = from;
     Target     = target;
     Damage     = v;
     Element    = element;
     Bodydamage = bodydamage;
     Desc       = desc;
 }
示例#3
0
 public ReduceDamageEventArgs(Npc from, Npc target, float damage, g_emElementKind element, g_emDamageSource source, Vector3?hitpos, float penetration, string desc, FabaoBase fabao)
 {
     From        = from;
     Target      = target;
     Damage      = damage;
     Element     = element;
     Source      = source;
     Hitpos      = hitpos;
     Penetration = penetration;
     Desc        = desc;
     Fabao       = fabao;
 }
示例#4
0
        static bool ReduceLingDamagePrefix(Npc __instance, ref float v, ref Npc from, ref g_emElementKind element, ref bool bodydamage, string desc)
        {
            var arg = new ReduceLingDamageEventArgs(from, __instance, v, element, bodydamage, desc);

            v = EventManager.OnReduceLingDamage(__instance, arg);
            return(true);
        }