예제 #1
0
 public override void ModifyHitItem(Player attacker, EntModItem item, NPC target, ref int damage, ref bool crit, ref float[] dr)
 {
     item.addElement(type, amount);
     if (crit)
     {
         AddBuff(BuffBase.GetFromIndex(target, type, damage / 3, attacker));
     }
 }
예제 #2
0
파일: BuffBase.cs 프로젝트: Tyfyter/Entropy
 public static bool GC(BuffBase buff)
 {
     return(!buff.isActive);
 }