public double GetTypeMultiplicator(@Type type) { int eff = TypeServices.GetTypeEfficience(this.Type1, type); if (Type2.HasValue) { eff = eff * TypeServices.GetTypeEfficience(this.Type2.Value, type); } return(eff / 10000); }
public bool IsType(@Type type) { return(Type1 == type || Type2 == type); }
public static int GetTypeEfficience(@Type attackType, @Type defenseType) { return((int)table[(int)attackType, (int)defenseType]); }