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

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

src/w/o/worldofciv-HEAD/Assets/Python/Revolution/Gameready/Revolution.py   World of Civilization ( WoC )(Download)
            if( bPeaceful and self.civicRevolution ) :
                # Sufferage or representation
                [demoLevel,optionType] = RevUtils.getDemocracyLevel( iPlayer )
                [newDemoLevel,newCivic] = RevUtils.getBestDemocracyLevel( iPlayer, optionType )
                if( demoLevel < 0 and newDemoLevel > 0 and not newCivic == None ) :
 
                    # Sufferage or representation
                    [demoLevel,optionType] = RevUtils.getDemocracyLevel( iPlayer )
                    [newDemoLevel,newCivic] = RevUtils.getBestDemocracyLevel( iPlayer, optionType )
                    if( demoLevel < 0 and newDemoLevel > 0 and not newCivic == None ) :

src/w/o/worldofciv-HEAD/Assets/Python/Revolution/Gameready/DynamicCivNames.py   World of Civilization ( WoC )(Download)
                else :
                    newName = localText.getText("TXT_KEY_MOD_DCN_PEOPLES_REP", ())%(curShort)
            elif( RevUtils.getDemocracyLevel(iPlayer)[0] == -8 ) :
                if( localText.getText("TXT_KEY_MOD_DCN_RUSSIAN_MATCH", ()) in curAdj ) :
                    curAdj = localText.getText("TXT_KEY_MOD_DCN_SOVIET", ())
                if( len(newName) < 16 and not localText.getText("TXT_KEY_MOD_DCN_FREE", ()) in newName and not localText.getText("TXT_KEY_MOD_DCN_NEW", ()) in newName ) :
                    newName = localText.getText("TXT_KEY_MOD_DCN_FREE", ()) + ' ' + newName
        elif( RevUtils.getDemocracyLevel(iPlayer)[0] == -8 ) :
            if( self.LOG_DEBUG and bVerbose ) : CvUtil.pyPrint("Names - player is police state")
            empString = localText.getText("TXT_KEY_MOD_DCN_PLAIN_EMPIRE", ())
            sGreat = localText.getText("TXT_KEY_MOD_DCN_GREAT_KINGDOM", ()).replace('%s','').strip()
            sKingdom = localText.getText("TXT_KEY_MOD_DCN_KINGDOM", ())
            if( RevUtils.getDemocracyLevel(iPlayer)[0] == -6 ) :
 
                if( pTeam.isAVassal() ) :
                        newName = localText.getText("TXT_KEY_MOD_DCN_THE_BLANK_OF", ())%(sKingdom,curShort)
 
            elif( RevUtils.getDemocracyLevel(iPlayer)[0] == -10 or playerEra == 0 ) :
 
                empString = localText.getText("TXT_KEY_MOD_DCN_PLAIN_EMPIRE", ())