private double CalculateFinalMaterialMultiplier(Character character, int lineOrCPRGMaterialPoints, int definition, out bool hasBonus) { hasBonus = character.HasTechTreeBonus(ProductionDataAccess.GetOriginalDefinitionFromPrototype(definition)); var millBonus = hasBonus ? HasMillBonus : NoMillBonus; var multiplier = 1 + (50.0 / (lineOrCPRGMaterialPoints + GetAdditiveComponentForMaterial(character) + 100.0 + millBonus)); return(multiplier); }
public double CalculateMaterialMultiplier(Character character, int targetDefinition, out bool hasBonus) { //(1+(50/(PC_EXT_PONT+PROTOTYPER.ME_PONT +100)))*10*targetDefintion.basematerial hasBonus = character.HasTechTreeBonus(ProductionDataAccess.GetOriginalDefinitionFromPrototype(targetDefinition)); var itemLevel = hasBonus ? HasPrototyperBonus : NoPrototyperBonus; var multiplier = (1 + (50 / (GetAdditiveComponentForMaterial(character) + 100.0))) * itemLevel; return(multiplier); }