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

Seaport question

Discussion in 'Mod Creation Help' started by Meanness, Dec 31, 2016.

  1. Meanness

    Meanness Chieftain

    Joined:
    Mar 22, 2006
    Messages:
    65
    Apologies in advance for what is likely a stupid question, but I have spent a good amount of time digging through xml files and searching the forums. Please help me out!

    Where is the +1 production modifier for sea resources from the seaport? I don't see any production modifiers in Buildings.xml, and a search for seaport only turns it up in one other xml file (policies.xml).

    I would like to add similar production modifiers for the shipyard, but I am not sure where to start. Thanks in advance!
     
  2. isau

    isau Deity

    Joined:
    Jan 15, 2007
    Messages:
    3,053

    I'm not sure what production from the Seaport you are referring to. I can't find any references to production in the various descriptions of the Seaport.

    The Shipyard provides Production equal to the Gold adjacencies of its parent district, thanks to the fact that the Shipyard has a listing in Building_YieldDistrictCopies that converts gold to production. (Only two buildings are listed in that table, the Shipyard and Arabia's special Madrassa building that converts Science to Faith).
     
  3. LeeS

    LeeS Imperator

    Joined:
    Jul 23, 2013
    Messages:
    6,833
    Location:
    Illinois, USA
    The civ6 seaport only has a modifier for trained unit XP and for trained Corps/Army:

    SEAPORT_TRAINED_UNIT_XP_MODIFIER
    SEAPORT_TRAINED_CORPS_ARMY_DISCOUNT

    Other than that it just has direct yields added to the building itself, and which are not dependant on surrouding resources.

    ----------------------------------------------------------------

    Otherwise what you are describing sounds like civ5's Seaport, which has this, under the Civ5 system for affecting plot yields with sea resources:
    Code:
    	<Building_SeaResourceYieldChanges>
    		<Row>
    			<BuildingType>BUILDING_SEAPORT</BuildingType>
    			<YieldType>YIELD_PRODUCTION</YieldType>
    			<Yield>1</Yield>
    		</Row>
    		<Row>
    			<BuildingType>BUILDING_SEAPORT</BuildingType>
    			<YieldType>YIELD_GOLD</YieldType>
    			<Yield>1</Yield>
    		</Row>
    		<Row>
    			<BuildingType>BUILDING_LIGHTHOUSE</BuildingType>
    			<YieldType>YIELD_PRODUCTION</YieldType>
    			<Yield>1</Yield>
    		</Row>
    	</Building_SeaResourceYieldChanges>
     
  4. Meanness

    Meanness Chieftain

    Joined:
    Mar 22, 2006
    Messages:
    65
    Thanks for the replies, I'm an idiot...forgot I still had the TCS Improved Water Yields mod installed. The answer was in there.
     

Share This Page