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

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

src/w/o/worldofciv-HEAD/Assets/Python/Revolution/Gameready/Revolution.py   World of Civilization ( WoC )(Download)
 
                        bodStr += ' ' + localText.getText("TXT_KEY_REV_CAP_LEAD_REQUEST",())
                        if( not RevUtils.isCanDoElections( iPlayer ) ) :
                            if( 70 > game.getSorenRandNum(100, 'Revolt - cede power request') or len(revCities) == pPlayer.getNumCities() ):
 
 
                        bodStr += ' ' + localText.getText("TXT_KEY_REV_CAP_RULE_DEMAND",())
                        if( not RevUtils.isCanDoElections( iPlayer ) ) :
                            bIsElection = False
                            iBuyOffCost = -1

src/w/o/worldofciv-HEAD/Assets/Python/Revolution/Gameready/DynamicCivNames.py   World of Civilization ( WoC )(Download)
        if( RevUtils.isCommunism(iPlayer) ) :
            if( self.LOG_DEBUG and bVerbose ) : CvUtil.pyPrint("Names - player is communist")
            if( RevUtils.isCanDoElections(iPlayer) ) :
                if( sSocRep in curDesc or sPeoplesRep in curDesc ) :
                    if( self.LOG_DEBUG and bVerbose ) : CvUtil.pyPrint("Names - keeping prior name")
            else :
                newName = localText.getText("TXT_KEY_MOD_DCN_PEOPLES_REP", ())%(curShort)
        elif( RevUtils.isCanDoElections(iPlayer) ) :
            if( self.LOG_DEBUG and bVerbose ) : CvUtil.pyPrint("Names - player can do elections")
            sRepOf = localText.getText("TXT_KEY_MOD_DCN_REPUBLIC_OF", ()).replace('%s','').strip()