public static bool IsWeaponType(MSkill skill, WeaponType type) { return(skill.weapon_types.Length == 0 || System.Array.Exists(skill.weapon_types, s => s == type)); }
public int resistance_earth; //抗土 public static bool IsSkillType(MSkill skill, SkillType type) { return(System.Array.Exists(skill.types, s => s == type)); }