Sid Meier's Civilization VI

Sid Meier's Civilization VI

Industrial Improvements GS
DB  [developer] 20 Jun, 2019 @ 12:14pm
Bug fix
Hi FearSunn!

The patch this week conflicts with this mod, but I think I found the solution for you. Three easy steps.


1) In New_Adjacencies_Text.xml...

Move this code into the <Update> section:

<Row Tag="LOC_DISTRICT_LUMBER_MILL_PRODUCTION" Language="en_US"> <Text>+{1_num} [ICON_Production] Production from the adjacent {1_Num : plural 1?Lumber Mill; other?Lumber Mills;}.</Text> </Row>

2) In ImprovementsData.sql...


Add "OR IGNORE" to lines 49 and 52 like so:

INSERT OR IGNORE INTO RequirementArguments (RequirementId, Name, Type, Value, Extra, SecondExtra) VALUES ("REQUIRES_PLOT_HAS_LUMBER_MILL", "ImprovementType", "ARGTYPE_IDENTITY", "IMPROVEMENT_LUMBER_MILL", null, null); INSERT OR IGNORE INTO Requirements (RequirementId, RequirementType, Likeliness, Impact, Inverse, Reverse, Persistent, ProgressWeight, Triggered) VALUES ("REQUIRES_PLOT_HAS_LUMBER_MILL", "REQUIREMENT_PLOT_IMPROVEMENT_TYPE_MATCHES", 0, 0, 0, 0, 0, 1, 0);

3) Also in ImprovementsData.sql...

Replace the "PLANTATION FOOD" section (lines 82 - 98) with the following

--PLANTATION FOOD: INSERT INTO BuildingModifiers (BuildingType, ModifierId) VALUES ("BUILDING_WORKSHOP", "WORKSHOP_PLANTATION_FOOD"); INSERT INTO Modifiers (ModifierId, ModifierType, RunOnce, NewOnly, Permanent, OwnerRequirementSetId, SubjectRequirementSetId, OwnerStackLimit, SubjectStackLimit) VALUES ("WORKSHOP_PLANTATION_FOOD", "MODIFIER_CITY_PLOT_YIELDS_ADJUST_PLOT_YIELD", 0, 0, 0, null, "II_PLOT_HAS_PLANTATION_REQUIREMENTS", null, null); INSERT INTO ModifierArguments (ModifierId, Name, Type, Value, Extra, SecondExtra) VALUES ("WORKSHOP_PLANTATION_FOOD", "Amount", "ARGTYPE_IDENTITY", 1, null, null); INSERT INTO ModifierArguments (ModifierId, Name, Type, Value, Extra, SecondExtra) VALUES ("WORKSHOP_PLANTATION_FOOD", "YieldType", "ARGTYPE_IDENTITY", "YIELD_FOOD", null, null); INSERT OR IGNORE INTO RequirementSetRequirements (RequirementSetId, RequirementId) VALUES ("II_PLOT_HAS_PLANTATION_REQUIREMENTS", "II_REQUIRES_PLOT_HAS_PLANTATION"); INSERT OR IGNORE INTO RequirementSets (RequirementSetId, RequirementSetType) VALUES ("II_PLOT_HAS_PLANTATION_REQUIREMENTS", "REQUIREMENTSET_TEST_ALL"); INSERT OR IGNORE INTO RequirementArguments (RequirementId, Name, Type, Value, Extra, SecondExtra) VALUES ("II_REQUIRES_PLOT_HAS_PLANTATION", "ImprovementType", "ARGTYPE_IDENTITY", "IMPROVEMENT_PLANTATION", null, null); INSERT OR IGNORE INTO Requirements (RequirementId, RequirementType, Likeliness, Impact, Inverse, Reverse, Persistent, ProgressWeight, Triggered) VALUES ("II_REQUIRES_PLOT_HAS_PLANTATION", "REQUIREMENT_PLOT_IMPROVEMENT_TYPE_MATCHES", 0, 0, 0, 0, 0, 1, 0);



Kind regards,
DB