Skip to content

Commit

Permalink
Fix Spanish Inquisition
Browse files Browse the repository at this point in the history
Minor cleanup for TechCityTrade
  • Loading branch information
RecursiveVision committed Oct 3, 2023
1 parent 633b02e commit c957d60
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 10 deletions.
1 change: 1 addition & 0 deletions (2) Vox Populi/Database Changes/Civilizations/Spain.sql
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ VALUES

UPDATE Units
SET
ShowInPedia = 0,
RequiresEnhancedReligion = 0,
NoMaintenance = 1
WHERE Type = 'UNIT_SPAIN_INQUISITOR';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,12 @@
<Text>Unique Roman replacement for the Arena. Build the Colosseum to boost your City's Culture, Tourism, and Production output, also improves nearby [ICON_RES_PERFUME] Perfume and [ICON_RES_OLIVE] Olive resources. It also can maximize your Empire's gain from the victories of your conquering armies. Every Colosseum slightly increases the Gold value of City Connections, thus allowing Rome to benefit from large, sprawling empires.</Text>
</Row>
<!-- Spain -->
<Row Tag="TXT_KEY_UNIT_SPAIN_INQUISITOR">
<Text>Inquisition</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_HELP_SPAIN_INQUISITOR">
<Text>{TXT_KEY_UNIT_HELP_INQUISITOR}[NEWLINE][NEWLINE][COLOR_NEGATIVE_TEXT]Nobody expects the Spanish Inquisition![ENDCOLOR]</Text>
</Row>
<Row Tag="TXT_KEY_BUILDING_MISSION">
<Text>Mission</Text>
</Row>
Expand Down
4 changes: 2 additions & 2 deletions (2) Vox Populi/Database Changes/Units/NewUnits.xml
Original file line number Diff line number Diff line change
Expand Up @@ -765,10 +765,10 @@
</Row>
<Row>
<Type>UNIT_SPAIN_INQUISITOR</Type>
<Description>TXT_KEY_UNIT_INQUISITOR</Description>
<Description>TXT_KEY_UNIT_SPAIN_INQUISITOR</Description>
<Civilopedia>TXT_KEY_CIV5_INQUISITOR_TEXT</Civilopedia>
<Strategy>TXT_KEY_UNIT_INQUISITOR_STRATEGY</Strategy>
<Help>TXT_KEY_UNIT_HELP_INQUISITOR</Help>
<Help>TXT_KEY_UNIT_HELP_SPAIN_INQUISITOR</Help>
<Domain>DOMAIN_LAND</Domain>
<CombatClass>UNITCOMBAT_INQUISITOR</CombatClass>
<Class>UNITCLASS_INQUISITOR</Class>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@
<OrderPriority>99</OrderPriority>
<IconIndex>36</IconIndex>
<IconAtlas>UNIT_ACTION_ATLAS</IconAtlas>
<ShowInPedia>false</ShowInPedia>
<ShowInTechTree>false</ShowInTechTree>
<ShowInPedia>0</ShowInPedia>
<ShowInTechTree>0</ShowInTechTree>
</Row>
<!-- Polynesia UA -->
<Row>
Expand All @@ -130,8 +130,8 @@
<OrderPriority>98</OrderPriority>
<IconIndex>35</IconIndex>
<IconAtlas>UNIT_ACTION_ATLAS</IconAtlas>
<ShowInPedia>false</ShowInPedia>
<ShowInTechTree>false</ShowInTechTree>
<ShowInPedia>0</ShowInPedia>
<ShowInTechTree>0</ShowInTechTree>
</Row>
</Builds>
</GameData>
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ WHERE Type = 'RESOURCE_HIDDEN_ARTIFACTS';

-- Strategics
UPDATE Resources
SET TechReveal = 'TECH_STEAM_POWER', TechCityTrade = 'TECH_STEAM_POWER'
SET TechReveal = 'TECH_STEAM_POWER'
WHERE Type = 'RESOURCE_COAL';

UPDATE Resources
SET TechReveal = 'TECH_COMBUSTION', TechCityTrade = 'TECH_COMBUSTION'
SET TechReveal = 'TECH_COMBUSTION'
WHERE Type = 'RESOURCE_OIL';

-- Bonus and luxuries
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,6 @@ ORDER BY a.BuildingClass, a.Type;
DROP TABLE BuildingClass_ResourceYieldChanges;

-- Tech where the resource can be set as "owned"
-- Strategic resources always require the reveal tech
UPDATE Resources
SET TechImproveable = (
SELECT PrereqTech FROM Builds WHERE ImprovementType = (
Expand All @@ -274,7 +273,12 @@ SET TechImproveable = (
)
WHERE ResourceUsage <> 1;

-- Non-strategic resources shouldn't have a tech requirement to be sold
-- Strategics can be sold when they are revealed
-- Luxuries can be sold at game start
UPDATE Resources
SET TechCityTrade = TechReveal
WHERE ResourceUsage = 1;

UPDATE Resources
SET TechCityTrade = NULL
WHERE ResourceUsage <> 1;
Expand Down

0 comments on commit c957d60

Please sign in to comment.