Building Obsoletion

raxo2222

Time Traveller
Joined
Jun 10, 2011
Messages
9,778
Location
Poland
Buildings have completely revamped way of obsoleting now.
Now they are completely purged from cities, when player gets tech, that obsoletes them.

Several buildings now get relic variant when they obsolete like Angkor Wat.

When building obsoletes, and other needs it, then its treated as building always was there.
X needs Y, Y obsoletes before X.
You can still build X in cities, where you didn't build Y before its obsoletion.
This means easier time of building cities in later eras, as you now don't have to worry about obsoleting building requirements.

Tens if not hundreds of buildings could get Relic variant - that is building obsoletion could act as downgrade, since building isn't that relevant any more.

Also few thousands more of buildings could obsolete at some point.
There is 6136 buildings + 25 projects, and 2514 buildings are obsoleted at some point.
 
This sounds like a great way to make city screens easier to navigate, with fewer useless buildings just clogging it up.
Plus these relic versions might add a lot of interesting charm, like a castle giving a slight bit of tourism or even just culture after it is no longer truly needed.
 
Plus these relic versions might add a lot of interesting charm, like a castle giving a slight bit of tourism or even just culture after it is no longer truly needed.
In a lot of cases this sort of thing has already been happening but players may not have been able to notice it as easily so yes, it points out a hidden game feature more loudly, at the same time as being an actual memory and processing improvement in the code, which is nice.
 
What's a "relic version", lol?
Building that got obsoleted can now have depreciated version of it.
Essentially you can strip most of benefits in exchange of tourism and culture, if you don't want to completely obsolete building.
 
What about a (small) bonus for Archeology Labs?
Yes, its possible - I know pepper used a lot of this.
Code:
       <BuildingInfo>
           <Type>BUILDING_LUNARIS</Type>
           <iMaxPlayerInstances>1</iMaxPlayerInstances>
           <bNeverCapture>1</bNeverCapture>
           <Description>TXT_KEY_BUILDING_LUNARIS</Description>
           <Civilopedia>TXT_KEY_BUILDING_LUNARIS_PEDIA</Civilopedia>
           <Strategy>TXT_KEY_BUILDING_LUNARIS_STRATEGY</Strategy>
           <Advisor>ADVISOR_SCIENCE</Advisor>
           <ArtDefineTag>ART_DEF_BUILDING_LUNARIS</ArtDefineTag>
           <fVisibilityPriority>1</fVisibilityPriority>
           <MapCategoryTypes>
               <MapCategoryType>MAPCATEGORY_EARTH</MapCategoryType>
           </MapCategoryTypes>
           <PrereqTech>TECH_ARTIFICIAL_EVOLUTION</PrereqTech>
           <iCost>10910</iCost>
           <GlobalBuildingExtraCommerces>
               <BuildingExtraCommerce>
                   <BuildingType>BUILDING_LUNAR_BASE</BuildingType>
                   <CommerceType>COMMERCE_GOLD</CommerceType>
                   <iExtraCommerce>5</iExtraCommerce>
               </BuildingExtraCommerce>
               <BuildingExtraCommerce>
                   <BuildingType>BUILDING_LUNAR_PARCOLOGY</BuildingType>
                   <CommerceType>COMMERCE_GOLD</CommerceType>
                   <iExtraCommerce>5</iExtraCommerce>
               </BuildingExtraCommerce>
           </GlobalBuildingExtraCommerces>
GlobalBuildingExtraCommerces is used on wonders mostly, but archeology lab can get this tag.
Each archaeology lab would be buffed, so you would want something like National Archaeology Society with GlobalBuildingExtraCommerces containing 5 - 100 buildings depending on how much relics we have defined.
This way all flat gains from buildings would accumulate in one place.

Its possible to do it with Gold, Research, Culture and Espionage.
 
If the bonus was granular enough that would be a cool idea I think. But only for the local arch lab.
So we need LocalBuildingExtraCommerces tag - once picking buildings in city and nowhere else.
 
So we need LocalBuildingExtraCommerces tag - once picking buildings in city and nowhere else.
Sounds like something to add to the list of projects on github with an explanation of intended use but yeah. Cool!
 
Back
Top Bottom