Example #1
0
 private static void FillGroup(StatisticsGroup group, StatTotals stats)
 {
     CreateDetailForGroup(group, 0, "#", "activities", stats.Count.ToString());
     CreateDetailForGroup(group, 1, "", "moving time",
                          $"{Converters.SecToTimeConverter.Convert(stats.MovingTime, typeof(int), null, string.Empty)}");
     CreateDetailForGroup(group, 2, "", "total distance", stats.TotalDistanceUserMeasurementUnit);
     CreateDetailForGroup(group, 3, "", "elevation gain", stats.ElevationGainUserMeasurementUnit);
 }
//	public int CalculateRAM(int statValue){
//		return (float)statValue * 100.0f; // calculating ram on total stamina stat times 100 (add ram from hardware here?)
//	}
    public int FunctionIntensityModifications(float strMod, float dexMod, float intMod, float wepMod)
    {
        int strInt = (int)(StatTotals.Strength() * strMod);
        int wepInt = (int)(StatTotals.WeaponDamage() * wepMod);
        int dexInt = (int)(StatTotals.Dexterity() * dexMod);
        int intInt = (int)(StatTotals.Intellect() * intMod);

        return(strInt + dexInt + intInt + wepInt);
    }