Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(10)  |  Call(10)  |  Derive(0)  |  Import(0)

src/w/o/worldofciv-HEAD/Assets/Python/Revolution/Gameready/Revolution.py   World of Civilization ( WoC )(Download)
        self.iSciMethodTech = CvUtil.findInfoTypeNum(gc.getTechInfo,gc.getNumTechInfos(), RevDefs.sXMLSciMethod)
 
        self.showLocalEffect = int( self.showLocalEffect*RevUtils.getGameSpeedMod() )
 
 
            localRevIdx = 0
 
            recentlyAcquired = (game.getGameTurn()-pCity.getGameTurnAcquired() < 12*RevUtils.getGameSpeedMod())
 
            culturePercent = 0
 
            # Adjust index accumulation for varying game speeds
            gameSpeedMod = RevUtils.getGameSpeedMod()
            localRevIdx = int(math.floor( gameSpeedMod*self.revIdxModifier*localRevIdx + self.revIdxOffset + .5 ))
 
 
        # Adjust index accumulation for varying game speeds
        gameSpeedMod = RevUtils.getGameSpeedMod()
        #print "Revolt - Game speed mod is ", self.gameSpeedMod
 
                revIdxHist = RevData.getCityVal(pCity,'RevIdxHistory')
 
                gsm = RevUtils.getGameSpeedMod()
 
                odds = (1000.0*revIdx)/(self.iRevRoll)

src/w/o/worldofciv-HEAD/Assets/Python/Revolution/RevEvents.py   World of Civilization ( WoC )(Download)
def onEndGameTurn( argsList ) :
 
    if( game.getGameTurn()%int(RevUtils.getGameSpeedMod()*10) == 0 ) :
        updateAttitudeExtras()
 
 
                    # Temporary happiness boost
                    pCity.changeRevSuccessTimer( int(iTurns + RevUtils.getGameSpeedMod()*15) )
 
                    # Trigger golden age for rebel civ under certain circumstances
 
                    # Temporary happiness boost
                    pCity.changeRevSuccessTimer( int(iTurns + RevUtils.getGameSpeedMod()*6) )
 
                # Injure free units

src/w/o/worldofciv-HEAD/Assets/Python/Revolution/Gameready/BarbarianCiv.py   World of Civilization ( WoC )(Download)
        numCitiesMod = int(pow(len(barbCityList),.5))
        # Change by gamespeed, within limits
        gsm = RevUtils.getGameSpeedMod()
        # Odds of barb city settling down go up by era
        eraMod = game.getCurrentEra() - game.getStartEra()/2.0