-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMagnus.sql
233 lines (209 loc) · 18.8 KB
/
Magnus.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
DELETE FROM GovernorPromotionModifiers WHERE GovernorPromotionType = 'GOVERNOR_PROMOTION_RESOURCE_MANAGER_BLACK_MARKETEER';
DELETE FROM GovernorPromotionPrereqs WHERE
GovernorPromotionType='GOVERNOR_PROMOTION_RESOURCE_MANAGER_BLACK_MARKETEER' OR PrereqGovernorPromotion = 'GOVERNOR_PROMOTION_RESOURCE_MANAGER_BLACK_MARKETEER';
INSERT OR IGNORE INTO Requirements (RequirementId, RequirementType) VALUES
('REQUIRES_UNIT_IS_SETTLER', 'REQUIREMENT_UNIT_TYPE_MATCHES'),
('REQUIRES_PLOT_HAS_OIL_WELL', 'REQUIREMENT_PLOT_IMPROVEMENT_TYPE_MATCHES'),
('REQUIRES_PLOT_HAS_OIL_RIG', 'REQUIREMENT_PLOT_IMPROVEMENT_TYPE_MATCHES');
INSERT OR IGNORE INTO RequirementArguments (RequirementId, Name, Value) VALUES
('REQUIRES_UNIT_IS_SETTLER', 'UnitType', 'UNIT_SETTLER'),
('REQUIRES_PLOT_HAS_OIL_WELL', 'ImprovementType', 'IMPROVEMENT_OIL_WELL'),
('REQUIRES_PLOT_HAS_OIL_RIG', 'ImprovementType', 'IMPROVEMENT_OFFSHORE_OIL_RIG');
INSERT OR IGNORE INTO RequirementSets (RequirementSetId, RequirementSetType) VALUES
('UNIT_IS_SETTLER_REQUIREMENT', 'REQUIREMENTSET_TEST_ALL'),
('GOVERNOR_RESOURCE_MANAGER_PRODUCTION_REQUIREMENT', 'REQUIREMENTSET_TEST_ANY');
INSERT OR IGNORE INTO RequirementSetRequirements (RequirementSetId, RequirementId) VALUES
('UNIT_IS_SETTLER_REQUIREMENT', 'REQUIRES_UNIT_IS_SETTLER'),
('GOVERNOR_RESOURCE_MANAGER_PRODUCTION_REQUIREMENT', 'REQUIRES_PLOT_HAS_QUARRY'),
('GOVERNOR_RESOURCE_MANAGER_PRODUCTION_REQUIREMENT', 'REQUIRES_PLOT_HAS_OIL_WELL'),
('GOVERNOR_RESOURCE_MANAGER_PRODUCTION_REQUIREMENT', 'REQUIRES_PLOT_HAS_OIL_RIG'),
('GOVERNOR_RESOURCE_MANAGER_PRODUCTION_REQUIREMENT', 'REQUIRES_PLOT_HAS_MINE');
INSERT OR IGNORE INTO Modifiers (ModifierId, ModifierType, Permanent, SubjectRequirementSetId) VALUES
('GOVERNOR_RESOURCE_MANAGER_EXPEDITION_SETTLER_MOVES', 'MODIFIER_SINGLE_CITY_ATTACH_MODIFIER', 0, Null),
('EXPEDITION_SETTLER_EXTRA_MOVEMENT', 'MODIFIER_SINGLE_CITY_TRAINED_UNITS_ADJUST_MOVEMENT', 1, 'UNIT_IS_SETTLER_REQUIREMENT');
INSERT OR IGNORE INTO ModifierArguments (ModifierId, Name, Value) VALUES
('GOVERNOR_RESOURCE_MANAGER_EXPEDITION_SETTLER_MOVES' , 'ModifierId' , 'EXPEDITION_SETTLER_EXTRA_MOVEMENT'),
('GOVERNOR_RESOURCE_MANAGER_EXPEDITION_SETTLER_MOVES' , 'Amount' , 2);
--('EXPEDITION_SETTLER_EXTRA_MOVEMENT', 'Amount', 2);
INSERT OR IGNORE INTO GovernorPromotionModifiers (GovernorPromotionType, ModifierId) VALUES
('GOVERNOR_PROMOTION_RESOURCE_MANAGER_EXPEDITION', 'GOVERNOR_RESOURCE_MANAGER_EXPEDITION_SETTLER_MOVES');
DELETE FROM Modifiers WHERE ModifierId = 'SURPLUS_LOGISTICS_EXTRA_GROWTH';
INSERT OR IGNORE INTO Modifiers (ModifierId, ModifierType, SubjectRequirementSetId) VALUES
('SURPLUS_LOGISTICS_TRADE_ROUTE_PRODUCTION', 'MODIFIER_SINGLE_CITY_ADJUST_TRADE_ROUTE_YIELD_TO_OTHERS', Null),
('SURPLUS_LOGISTICS_DOMESTIC_TRADE_ROUTE_PRODUCTION', 'MODIFIER_SINGLE_CITY_ADJUST_TRADE_ROUTE_YIELD_FOR_DOMESTIC', Null),
('SURPLUS_LOGISTICS_DOMESTIC_TRADE_ROUTE_FOOD', 'MODIFIER_SINGLE_CITY_ADJUST_TRADE_ROUTE_YIELD_FOR_DOMESTIC', Null),
('GOVERNOR_RESOURCE_MANAGER_PRODUCTION', 'MODIFIER_CITY_PLOT_YIELDS_ADJUST_PLOT_YIELD', 'GOVERNOR_RESOURCE_MANAGER_PRODUCTION_REQUIREMENT');
INSERT OR IGNORE INTO ModifierArguments (ModifierId, Name, Value) VALUES
('GOVERNOR_RESOURCE_MANAGER_PRODUCTION' , 'YieldType' , 'YIELD_PRODUCTION'),
('GOVERNOR_RESOURCE_MANAGER_PRODUCTION' , 'Amount' , 1),
('SURPLUS_LOGISTICS_DOMESTIC_TRADE_ROUTE_PRODUCTION' , 'YieldType' , 'YIELD_PRODUCTION'),
('SURPLUS_LOGISTICS_DOMESTIC_TRADE_ROUTE_PRODUCTION' , 'Amount' , 2),
('SURPLUS_LOGISTICS_DOMESTIC_TRADE_ROUTE_FOOD' , 'YieldType' , 'YIELD_FOOD'),
('SURPLUS_LOGISTICS_DOMESTIC_TRADE_ROUTE_FOOD' , 'Amount' , 2),
('SURPLUS_LOGISTICS_TRADE_ROUTE_PRODUCTION' , 'Domestic' , 1),
('SURPLUS_LOGISTICS_TRADE_ROUTE_PRODUCTION' , 'Amount' , 2),
('SURPLUS_LOGISTICS_TRADE_ROUTE_PRODUCTION' , 'YieldType' , 'YIELD_PRODUCTION');
INSERT OR IGNORE INTO GovernorPromotionModifiers (GovernorPromotionType, ModifierId) VALUES
('GOVERNOR_PROMOTION_RESOURCE_MANAGER_SURPLUS_LOGISTICS', 'SURPLUS_LOGISTICS_TRADE_ROUTE_PRODUCTION'),
('GOVERNOR_PROMOTION_RESOURCE_MANAGER_SURPLUS_LOGISTICS', 'SURPLUS_LOGISTICS_DOMESTIC_TRADE_ROUTE_PRODUCTION'),
('GOVERNOR_PROMOTION_RESOURCE_MANAGER_SURPLUS_LOGISTICS', 'SURPLUS_LOGISTICS_DOMESTIC_TRADE_ROUTE_FOOD');
INSERT OR IGNORE INTO Types (Type, Kind) VALUES ('GOVERNOR_PROMOTION_NPK', 'KIND_GOVERNOR_PROMOTION');
INSERT OR IGNORE INTO GovernorPromotions (GovernorPromotionType, Name, Description, Level, Column, BaseAbility)
VALUES ('GOVERNOR_PROMOTION_NPK', 'LOC_GOVERNOR_PROMOTION_NPK_NAME', 'LOC_GOVERNOR_PROMOTION_NPK_DESCRIPTION', 2, 2, 0);
INSERT OR IGNORE INTO GovernorPromotionSets (GovernorType, GovernorPromotion)
VALUES ('GOVERNOR_THE_RESOURCE_MANAGER', 'GOVERNOR_PROMOTION_NPK');
INSERT OR IGNORE INTO GovernorPromotionPrereqs ( GovernorPromotionType, PrereqGovernorPromotion ) VALUES
( 'GOVERNOR_PROMOTION_NPK', 'GOVERNOR_PROMOTION_RESOURCE_MANAGER_BLACK_MARKETEER' ),
( 'GOVERNOR_PROMOTION_NPK', 'GOVERNOR_PROMOTION_RESOURCE_MANAGER_EXPEDITION' ),
( 'GOVERNOR_PROMOTION_NPK', 'GOVERNOR_PROMOTION_RESOURCE_MANAGER_SURPLUS_LOGISTICS' ),
( 'GOVERNOR_PROMOTION_RESOURCE_MANAGER_BLACK_MARKETEER', 'GOVERNOR_PROMOTION_RESOURCE_MANAGER_GROUNDBREAKER' );
--накапливание наиболее современного стратегического ресурса
INSERT OR IGNORE INTO Requirements (RequirementId, RequirementType, Inverse) VALUES
('REQUIRES_PLAYER_CANNOT_SEE_ALUMINUM', 'REQUIREMENT_PLAYER_HAS_RESOURCE_VISIBILITY', 1),
('REQUIRES_PLAYER_CANNOT_SEE_COAL', 'REQUIREMENT_PLAYER_HAS_RESOURCE_VISIBILITY', 1),
('REQUIRES_PLAYER_CANNOT_SEE_HORSES', 'REQUIREMENT_PLAYER_HAS_RESOURCE_VISIBILITY', 1),
('REQUIRES_PLAYER_CANNOT_SEE_IRON', 'REQUIREMENT_PLAYER_HAS_RESOURCE_VISIBILITY', 1),
('REQUIRES_PLAYER_CANNOT_SEE_NITER', 'REQUIREMENT_PLAYER_HAS_RESOURCE_VISIBILITY', 1),
('REQUIRES_PLAYER_CANNOT_SEE_OIL', 'REQUIREMENT_PLAYER_HAS_RESOURCE_VISIBILITY', 1),
('REQUIRES_PLAYER_CANNOT_SEE_URANIUM', 'REQUIREMENT_PLAYER_HAS_RESOURCE_VISIBILITY', 1);
INSERT OR IGNORE INTO RequirementArguments (RequirementId, Name, Value) VALUES
('REQUIRES_PLAYER_CANNOT_SEE_ALUMINUM', 'ResourceType', 'RESOURCE_ALUMINUM'),
('REQUIRES_PLAYER_CANNOT_SEE_COAL', 'ResourceType', 'RESOURCE_COAL'),
('REQUIRES_PLAYER_CANNOT_SEE_HORSES', 'ResourceType', 'RESOURCE_HORSES'),
('REQUIRES_PLAYER_CANNOT_SEE_IRON', 'ResourceType', 'RESOURCE_IRON'),
('REQUIRES_PLAYER_CANNOT_SEE_NITER', 'ResourceType', 'RESOURCE_NITER'),
('REQUIRES_PLAYER_CANNOT_SEE_OIL', 'ResourceType', 'RESOURCE_OIL'),
('REQUIRES_PLAYER_CANNOT_SEE_URANIUM', 'ResourceType', 'RESOURCE_URANIUM');
INSERT OR IGNORE INTO RequirementSets (RequirementSetId, RequirementSetType) VALUES
('MOST_ADVANCED_STRATEGIC_RESOURCE_IS_HORSES', 'REQUIREMENTSET_TEST_ALL'),
('MOST_ADVANCED_STRATEGIC_RESOURCE_IS_IRON', 'REQUIREMENTSET_TEST_ALL'),
('MOST_ADVANCED_STRATEGIC_RESOURCE_IS_NITER', 'REQUIREMENTSET_TEST_ALL'),
('MOST_ADVANCED_STRATEGIC_RESOURCE_IS_COAL', 'REQUIREMENTSET_TEST_ALL'),
('MOST_ADVANCED_STRATEGIC_RESOURCE_IS_OIL', 'REQUIREMENTSET_TEST_ALL'),
('MOST_ADVANCED_STRATEGIC_RESOURCE_IS_ALUMINUM', 'REQUIREMENTSET_TEST_ALL'),
('MOST_ADVANCED_STRATEGIC_RESOURCE_IS_URANIUM', 'REQUIREMENTSET_TEST_ALL');
INSERT OR IGNORE INTO RequirementSetRequirements (RequirementSetId, RequirementId) VALUES
('MOST_ADVANCED_STRATEGIC_RESOURCE_IS_HORSES', 'REQUIRES_PLAYER_CAN_SEE_HORSES'),
('MOST_ADVANCED_STRATEGIC_RESOURCE_IS_HORSES', 'REQUIRES_PLAYER_CANNOT_SEE_IRON'),
('MOST_ADVANCED_STRATEGIC_RESOURCE_IS_HORSES', 'REQUIRES_PLAYER_CANNOT_SEE_NITER'),
('MOST_ADVANCED_STRATEGIC_RESOURCE_IS_IRON', 'REQUIRES_PLAYER_CAN_SEE_IRON'),
('MOST_ADVANCED_STRATEGIC_RESOURCE_IS_IRON', 'REQUIRES_PLAYER_CANNOT_SEE_NITER'),
('MOST_ADVANCED_STRATEGIC_RESOURCE_IS_IRON', 'REQUIRES_PLAYER_CANNOT_SEE_COAL'),
('MOST_ADVANCED_STRATEGIC_RESOURCE_IS_NITER', 'REQUIRES_PLAYER_CAN_SEE_NITER'),
('MOST_ADVANCED_STRATEGIC_RESOURCE_IS_NITER', 'REQUIRES_PLAYER_CANNOT_SEE_COAL'),
('MOST_ADVANCED_STRATEGIC_RESOURCE_IS_NITER', 'REQUIRES_PLAYER_CANNOT_SEE_OIL'),
('MOST_ADVANCED_STRATEGIC_RESOURCE_IS_COAL', 'REQUIRES_PLAYER_CAN_SEE_COAL'),
('MOST_ADVANCED_STRATEGIC_RESOURCE_IS_COAL', 'REQUIRES_PLAYER_CANNOT_SEE_OIL'),
('MOST_ADVANCED_STRATEGIC_RESOURCE_IS_COAL', 'REQUIRES_PLAYER_CANNOT_SEE_ALUMINUM'),
('MOST_ADVANCED_STRATEGIC_RESOURCE_IS_OIL', 'REQUIRES_PLAYER_CAN_SEE_OIL'),
('MOST_ADVANCED_STRATEGIC_RESOURCE_IS_OIL', 'REQUIRES_PLAYER_CANNOT_SEE_ALUMINUM'),
('MOST_ADVANCED_STRATEGIC_RESOURCE_IS_OIL', 'REQUIRES_PLAYER_CANNOT_SEE_URANIUM'),
('MOST_ADVANCED_STRATEGIC_RESOURCE_IS_ALUMINUM', 'REQUIRES_PLAYER_CAN_SEE_ALUMINUM'),
('MOST_ADVANCED_STRATEGIC_RESOURCE_IS_ALUMINUM', 'REQUIRES_PLAYER_CANNOT_SEE_URANIUM'),
('MOST_ADVANCED_STRATEGIC_RESOURCE_IS_URANIUM', 'REQUIRES_PLAYER_CAN_SEE_URANIUM');
INSERT OR IGNORE INTO Modifiers (ModifierId, ModifierType, SubjectRequirementSetId) VALUES
('ADJUST_CITY_MOST_ADVANCED_STRATEGIC_RESOURCE_ACCUMULATION_ALUMINUM', 'MODIFIER_SINGLE_CITY_ADJUST_FREE_RESOURCE_EXTRACTION', 'MOST_ADVANCED_STRATEGIC_RESOURCE_IS_ALUMINUM'),
('ADJUST_CITY_MOST_ADVANCED_STRATEGIC_RESOURCE_ACCUMULATION_COAL', 'MODIFIER_SINGLE_CITY_ADJUST_FREE_RESOURCE_EXTRACTION', 'MOST_ADVANCED_STRATEGIC_RESOURCE_IS_COAL'),
('ADJUST_CITY_MOST_ADVANCED_STRATEGIC_RESOURCE_ACCUMULATION_HORSES', 'MODIFIER_SINGLE_CITY_ADJUST_FREE_RESOURCE_EXTRACTION', 'MOST_ADVANCED_STRATEGIC_RESOURCE_IS_HORSES'),
('ADJUST_CITY_MOST_ADVANCED_STRATEGIC_RESOURCE_ACCUMULATION_IRON', 'MODIFIER_SINGLE_CITY_ADJUST_FREE_RESOURCE_EXTRACTION', 'MOST_ADVANCED_STRATEGIC_RESOURCE_IS_IRON'),
('ADJUST_CITY_MOST_ADVANCED_STRATEGIC_RESOURCE_ACCUMULATION_NITER', 'MODIFIER_SINGLE_CITY_ADJUST_FREE_RESOURCE_EXTRACTION', 'MOST_ADVANCED_STRATEGIC_RESOURCE_IS_NITER'),
('ADJUST_CITY_MOST_ADVANCED_STRATEGIC_RESOURCE_ACCUMULATION_OIL', 'MODIFIER_SINGLE_CITY_ADJUST_FREE_RESOURCE_EXTRACTION', 'MOST_ADVANCED_STRATEGIC_RESOURCE_IS_OIL'),
('ADJUST_CITY_MOST_ADVANCED_STRATEGIC_RESOURCE_ACCUMULATION_URANIUM', 'MODIFIER_SINGLE_CITY_ADJUST_FREE_RESOURCE_EXTRACTION', 'MOST_ADVANCED_STRATEGIC_RESOURCE_IS_URANIUM');
INSERT OR IGNORE INTO ModifierArguments (ModifierId, Name, Value) VALUES
('ADJUST_CITY_MOST_ADVANCED_STRATEGIC_RESOURCE_ACCUMULATION_ALUMINUM', 'ResourceType', 'RESOURCE_ALUMINUM'),
('ADJUST_CITY_MOST_ADVANCED_STRATEGIC_RESOURCE_ACCUMULATION_COAL', 'ResourceType', 'RESOURCE_COAL'),
('ADJUST_CITY_MOST_ADVANCED_STRATEGIC_RESOURCE_ACCUMULATION_HORSES', 'ResourceType', 'RESOURCE_HORSES'),
('ADJUST_CITY_MOST_ADVANCED_STRATEGIC_RESOURCE_ACCUMULATION_IRON', 'ResourceType', 'RESOURCE_IRON'),
('ADJUST_CITY_MOST_ADVANCED_STRATEGIC_RESOURCE_ACCUMULATION_NITER', 'ResourceType', 'RESOURCE_NITER'),
('ADJUST_CITY_MOST_ADVANCED_STRATEGIC_RESOURCE_ACCUMULATION_OIL', 'ResourceType', 'RESOURCE_OIL'),
('ADJUST_CITY_MOST_ADVANCED_STRATEGIC_RESOURCE_ACCUMULATION_URANIUM', 'ResourceType', 'RESOURCE_URANIUM'),
('ADJUST_CITY_MOST_ADVANCED_STRATEGIC_RESOURCE_ACCUMULATION_ALUMINUM', 'Amount', 1),
('ADJUST_CITY_MOST_ADVANCED_STRATEGIC_RESOURCE_ACCUMULATION_COAL', 'Amount', 1),
('ADJUST_CITY_MOST_ADVANCED_STRATEGIC_RESOURCE_ACCUMULATION_HORSES', 'Amount', 1),
('ADJUST_CITY_MOST_ADVANCED_STRATEGIC_RESOURCE_ACCUMULATION_IRON', 'Amount', 1),
('ADJUST_CITY_MOST_ADVANCED_STRATEGIC_RESOURCE_ACCUMULATION_NITER', 'Amount', 1),
('ADJUST_CITY_MOST_ADVANCED_STRATEGIC_RESOURCE_ACCUMULATION_OIL', 'Amount', 1),
('ADJUST_CITY_MOST_ADVANCED_STRATEGIC_RESOURCE_ACCUMULATION_URANIUM', 'Amount', 1);
INSERT OR IGNORE INTO GovernorPromotionModifiers (GovernorPromotionType, ModifierId) VALUES
('GOVERNOR_PROMOTION_RESOURCE_MANAGER_BLACK_MARKETEER', 'ADJUST_CITY_MOST_ADVANCED_STRATEGIC_RESOURCE_ACCUMULATION_ALUMINUM'),
('GOVERNOR_PROMOTION_RESOURCE_MANAGER_BLACK_MARKETEER', 'ADJUST_CITY_MOST_ADVANCED_STRATEGIC_RESOURCE_ACCUMULATION_COAL'),
('GOVERNOR_PROMOTION_RESOURCE_MANAGER_BLACK_MARKETEER', 'ADJUST_CITY_MOST_ADVANCED_STRATEGIC_RESOURCE_ACCUMULATION_HORSES'),
('GOVERNOR_PROMOTION_RESOURCE_MANAGER_BLACK_MARKETEER', 'ADJUST_CITY_MOST_ADVANCED_STRATEGIC_RESOURCE_ACCUMULATION_IRON'),
('GOVERNOR_PROMOTION_RESOURCE_MANAGER_BLACK_MARKETEER', 'ADJUST_CITY_MOST_ADVANCED_STRATEGIC_RESOURCE_ACCUMULATION_NITER'),
('GOVERNOR_PROMOTION_RESOURCE_MANAGER_BLACK_MARKETEER', 'ADJUST_CITY_MOST_ADVANCED_STRATEGIC_RESOURCE_ACCUMULATION_OIL'),
('GOVERNOR_PROMOTION_RESOURCE_MANAGER_BLACK_MARKETEER', 'ADJUST_CITY_MOST_ADVANCED_STRATEGIC_RESOURCE_ACCUMULATION_URANIUM');
INSERT OR IGNORE INTO GovernorPromotionModifiers (GovernorPromotionType, ModifierId) VALUES
--('GOVERNOR_PROMOTION_RESOURCE_MANAGER_BLACK_MARKETEER', 'DEFENSE_LOGISTICS_BONUS_STRATEGICS'),
('GOVERNOR_PROMOTION_RESOURCE_MANAGER_BLACK_MARKETEER', 'GOVERNOR_RESOURCE_MANAGER_PRODUCTION');
/* UPDATE GovernorPromotionModifiers SET GovernorPromotionType = 'GOVERNOR_PROMOTION_RESOURCE_MANAGER_EXPEDITION'
WHERE ModifierId = 'SURPLUS_LOGISTICS_TRADE_ROUTE_FOOD';
*/
INSERT OR IGNORE INTO Requirements (RequirementId, RequirementType)
VALUES ('REQUIRES_CITY_HAS_GOVERNOR_PROMOTION_NPK', 'REQUIREMENT_CITY_HAS_SPECIFIC_GOVERNOR_PROMOTION_TYPE');
INSERT OR IGNORE INTO RequirementArguments (RequirementId, Name, Value) VALUES
('REQUIRES_CITY_HAS_GOVERNOR_PROMOTION_NPK', 'Established', 1),
('REQUIRES_CITY_HAS_GOVERNOR_PROMOTION_NPK', 'GovernorPromotionType', 'GOVERNOR_PROMOTION_NPK');
INSERT OR IGNORE INTO RequirementSets (RequirementSetId, RequirementSetType) VALUES
('NPK_INDUSTRIAL_ZONE_SCIENCE_REQUIREMENTSET', 'REQUIREMENTSET_TEST_ALL');
INSERT OR IGNORE INTO RequirementSetRequirements (RequirementSetId, RequirementId) VALUES
('NPK_INDUSTRIAL_ZONE_SCIENCE_REQUIREMENTSET', 'REQUIRES_CITY_HAS_GOVERNOR_PROMOTION_NPK'),
('NPK_INDUSTRIAL_ZONE_SCIENCE_REQUIREMENTSET', 'REQUIRES_DISTRICT_IS_INDUSTRIAL_ZONE');
INSERT OR IGNORE INTO Modifiers (ModifierId, ModifierType, SubjectRequirementSetId) VALUES
('NPK_SCIENCE', 'MODIFIER_SINGLE_CITY_ADJUST_CITY_YIELD_MODIFIER', Null),
('NPK_PRODUCTION', 'MODIFIER_SINGLE_CITY_ADJUST_CITY_YIELD_MODIFIER', Null),
('NPK_INDUSTRIAL_ZONE_SCIENCE', 'MODIFIER_ALL_DISTRICTS_ADJUST_YIELD_BASED_ON_ADJACENCY_BONUS', 'NPK_INDUSTRIAL_ZONE_SCIENCE_REQUIREMENTSET');
INSERT OR IGNORE INTO ModifierArguments (ModifierId, Name, Value) VALUES
('NPK_SCIENCE' , 'YieldType' , 'YIELD_SCIENCE'),
('NPK_SCIENCE' , 'Amount' , 5),
('NPK_PRODUCTION' , 'YieldType' , 'YIELD_PRODUCTION'),
('NPK_PRODUCTION' , 'Amount' , 5),
('NPK_INDUSTRIAL_ZONE_SCIENCE' , 'YieldTypeToMirror' , 'YIELD_PRODUCTION'),
('NPK_INDUSTRIAL_ZONE_SCIENCE' , 'YieldTypeToGrant' , 'YIELD_SCIENCE');
INSERT OR IGNORE INTO GovernorPromotionModifiers (GovernorPromotionType, ModifierId) VALUES
('GOVERNOR_PROMOTION_NPK', 'NPK_INDUSTRIAL_ZONE_SCIENCE'),
('GOVERNOR_PROMOTION_NPK', 'NPK_SCIENCE'),
('GOVERNOR_PROMOTION_NPK', 'NPK_PRODUCTION');
UPDATE GovernorPromotionPrereqs SET PrereqGovernorPromotion = 'GOVERNOR_PROMOTION_NPK' WHERE GovernorPromotionType = 'GOVERNOR_PROMOTION_RESOURCE_MANAGER_VERTICAL_INTEGRATION';
UPDATE GovernorPromotionPrereqs SET PrereqGovernorPromotion = 'GOVERNOR_PROMOTION_NPK' WHERE GovernorPromotionType = 'GOVERNOR_PROMOTION_RESOURCE_MANAGER_INDUSTRIALIST';
UPDATE GovernorPromotions SET Level = 3, Column = 3 WHERE GovernorPromotionType = 'GOVERNOR_PROMOTION_RESOURCE_MANAGER_INDUSTRIALIST';
UPDATE GovernorPromotions SET Level = 1, Column = 4 WHERE GovernorPromotionType = 'GOVERNOR_PROMOTION_RESOURCE_MANAGER_BLACK_MARKETEER';
/* UPDATE ModifierArguments SET Value='6' WHERE ModifierId='INDUSTRIALIST_COAL_POWER_PLANT_PRODUCTION' AND Name='Amount';
UPDATE ModifierArguments SET Value='6' WHERE ModifierId='INDUSTRIALIST_OIL_POWER_PLANT_PRODUCTION' AND Name='Amount';
UPDATE ModifierArguments SET Value='6' WHERE ModifierId='INDUSTRIALIST_NUCLEAR_POWER_PLANT_PRODUCTION' AND Name='Amount';
UPDATE ModifierArguments SET Value='6' WHERE ModifierId='INDUSTRIALIST_RESOURCE_POWER_PROVIDED' AND Name='Amount';
*/
INSERT OR IGNORE INTO Modifiers (ModifierId, ModifierType, SubjectRequirementSetId) VALUES
('GOVERNOR_INDUSTRIALIST_MODIFIER_WORKSHOP', 'MODIFIER_SINGLE_CITY_ADJUST_YIELD_CHANGE', 'BUILDING_IS_WORKSHOP_ETHIOPIA'),
('GOVERNOR_INDUSTRIALIST_MODIFIER_FACTORY', 'MODIFIER_SINGLE_CITY_ADJUST_YIELD_CHANGE', 'BUILDING_IS_FACTORY_ETHIOPIA'),
('GOVERNOR_INDUSTRIALIST_MODIFIER_POWER_PLANT', 'MODIFIER_SINGLE_CITY_ADJUST_YIELD_CHANGE', 'BUILDING_IS_POWER_PLANT_ETHIOPIA'),
('GOVERNOR_INDUSTRIALIST_MODIFIER_WORKSHOP_GOLD', 'MODIFIER_SINGLE_CITY_ADJUST_YIELD_CHANGE', 'BUILDING_IS_WORKSHOP_ETHIOPIA'),
('GOVERNOR_INDUSTRIALIST_MODIFIER_FACTORY_GOLD', 'MODIFIER_SINGLE_CITY_ADJUST_YIELD_CHANGE', 'BUILDING_IS_FACTORY_ETHIOPIA'),
('GOVERNOR_INDUSTRIALIST_MODIFIER_POWER_PLANT_GOLD', 'MODIFIER_SINGLE_CITY_ADJUST_YIELD_CHANGE', 'BUILDING_IS_POWER_PLANT_ETHIOPIA');
INSERT OR IGNORE INTO ModifierArguments (ModifierId, Name, Value) VALUES
('GOVERNOR_INDUSTRIALIST_MODIFIER_WORKSHOP' , 'YieldType' , 'YIELD_PRODUCTION'),
('GOVERNOR_INDUSTRIALIST_MODIFIER_WORKSHOP', 'Amount', 10),
('GOVERNOR_INDUSTRIALIST_MODIFIER_FACTORY' , 'YieldType' , 'YIELD_PRODUCTION'),
('GOVERNOR_INDUSTRIALIST_MODIFIER_FACTORY', 'Amount', 10),
('GOVERNOR_INDUSTRIALIST_MODIFIER_POWER_PLANT' , 'YieldType' , 'YIELD_PRODUCTION'),
('GOVERNOR_INDUSTRIALIST_MODIFIER_POWER_PLANT', 'Amount', 10),
('GOVERNOR_INDUSTRIALIST_MODIFIER_WORKSHOP_GOLD' , 'YieldType' , 'YIELD_GOLD'),
('GOVERNOR_INDUSTRIALIST_MODIFIER_WORKSHOP_GOLD', 'Amount', -10),
('GOVERNOR_INDUSTRIALIST_MODIFIER_FACTORY_GOLD' , 'YieldType' , 'YIELD_GOLD'),
('GOVERNOR_INDUSTRIALIST_MODIFIER_FACTORY_GOLD', 'Amount', -10),
('GOVERNOR_INDUSTRIALIST_MODIFIER_POWER_PLANT_GOLD' , 'YieldType' , 'YIELD_GOLD'),
('GOVERNOR_INDUSTRIALIST_MODIFIER_POWER_PLANT_GOLD', 'Amount', -10);
DELETE FROM GovernorPromotionModifiers WHERE GovernorPromotionType = 'GOVERNOR_PROMOTION_RESOURCE_MANAGER_INDUSTRIALIST';
INSERT OR IGNORE INTO GovernorPromotionModifiers (GovernorPromotionType, ModifierId) VALUES
('GOVERNOR_PROMOTION_RESOURCE_MANAGER_INDUSTRIALIST', 'GOVERNOR_INDUSTRIALIST_MODIFIER_WORKSHOP'),
('GOVERNOR_PROMOTION_RESOURCE_MANAGER_INDUSTRIALIST', 'GOVERNOR_INDUSTRIALIST_MODIFIER_FACTORY'),
('GOVERNOR_PROMOTION_RESOURCE_MANAGER_INDUSTRIALIST', 'GOVERNOR_INDUSTRIALIST_MODIFIER_POWER_PLANT'),
('GOVERNOR_PROMOTION_RESOURCE_MANAGER_INDUSTRIALIST', 'GOVERNOR_INDUSTRIALIST_MODIFIER_WORKSHOP_GOLD'),
('GOVERNOR_PROMOTION_RESOURCE_MANAGER_INDUSTRIALIST', 'GOVERNOR_INDUSTRIALIST_MODIFIER_FACTORY_GOLD'),
('GOVERNOR_PROMOTION_RESOURCE_MANAGER_INDUSTRIALIST', 'GOVERNOR_INDUSTRIALIST_MODIFIER_POWER_PLANT_GOLD');
-- INSERT INTO Types (Type, Kind) VALUES
-- ('GOVERNOR_INDUSTRIALIST_SPECIALIST_PRODUCTION_INDUSTRIAL_ZONE', 'KIND_BUILDING');
-- INSERT OR IGNORE INTO Buildings (BuildingType, Name, Cost, PrereqDistrict, InternalOnly) VALUES
-- ('GOVERNOR_INDUSTRIALIST_SPECIALIST_PRODUCTION_INDUSTRIAL_ZONE', 'LOC_GOVERNOR_INDUSTRIALIST_SPECIALIST_PRODUCTION_NAME', 0, 'DISTRICT_INDUSTRIAL_ZONE', 1);
-- INSERT OR IGNORE INTO Building_CitizenYieldChanges (BuildingType, YieldType, YieldChange) VALUES
-- ('GOVERNOR_INDUSTRIALIST_SPECIALIST_PRODUCTION_INDUSTRIAL_ZONE', 'YIELD_GOLD', -10),
-- ('GOVERNOR_INDUSTRIALIST_SPECIALIST_PRODUCTION_INDUSTRIAL_ZONE', 'YIELD_PRODUCTION', 10);