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); }
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; }
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; }
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); }