-
Notifications
You must be signed in to change notification settings - Fork 0
/
SDG_Beliefs12_Wonders.sql
126 lines (91 loc) · 15.2 KB
/
SDG_Beliefs12_Wonders.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
-- WONDERS
-- ------------------------------------
-- ------------------------------------
-- Monument to the Gods
-- ------------------------------------
-- ------------------------------------
INSERT INTO Types (Type, Kind) VALUES ('SDG_MONUMENT_TO_THE_GODS', 'KIND_BELIEF') ;
INSERT INTO BeliefClasses (BeliefClassType, Name, MaxInReligion, AdoptionOrder)
SELECT 'SDG_BELIEF_CLASS_WONDERS_' || (SELECT cast(COUNT(BeliefType) + 100 as text) FROM Beliefs WHERE BeliefClassType LIKE 'SDG_BELIEF_CLASS_%'), 'LOC_SDG_BELIEF_CLASS_WONDERS_NAME', 999, (SELECT COUNT(BeliefType) + 100 FROM Beliefs WHERE BeliefClassType LIKE 'SDG_BELIEF_CLASS_%') ;
INSERT INTO Beliefs (BeliefType, Name, Description, BeliefClassType)
SELECT 'SDG_MONUMENT_TO_THE_GODS', 'LOC_SDG_MONUMENT_TO_THE_GODS', 'LOC_SDG_MONUMENT_TO_THE_GODS_DESCRIPTION', 'SDG_BELIEF_CLASS_WONDERS_' || (SELECT cast(COUNT(BeliefType) + 100 as text) FROM Beliefs WHERE BeliefClassType LIKE 'SDG_BELIEF_CLASS_%') ;
INSERT INTO BeliefModifiers (BeliefType, ModifierID)
SELECT 'SDG_MONUMENT_TO_THE_GODS', 'SDG_MONUMENT_TO_THE_GODS_CITIES_ATTACH_MODIFIER_' || SUBSTR(BuildingType, 10) FROM Buildings LEFT JOIN Technologies ON Buildings.PrereqTech = Technologies.TechnologyType LEFT JOIN Civics ON Buildings.PrereqCivic = Civics.CivicType
WHERE IsWonder = 1 AND (Technologies.EraType = 'ERA_ANCIENT' OR Civics.EraType = 'ERA_ANCIENT' OR Technologies.EraType = 'ERA_CLASSICAL' OR Civics.EraType = 'ERA_CLASSICAL') ;
INSERT INTO Modifiers (ModifierId, ModifierType, SubjectRequirementSetId)
SELECT 'SDG_MONUMENT_TO_THE_GODS_CITIES_ATTACH_MODIFIER_' || SUBSTR(BuildingType, 10), 'MODIFIER_ALL_CITIES_ADJUST_BUILDING_PRODUCTION', 'CITY_FOLLOWS_RELIGION_REQUIREMENTS' FROM Buildings LEFT JOIN Technologies ON Buildings.PrereqTech = Technologies.TechnologyType LEFT JOIN Civics ON Buildings.PrereqCivic = Civics.CivicType
WHERE IsWonder = 1 AND (Technologies.EraType = 'ERA_ANCIENT' OR Civics.EraType = 'ERA_ANCIENT' OR Technologies.EraType = 'ERA_CLASSICAL' OR Civics.EraType = 'ERA_CLASSICAL') ;
INSERT INTO ModifierArguments (ModifierId, Name, Value)
SELECT 'SDG_MONUMENT_TO_THE_GODS_CITIES_ATTACH_MODIFIER_' || SUBSTR(BuildingType, 10), 'BuildingType', BuildingType FROM Buildings LEFT JOIN Technologies ON Buildings.PrereqTech = Technologies.TechnologyType LEFT JOIN Civics ON Buildings.PrereqCivic = Civics.CivicType
WHERE IsWonder = 1 AND (Technologies.EraType = 'ERA_ANCIENT' OR Civics.EraType = 'ERA_ANCIENT' OR Technologies.EraType = 'ERA_CLASSICAL' OR Civics.EraType = 'ERA_CLASSICAL') ;
INSERT INTO ModifierArguments (ModifierId, Name, Value)
SELECT 'SDG_MONUMENT_TO_THE_GODS_CITIES_ATTACH_MODIFIER_' || SUBSTR(BuildingType, 10), 'Amount', 50 FROM Buildings LEFT JOIN Technologies ON Buildings.PrereqTech = Technologies.TechnologyType LEFT JOIN Civics ON Buildings.PrereqCivic = Civics.CivicType
WHERE IsWonder = 1 AND (Technologies.EraType = 'ERA_ANCIENT' OR Civics.EraType = 'ERA_ANCIENT' OR Technologies.EraType = 'ERA_CLASSICAL' OR Civics.EraType = 'ERA_CLASSICAL') ;
INSERT INTO Types (Type, Kind) VALUES ('SDG_MONUMENT_TO_THE_GODS2', 'KIND_BELIEF') ;
INSERT INTO BeliefClasses (BeliefClassType, Name, MaxInReligion, AdoptionOrder)
SELECT 'SDG_BELIEF_CLASS_WONDERS_' || (SELECT cast(COUNT(BeliefType) + 100 as text) FROM Beliefs WHERE BeliefClassType LIKE 'SDG_BELIEF_CLASS_%'), 'LOC_SDG_BELIEF_CLASS_WONDERS_NAME', 999, (SELECT COUNT(BeliefType) + 100 FROM Beliefs WHERE BeliefClassType LIKE 'SDG_BELIEF_CLASS_%') ;
INSERT INTO Beliefs (BeliefType, Name, Description, BeliefClassType)
SELECT 'SDG_MONUMENT_TO_THE_GODS2', 'LOC_SDG_MONUMENT_TO_THE_GODS2', 'LOC_SDG_MONUMENT_TO_THE_GODS2_DESCRIPTION', 'SDG_BELIEF_CLASS_WONDERS_' || (SELECT cast(COUNT(BeliefType) + 100 as text) FROM Beliefs WHERE BeliefClassType LIKE 'SDG_BELIEF_CLASS_%') ;
INSERT INTO BeliefModifiers (BeliefType, ModifierID)
SELECT 'SDG_MONUMENT_TO_THE_GODS2', 'SDG_MONUMENT_TO_THE_GODS2_CITIES_ATTACH_MODIFIER_' || SUBSTR(BuildingType, 10) FROM Buildings LEFT JOIN Technologies ON Buildings.PrereqTech = Technologies.TechnologyType LEFT JOIN Civics ON Buildings.PrereqCivic = Civics.CivicType
WHERE IsWonder = 1 AND (Technologies.EraType = 'ERA_CLASSICAL' OR Civics.EraType = 'ERA_CLASSICAL' OR Technologies.EraType = 'ERA_MEDIEVAL' OR Civics.EraType = 'ERA_MEDIEVAL') ;
INSERT INTO Modifiers (ModifierId, ModifierType, SubjectRequirementSetId)
SELECT 'SDG_MONUMENT_TO_THE_GODS2_CITIES_ATTACH_MODIFIER_' || SUBSTR(BuildingType, 10), 'MODIFIER_ALL_CITIES_ADJUST_BUILDING_PRODUCTION', 'CITY_FOLLOWS_RELIGION_REQUIREMENTS' FROM Buildings LEFT JOIN Technologies ON Buildings.PrereqTech = Technologies.TechnologyType LEFT JOIN Civics ON Buildings.PrereqCivic = Civics.CivicType
WHERE IsWonder = 1 AND (Technologies.EraType = 'ERA_CLASSICAL' OR Civics.EraType = 'ERA_CLASSICAL' OR Technologies.EraType = 'ERA_MEDIEVAL' OR Civics.EraType = 'ERA_MEDIEVAL') ;
INSERT INTO ModifierArguments (ModifierId, Name, Value)
SELECT 'SDG_MONUMENT_TO_THE_GODS2_CITIES_ATTACH_MODIFIER_' || SUBSTR(BuildingType, 10), 'BuildingType', BuildingType FROM Buildings LEFT JOIN Technologies ON Buildings.PrereqTech = Technologies.TechnologyType LEFT JOIN Civics ON Buildings.PrereqCivic = Civics.CivicType
WHERE IsWonder = 1 AND (Technologies.EraType = 'ERA_CLASSICAL' OR Civics.EraType = 'ERA_CLASSICAL' OR Technologies.EraType = 'ERA_MEDIEVAL' OR Civics.EraType = 'ERA_MEDIEVAL') ;
INSERT INTO ModifierArguments (ModifierId, Name, Value)
SELECT 'SDG_MONUMENT_TO_THE_GODS2_CITIES_ATTACH_MODIFIER_' || SUBSTR(BuildingType, 10), 'Amount', 50 FROM Buildings LEFT JOIN Technologies ON Buildings.PrereqTech = Technologies.TechnologyType LEFT JOIN Civics ON Buildings.PrereqCivic = Civics.CivicType
WHERE IsWonder = 1 AND (Technologies.EraType = 'ERA_CLASSICAL' OR Civics.EraType = 'ERA_CLASSICAL' OR Technologies.EraType = 'ERA_MEDIEVAL' OR Civics.EraType = 'ERA_MEDIEVAL') ;
INSERT INTO Types (Type, Kind) VALUES ('SDG_MONUMENT_TO_THE_GODS3', 'KIND_BELIEF') ;
INSERT INTO BeliefClasses (BeliefClassType, Name, MaxInReligion, AdoptionOrder)
SELECT 'SDG_BELIEF_CLASS_WONDERS_' || (SELECT cast(COUNT(BeliefType) + 100 as text) FROM Beliefs WHERE BeliefClassType LIKE 'SDG_BELIEF_CLASS_%'), 'LOC_SDG_BELIEF_CLASS_WONDERS_NAME', 999, (SELECT COUNT(BeliefType) + 100 FROM Beliefs WHERE BeliefClassType LIKE 'SDG_BELIEF_CLASS_%') ;
INSERT INTO Beliefs (BeliefType, Name, Description, BeliefClassType)
SELECT 'SDG_MONUMENT_TO_THE_GODS3', 'LOC_SDG_MONUMENT_TO_THE_GODS3', 'LOC_SDG_MONUMENT_TO_THE_GODS3_DESCRIPTION', 'SDG_BELIEF_CLASS_WONDERS_' || (SELECT cast(COUNT(BeliefType) + 100 as text) FROM Beliefs WHERE BeliefClassType LIKE 'SDG_BELIEF_CLASS_%') ;
INSERT INTO BeliefModifiers (BeliefType, ModifierID)
SELECT 'SDG_MONUMENT_TO_THE_GODS3', 'SDG_MONUMENT_TO_THE_GODS3_CITIES_ATTACH_MODIFIER_' || SUBSTR(BuildingType, 10) FROM Buildings LEFT JOIN Technologies ON Buildings.PrereqTech = Technologies.TechnologyType LEFT JOIN Civics ON Buildings.PrereqCivic = Civics.CivicType
WHERE IsWonder = 1 AND (Technologies.EraType = 'ERA_MEDIEVAL' OR Civics.EraType = 'ERA_MEDIEVAL' OR Technologies.EraType = 'ERA_RENAISSANCE' OR Civics.EraType = 'ERA_RENAISSANCE') ;
INSERT INTO Modifiers (ModifierId, ModifierType, SubjectRequirementSetId)
SELECT 'SDG_MONUMENT_TO_THE_GODS3_CITIES_ATTACH_MODIFIER_' || SUBSTR(BuildingType, 10), 'MODIFIER_ALL_CITIES_ADJUST_BUILDING_PRODUCTION', 'CITY_FOLLOWS_RELIGION_REQUIREMENTS' FROM Buildings LEFT JOIN Technologies ON Buildings.PrereqTech = Technologies.TechnologyType LEFT JOIN Civics ON Buildings.PrereqCivic = Civics.CivicType
WHERE IsWonder = 1 AND (Technologies.EraType = 'ERA_MEDIEVAL' OR Civics.EraType = 'ERA_MEDIEVAL' OR Technologies.EraType = 'ERA_RENAISSANCE' OR Civics.EraType = 'ERA_RENAISSANCE') ;
INSERT INTO ModifierArguments (ModifierId, Name, Value)
SELECT 'SDG_MONUMENT_TO_THE_GODS3_CITIES_ATTACH_MODIFIER_' || SUBSTR(BuildingType, 10), 'BuildingType', BuildingType FROM Buildings LEFT JOIN Technologies ON Buildings.PrereqTech = Technologies.TechnologyType LEFT JOIN Civics ON Buildings.PrereqCivic = Civics.CivicType
WHERE IsWonder = 1 AND (Technologies.EraType = 'ERA_MEDIEVAL' OR Civics.EraType = 'ERA_MEDIEVAL' OR Technologies.EraType = 'ERA_RENAISSANCE' OR Civics.EraType = 'ERA_RENAISSANCE') ;
INSERT INTO ModifierArguments (ModifierId, Name, Value)
SELECT 'SDG_MONUMENT_TO_THE_GODS3_CITIES_ATTACH_MODIFIER_' || SUBSTR(BuildingType, 10), 'Amount', 50 FROM Buildings LEFT JOIN Technologies ON Buildings.PrereqTech = Technologies.TechnologyType LEFT JOIN Civics ON Buildings.PrereqCivic = Civics.CivicType
WHERE IsWonder = 1 AND (Technologies.EraType = 'ERA_MEDIEVAL' OR Civics.EraType = 'ERA_MEDIEVAL' OR Technologies.EraType = 'ERA_RENAISSANCE' OR Civics.EraType = 'ERA_RENAISSANCE') ;
INSERT INTO Types (Type, Kind) VALUES ('SDG_MONUMENT_TO_THE_GODS4', 'KIND_BELIEF') ;
INSERT INTO BeliefClasses (BeliefClassType, Name, MaxInReligion, AdoptionOrder)
SELECT 'SDG_BELIEF_CLASS_WONDERS_' || (SELECT cast(COUNT(BeliefType) + 100 as text) FROM Beliefs WHERE BeliefClassType LIKE 'SDG_BELIEF_CLASS_%'), 'LOC_SDG_BELIEF_CLASS_WONDERS_NAME', 999, (SELECT COUNT(BeliefType) + 100 FROM Beliefs WHERE BeliefClassType LIKE 'SDG_BELIEF_CLASS_%') ;
INSERT INTO Beliefs (BeliefType, Name, Description, BeliefClassType)
SELECT 'SDG_MONUMENT_TO_THE_GODS4', 'LOC_SDG_MONUMENT_TO_THE_GODS4', 'LOC_SDG_MONUMENT_TO_THE_GODS4_DESCRIPTION', 'SDG_BELIEF_CLASS_WONDERS_' || (SELECT cast(COUNT(BeliefType) + 100 as text) FROM Beliefs WHERE BeliefClassType LIKE 'SDG_BELIEF_CLASS_%') ;
INSERT INTO BeliefModifiers (BeliefType, ModifierID)
SELECT 'SDG_MONUMENT_TO_THE_GODS4', 'SDG_MONUMENT_TO_THE_GODS4_CITIES_ATTACH_MODIFIER_' || SUBSTR(BuildingType, 10) FROM Buildings LEFT JOIN Technologies ON Buildings.PrereqTech = Technologies.TechnologyType LEFT JOIN Civics ON Buildings.PrereqCivic = Civics.CivicType
WHERE IsWonder = 1 AND (Technologies.EraType = 'ERA_RENAISSANCE' OR Civics.EraType = 'ERA_RENAISSANCE' OR Technologies.EraType = 'ERA_INDUSTRIAL' OR Civics.EraType = 'ERA_INDUSTRIAL') ;
INSERT INTO Modifiers (ModifierId, ModifierType, SubjectRequirementSetId)
SELECT 'SDG_MONUMENT_TO_THE_GODS4_CITIES_ATTACH_MODIFIER_' || SUBSTR(BuildingType, 10), 'MODIFIER_ALL_CITIES_ADJUST_BUILDING_PRODUCTION', 'CITY_FOLLOWS_RELIGION_REQUIREMENTS' FROM Buildings LEFT JOIN Technologies ON Buildings.PrereqTech = Technologies.TechnologyType LEFT JOIN Civics ON Buildings.PrereqCivic = Civics.CivicType
WHERE IsWonder = 1 AND (Technologies.EraType = 'ERA_RENAISSANCE' OR Civics.EraType = 'ERA_RENAISSANCE' OR Technologies.EraType = 'ERA_INDUSTRIAL' OR Civics.EraType = 'ERA_INDUSTRIAL') ;
INSERT INTO ModifierArguments (ModifierId, Name, Value)
SELECT 'SDG_MONUMENT_TO_THE_GODS4_CITIES_ATTACH_MODIFIER_' || SUBSTR(BuildingType, 10), 'BuildingType', BuildingType FROM Buildings LEFT JOIN Technologies ON Buildings.PrereqTech = Technologies.TechnologyType LEFT JOIN Civics ON Buildings.PrereqCivic = Civics.CivicType
WHERE IsWonder = 1 AND (Technologies.EraType = 'ERA_RENAISSANCE' OR Civics.EraType = 'ERA_RENAISSANCE' OR Technologies.EraType = 'ERA_INDUSTRIAL' OR Civics.EraType = 'ERA_INDUSTRIAL') ;
INSERT INTO ModifierArguments (ModifierId, Name, Value)
SELECT 'SDG_MONUMENT_TO_THE_GODS4_CITIES_ATTACH_MODIFIER_' || SUBSTR(BuildingType, 10), 'Amount', 50 FROM Buildings LEFT JOIN Technologies ON Buildings.PrereqTech = Technologies.TechnologyType LEFT JOIN Civics ON Buildings.PrereqCivic = Civics.CivicType
WHERE IsWonder = 1 AND (Technologies.EraType = 'ERA_RENAISSANCE' OR Civics.EraType = 'ERA_RENAISSANCE' OR Technologies.EraType = 'ERA_INDUSTRIAL' OR Civics.EraType = 'ERA_INDUSTRIAL') ;
INSERT INTO Types (Type, Kind) VALUES ('SDG_MONUMENT_TO_THE_GODS5', 'KIND_BELIEF') ;
INSERT INTO BeliefClasses (BeliefClassType, Name, MaxInReligion, AdoptionOrder)
SELECT 'SDG_BELIEF_CLASS_WONDERS_' || (SELECT cast(COUNT(BeliefType) + 100 as text) FROM Beliefs WHERE BeliefClassType LIKE 'SDG_BELIEF_CLASS_%'), 'LOC_SDG_BELIEF_CLASS_WONDERS_NAME', 999, (SELECT COUNT(BeliefType) + 100 FROM Beliefs WHERE BeliefClassType LIKE 'SDG_BELIEF_CLASS_%') ;
INSERT INTO Beliefs (BeliefType, Name, Description, BeliefClassType)
SELECT 'SDG_MONUMENT_TO_THE_GODS5', 'LOC_SDG_MONUMENT_TO_THE_GODS5', 'LOC_SDG_MONUMENT_TO_THE_GODS5_DESCRIPTION', 'SDG_BELIEF_CLASS_WONDERS_' || (SELECT cast(COUNT(BeliefType) + 100 as text) FROM Beliefs WHERE BeliefClassType LIKE 'SDG_BELIEF_CLASS_%') ;
INSERT INTO BeliefModifiers (BeliefType, ModifierID)
SELECT 'SDG_MONUMENT_TO_THE_GODS5', 'SDG_MONUMENT_TO_THE_GODS5_CITIES_ATTACH_MODIFIER_' || SUBSTR(BuildingType, 10) FROM Buildings LEFT JOIN Technologies ON Buildings.PrereqTech = Technologies.TechnologyType LEFT JOIN Civics ON Buildings.PrereqCivic = Civics.CivicType
WHERE IsWonder = 1 AND (Technologies.EraType = 'ERA_INDUSTRIAL' OR Civics.EraType = 'ERA_INDUSTRIAL' OR Technologies.EraType = 'ERA_MODERN' OR Civics.EraType = 'ERA_MODERN' OR Technologies.EraType = 'ERA_ATOMIC' OR Civics.EraType = 'ERA_ATOMIC' OR Technologies.EraType = 'ERA_INFORMATION' OR Civics.EraType = 'ERA_INFORMATION' OR Technologies.EraType = 'ERA_FUTURE' OR Civics.EraType = 'ERA_FUTURE') ;
INSERT INTO Modifiers (ModifierId, ModifierType, SubjectRequirementSetId)
SELECT 'SDG_MONUMENT_TO_THE_GODS5_CITIES_ATTACH_MODIFIER_' || SUBSTR(BuildingType, 10), 'MODIFIER_ALL_CITIES_ADJUST_BUILDING_PRODUCTION', 'CITY_FOLLOWS_RELIGION_REQUIREMENTS' FROM Buildings LEFT JOIN Technologies ON Buildings.PrereqTech = Technologies.TechnologyType LEFT JOIN Civics ON Buildings.PrereqCivic = Civics.CivicType
WHERE IsWonder = 1 AND (Technologies.EraType = 'ERA_INDUSTRIAL' OR Civics.EraType = 'ERA_INDUSTRIAL' OR Technologies.EraType = 'ERA_MODERN' OR Civics.EraType = 'ERA_MODERN' OR Technologies.EraType = 'ERA_ATOMIC' OR Civics.EraType = 'ERA_ATOMIC' OR Technologies.EraType = 'ERA_INFORMATION' OR Civics.EraType = 'ERA_INFORMATION' OR Technologies.EraType = 'ERA_FUTURE' OR Civics.EraType = 'ERA_FUTURE') ;
INSERT INTO ModifierArguments (ModifierId, Name, Value)
SELECT 'SDG_MONUMENT_TO_THE_GODS5_CITIES_ATTACH_MODIFIER_' || SUBSTR(BuildingType, 10), 'BuildingType', BuildingType FROM Buildings LEFT JOIN Technologies ON Buildings.PrereqTech = Technologies.TechnologyType LEFT JOIN Civics ON Buildings.PrereqCivic = Civics.CivicType
WHERE IsWonder = 1 AND (Technologies.EraType = 'ERA_INDUSTRIAL' OR Civics.EraType = 'ERA_INDUSTRIAL' OR Technologies.EraType = 'ERA_MODERN' OR Civics.EraType = 'ERA_MODERN' OR Technologies.EraType = 'ERA_ATOMIC' OR Civics.EraType = 'ERA_ATOMIC' OR Technologies.EraType = 'ERA_INFORMATION' OR Civics.EraType = 'ERA_INFORMATION' OR Technologies.EraType = 'ERA_FUTURE' OR Civics.EraType = 'ERA_FUTURE') ;
INSERT INTO ModifierArguments (ModifierId, Name, Value)
SELECT 'SDG_MONUMENT_TO_THE_GODS5_CITIES_ATTACH_MODIFIER_' || SUBSTR(BuildingType, 10), 'Amount', 50 FROM Buildings LEFT JOIN Technologies ON Buildings.PrereqTech = Technologies.TechnologyType LEFT JOIN Civics ON Buildings.PrereqCivic = Civics.CivicType
WHERE IsWonder = 1 AND (Technologies.EraType = 'ERA_INDUSTRIAL' OR Civics.EraType = 'ERA_INDUSTRIAL' OR Technologies.EraType = 'ERA_MODERN' OR Civics.EraType = 'ERA_MODERN' OR Technologies.EraType = 'ERA_ATOMIC' OR Civics.EraType = 'ERA_ATOMIC' OR Technologies.EraType = 'ERA_INFORMATION' OR Civics.EraType = 'ERA_INFORMATION' OR Technologies.EraType = 'ERA_FUTURE' OR Civics.EraType = 'ERA_FUTURE') ;