Пример #1
0
    def _materialModifier(self, blueprintItem):
        """calculate the overall material modifier for a set of bpcs"""
        #calculate ME modifier
        MEModifier = 1 - (blueprintItem.ME / 100.0)
        raitaruModifier = 0.99
        if StaticData.categoryID(StaticData.productID(
                blueprintItem.typeID)) in self.riggedCategories:
            rigModifier = 0.958
        else:
            rigModifier = 1

        return MEModifier * raitaruModifier * rigModifier
Пример #2
0
    def calcVolumeRatio(self):
        """"""
        returnDict = {}
        BPOList = open("allBPOs.txt")
        for i in BPOList:
            i = i.strip()
            CopySize, manufSize, minMarketSize = StaticData.marketSize(
                StaticData.idName(i))

            a = self.esi.getMarketHistory(
                StaticData.productID(StaticData.idName(i)))
            daysPerManuf = manufSize / a.medianVolume(90)

            returnDict[StaticData.idName(i)] = 10 / daysPerManuf  #/

        return returnDict
Пример #3
0
 def printTotMats(self):
     """print the total mats required for the optimized items"""
     print "ITEMS BUILDABLE WITH CURRENT RESOURCES:"
     for i in self.itemList:
         print "{}".format(StaticData.idName(StaticData.productID(i)))
     print "\n"
     print "TOTAL REQUIRED COMPONENTS:"
     for key in self.finalDict:
         print "{}\t{}".format(StaticData.idName(key), self.finalDict[key])
     print "\n"
     print "MISSING COMPONENTS:"
     remainingMinerals, requiredMats = StaticData.materialSubtraction(
         self.materials, self.finalDict)
     for key in requiredMats:
         if StaticData.producerID(key):
             print "{}\t{}".format(StaticData.idName(key),
                                   self.finalDict[key])