public static EfficientRule calculateDoubleType(EfficientRule type1, EfficientRule type2) { return(new EfficientRule( type1.fire * type2.fire, type1.water * type2.water, type1.poison * type2.poison, type1.grass * type2.grass)); }
public Bulbasaur(int level) : base("bulbasaur", level) { this.name = "Bulbizarre"; setBaseStats(); setStats(); capacities[0] = CapacitiesRef.tackle.Clone() as Capacity; capacities[1] = CapacitiesRef.vinewhip.Clone() as Capacity; capacities[2] = CapacitiesRef.solarbeam.Clone() as Capacity; resistance = EfficientRule.calculateDoubleType( EfficientRule.basicTableGrass, EfficientRule.basicTablePoison); }