1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

Inquisition

Discussion in 'Civ4 - Mod Components' started by bmarnz, Oct 31, 2007.

  1. modifieda4

    modifieda4 Chief Time Waster

    Joined:
    Sep 3, 2006
    Messages:
    385
    Location:
    Gold Coast
    ok found a problem...I duplicates of code in doInquisitorCore_AI. One was orion's and one was certainly old.

    Orion's:
    Code:
    		#Looks to see if the AI controls a Holy City that is not the State Religion
    								for iCity in range( len( lCities ) ):
    									pCity = gc.getPlayer( iOwner ).getCity( lCities[ iCity ].getID( ) )
    									if pCity.isHasReligion( iStateReligion ):
    										for iReligion in range( gc.getNumReligionInfos( ) ):
    											if iReligion != iStateReligion:
    												if pCity.isHolyCityByType( iReligion ) or pCity.isHasReligion( iReligion ):
    													if CvUtil.isOC_INQISITOR_CAN_REMOVE_HOLY_CITY():													
    														#Makes the unit move to the City and purge it													
    														if pUnit.generatePath( pCity.plot( ), 0, False, None ):
    															self.doHolyCitySeekAndDestroy( pUnit, pCity )
    															return
    
    old:
    Code:
    								for iCity in range( len( lCities ) ):
    									pCity = gc.getPlayer( iOwner ).getCity( lCities[ iCity ].getID( ) )
    									if pCity.isHasReligion( iStateReligion ):
    										for iReligion in range(gc.getNumReligionInfos( )):
    											if iReligion != iStateReligion:
    												if pCity.isHasReligion( iReligion ):
    													if pUnit.generatePath( pCity.plot( ), 0, False, None ):
    														self.doHolyCitySeekAndDestroy( pUnit, pCity )
    														return	
    
    so what the difference? It looks like Orion's code check for holy city ownership? Can you explain Orion? thanks!
     
  2. OrionVeteran

    OrionVeteran Chieftain

    Joined:
    Dec 25, 2003
    Messages:
    2,443
    Location:
    Newport News VA
    I will look at it and let you know. For the future, this thread has moved to Orion's Inquisition Mod. Make all future postings there.

    Thanks,

    Orion Veteran :cool:
     
  3. modifieda4

    modifieda4 Chief Time Waster

    Joined:
    Sep 3, 2006
    Messages:
    385
    Location:
    Gold Coast

Share This Page