def GetPowerOutput(self): ghostTypeID = self.GetGhostFittedTypeID() fittingChanges = FittingStatsChanges(ghostTypeID) powerOutput = self.GetAttribute(const.attributePowerOutput) multiplyPower = fittingChanges.GetMultiplyPower() xtraPower = fittingChanges.GetExtraPower() return ModifiedAttribute(value=powerOutput, multiplier=multiplyPower, addition=xtraPower)
def UpdateCargoSpace(self): typeID = self.controller.GetGhostFittedTypeID() fittingChanges = FittingStatsChanges(typeID) xtraCargoSpace = fittingChanges.GetExtraCargoSpaceMultiplier() self.Update(xtraCargoSpace)
def GetCalibrationOutput(self): fittingChanges = FittingStatsChanges(self.GetGhostFittedTypeID()) calibrationOutput = self.GetAttribute(const.attributeUpgradeCapacity) return ModifiedAttribute(value=calibrationOutput)
def GetCalibrationLoad(self): fittingChanges = FittingStatsChanges(self.GetGhostFittedTypeID()) calibrationLoad = self.GetAttribute(const.attributeUpgradeLoad) caliXtraLoad = fittingChanges.GetExtraCalibrationLoad() return ModifiedAttribute(value=calibrationLoad, addition=caliXtraLoad, higherIsBetter=False)
def GetCPUOutput(self): fittingChanges = FittingStatsChanges(self.GetGhostFittedTypeID()) cpuOutput = self.GetAttribute(const.attributeCpuOutput) multiplyCpu = fittingChanges.GetMultiplyCpu() xtraCpu = fittingChanges.GetExtraCpu() return ModifiedAttribute(value=cpuOutput, multiplier=multiplyCpu, addition=xtraCpu)
def GetCPULoad(self): fittingChanges = FittingStatsChanges(self.GetGhostFittedTypeID()) cpuLoad = self.GetAttribute(const.attributeCpuLoad) xtraCpuLoad = fittingChanges.GetExtraCpuLoad() return ModifiedAttribute(value=cpuLoad, addition=xtraCpuLoad, higherIsBetter=False)