-
Notifications
You must be signed in to change notification settings - Fork 0
/
SDG_Beliefs06_Amenities.sql
148 lines (123 loc) · 14.5 KB
/
SDG_Beliefs06_Amenities.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
-- AMENITIES
-- ------------------------------------
-- ------------------------------------
-- Nearer My God, To Thee
-- ------------------------------------
-- ------------------------------------
INSERT INTO Types (Type, Kind) VALUES ('SDG_NEARER_MY_GOD', 'KIND_BELIEF') ;
INSERT INTO BeliefClasses (BeliefClassType, Name, MaxInReligion, AdoptionOrder)
SELECT 'SDG_BELIEF_CLASS_AMENITIES_' || (SELECT cast(COUNT(BeliefType) + 100 as text) FROM Beliefs WHERE BeliefClassType LIKE 'SDG_BELIEF_CLASS_%'), 'LOC_SDG_BELIEF_CLASS_AMENITIES_NAME', 999, (SELECT COUNT(BeliefType) + 100 FROM Beliefs WHERE BeliefClassType LIKE 'SDG_BELIEF_CLASS_%') ;
INSERT INTO Beliefs (BeliefType, Name, Description, BeliefClassType)
SELECT 'SDG_NEARER_MY_GOD', 'LOC_SDG_NEARER_MY_GOD', 'LOC_SDG_NEARER_MY_GOD_DESCRIPTION', 'SDG_BELIEF_CLASS_AMENITIES_' || (SELECT cast(COUNT(BeliefType) + 100 as text) FROM Beliefs WHERE BeliefClassType LIKE 'SDG_BELIEF_CLASS_%') ;
INSERT INTO BeliefModifiers (BeliefType, ModifierID) VALUES ('SDG_NEARER_MY_GOD', 'SDG_NEARER_MY_GOD_YIELD') ;
INSERT INTO Modifiers (ModifierId, ModifierType, SubjectRequirementSetId) VALUES ('SDG_NEARER_MY_GOD_YIELD', 'DB_DM_CITIES_ADJUST_AMENITIES_FROM_RELIGION', 'CITY_FOLLOWS_RELIGION_REQUIREMENTS') ;
INSERT INTO ModifierArguments (ModifierId, Name, Value) VALUES ('SDG_NEARER_MY_GOD_YIELD', 'Amount', 1) ;
-- ------------------------------------
-- ------------------------------------
-- BE_STILL_MY_SOUL
-- ------------------------------------
-- ------------------------------------
INSERT INTO Types (Type, Kind) VALUES ('SDG_BE_STILL_MY_SOUL', 'KIND_BELIEF') ;
INSERT INTO BeliefClasses (BeliefClassType, Name, MaxInReligion, AdoptionOrder)
SELECT 'SDG_BELIEF_CLASS_AMENITIES_' || (SELECT cast(COUNT(BeliefType) + 100 as text) FROM Beliefs WHERE BeliefClassType LIKE 'SDG_BELIEF_CLASS_%'), 'LOC_SDG_BELIEF_CLASS_AMENITIES_NAME', 999, (SELECT COUNT(BeliefType) + 100 FROM Beliefs WHERE BeliefClassType LIKE 'SDG_BELIEF_CLASS_%') ;
INSERT INTO Beliefs (BeliefType, Name, Description, BeliefClassType)
SELECT 'SDG_BE_STILL_MY_SOUL', 'LOC_SDG_BE_STILL_MY_SOUL', 'LOC_SDG_BE_STILL_MY_SOUL_DESCRIPTION', 'SDG_BELIEF_CLASS_AMENITIES_' || (SELECT cast(COUNT(BeliefType) + 100 as text) FROM Beliefs WHERE BeliefClassType LIKE 'SDG_BELIEF_CLASS_%') ;
INSERT INTO BeliefModifiers (BeliefType, ModifierID)
WITH counter as (SELECT 7 x UNION SELECT x + 7 FROM counter WHERE x < 90)
SELECT 'SDG_BE_STILL_MY_SOUL', 'SDG_BE_STILL_MY_SOUL_YIELD_' || x FROM counter ;
INSERT INTO Modifiers (ModifierId, ModifierType, SubjectRequirementSetId)
WITH counter as (SELECT 7 x UNION SELECT x + 7 FROM counter WHERE x < 90)
SELECT 'SDG_BE_STILL_MY_SOUL_YIELD_' || x, 'DB_DM_CITIES_ADJUST_AMENITIES_FROM_RELIGION', 'DB_REQSET_CITY_HAS_' || x || '_POPULATION_AND_FOLLOWS_RELIGION' FROM counter ;
INSERT INTO ModifierArguments (ModifierId, Name, Value)
WITH counter as (SELECT 7 x UNION SELECT x + 7 FROM counter WHERE x < 90)
SELECT 'SDG_BE_STILL_MY_SOUL_YIELD_' || x, 'Amount', 1 FROM counter ;
-- ------------------------------------
-- ------------------------------------
-- ODE_TO_JOY
-- ------------------------------------
-- ------------------------------------
INSERT INTO Types (Type, Kind) VALUES ('SDG_ODE_TO_JOY', 'KIND_BELIEF') ;
INSERT INTO BeliefClasses (BeliefClassType, Name, MaxInReligion, AdoptionOrder)
SELECT 'SDG_BELIEF_CLASS_AMENITIES_' || (SELECT cast(COUNT(BeliefType) + 100 as text) FROM Beliefs WHERE BeliefClassType LIKE 'SDG_BELIEF_CLASS_%'), 'LOC_SDG_BELIEF_CLASS_AMENITIES_NAME', 999, (SELECT COUNT(BeliefType) + 100 FROM Beliefs WHERE BeliefClassType LIKE 'SDG_BELIEF_CLASS_%') ;
INSERT INTO Beliefs (BeliefType, Name, Description, BeliefClassType)
SELECT 'SDG_ODE_TO_JOY', 'LOC_SDG_ODE_TO_JOY', 'LOC_SDG_ODE_TO_JOY_DESCRIPTION', 'SDG_BELIEF_CLASS_AMENITIES_' || (SELECT cast(COUNT(BeliefType) + 100 as text) FROM Beliefs WHERE BeliefClassType LIKE 'SDG_BELIEF_CLASS_%') ;
INSERT INTO BeliefModifiers (BeliefType, ModifierID)
WITH counter as (SELECT 2 x UNION SELECT x + 2 FROM counter WHERE x < 18)
SELECT 'SDG_ODE_TO_JOY', 'SDG_ODE_TO_JOY_YIELD_' || x FROM counter ;
INSERT INTO Modifiers (ModifierId, ModifierType, SubjectRequirementSetId)
WITH counter as (SELECT 2 x UNION SELECT x + 2 FROM counter WHERE x < 18)
SELECT 'SDG_ODE_TO_JOY_YIELD_' || x, 'DB_DM_CITIES_ADJUST_AMENITIES_FROM_RELIGION', 'DB_REQSET_CITY_HAS_' || x || '_DISTRICTS_AND_FOLLOWS_RELIGION' FROM counter ;
INSERT INTO ModifierArguments (ModifierId, Name, Value)
WITH counter as (SELECT 2 x UNION SELECT x + 2 FROM counter WHERE x < 18)
SELECT 'SDG_ODE_TO_JOY_YIELD_' || x, 'Amount', 1 FROM counter ;
-- ------------------------------------
-- ------------------------------------
-- HALLELUJAH_CHORUS
-- ------------------------------------
-- ------------------------------------
INSERT INTO Types (Type, Kind) VALUES ('SDG_HALLELUJAH_CHORUS', 'KIND_BELIEF') ;
INSERT INTO BeliefClasses (BeliefClassType, Name, MaxInReligion, AdoptionOrder)
SELECT 'SDG_BELIEF_CLASS_AMENITIES_' || (SELECT cast(COUNT(BeliefType) + 100 as text) FROM Beliefs WHERE BeliefClassType LIKE 'SDG_BELIEF_CLASS_%'), 'LOC_SDG_BELIEF_CLASS_AMENITIES_NAME', 999, (SELECT COUNT(BeliefType) + 100 FROM Beliefs WHERE BeliefClassType LIKE 'SDG_BELIEF_CLASS_%') ;
INSERT INTO Beliefs (BeliefType, Name, Description, BeliefClassType)
SELECT 'SDG_HALLELUJAH_CHORUS', 'LOC_SDG_HALLELUJAH_CHORUS', 'LOC_SDG_HALLELUJAH_CHORUS_DESCRIPTION', 'SDG_BELIEF_CLASS_AMENITIES_' || (SELECT cast(COUNT(BeliefType) + 100 as text) FROM Beliefs WHERE BeliefClassType LIKE 'SDG_BELIEF_CLASS_%') ;
INSERT INTO BeliefModifiers (BeliefType, ModifierID) VALUES ('SDG_HALLELUJAH_CHORUS', 'SDG_HALLELUJAH_CHORUS_CITIES_ATTACH_ENTERTAINMENT_COMPLEX_FAITH_MODIFIER') ;
INSERT INTO Modifiers (ModifierId, ModifierType, SubjectRequirementSetId) VALUES ('SDG_HALLELUJAH_CHORUS_CITIES_ATTACH_ENTERTAINMENT_COMPLEX_FAITH_MODIFIER', 'MODIFIER_ALL_CITIES_ATTACH_MODIFIER', 'CITY_FOLLOWS_RELIGION_REQUIREMENTS') ;
INSERT INTO ModifierArguments (ModifierId, Name, Value) VALUES ('SDG_HALLELUJAH_CHORUS_CITIES_ATTACH_ENTERTAINMENT_COMPLEX_FAITH_MODIFIER', 'ModifierId', 'SDG_HALLELUJAH_CHORUS_ENTERTAINMENT_COMPLEX_FAITH') ;
INSERT INTO Modifiers (ModifierId, ModifierType, SubjectRequirementSetId) VALUES ('SDG_HALLELUJAH_CHORUS_ENTERTAINMENT_COMPLEX_FAITH', 'DB_DM_ADJUST_DISTRICT_YIELD', 'DB_REQSET_IS_ENTERTAINMENT_COMPLEX') ;
INSERT INTO ModifierArguments (ModifierId, Name, Value) VALUES
('SDG_HALLELUJAH_CHORUS_ENTERTAINMENT_COMPLEX_FAITH', 'YieldType', 'YIELD_FAITH'),
('SDG_HALLELUJAH_CHORUS_ENTERTAINMENT_COMPLEX_FAITH', 'Amount', 1) ;
INSERT INTO BeliefModifiers (BeliefType, ModifierID) VALUES ('SDG_HALLELUJAH_CHORUS', 'SDG_HALLELUJAH_CHORUS_CITIES_ATTACH_ENTERTAINMENT_COMPLEX_FAITH_ADJACENCY_MODIFIER') ;
INSERT INTO Modifiers (ModifierId, ModifierType, SubjectRequirementSetId) VALUES ('SDG_HALLELUJAH_CHORUS_CITIES_ATTACH_ENTERTAINMENT_COMPLEX_FAITH_ADJACENCY_MODIFIER', 'MODIFIER_ALL_CITIES_ATTACH_MODIFIER', 'CITY_FOLLOWS_RELIGION_REQUIREMENTS') ;
INSERT INTO ModifierArguments (ModifierId, Name, Value) VALUES ('SDG_HALLELUJAH_CHORUS_CITIES_ATTACH_ENTERTAINMENT_COMPLEX_FAITH_ADJACENCY_MODIFIER', 'ModifierId', 'SDG_HALLELUJAH_CHORUS_ENTERTAINMENT_COMPLEX_FAITH_ADJACENCY') ;
INSERT INTO Modifiers (ModifierId, ModifierType, SubjectRequirementSetId) VALUES ('SDG_HALLELUJAH_CHORUS_ENTERTAINMENT_COMPLEX_FAITH_ADJACENCY', 'DB_DM_ADJUST_DISTRICT_YIELD', 'DB_REQSET_IS_ENTERTAINMENT_COMPLEX_NEXT_TO_HOLY_SITE') ;
INSERT INTO ModifierArguments (ModifierId, Name, Value) VALUES
('SDG_HALLELUJAH_CHORUS_ENTERTAINMENT_COMPLEX_FAITH_ADJACENCY', 'Amount', 1),
('SDG_HALLELUJAH_CHORUS_ENTERTAINMENT_COMPLEX_FAITH_ADJACENCY', 'YieldType', 'YIELD_FAITH') ;
INSERT INTO BeliefModifiers (BeliefType, ModifierID) VALUES ('SDG_HALLELUJAH_CHORUS', 'SDG_HALLELUJAH_CHORUS_CITIES_ATTACH_WATER_ENTERTAINMENT_COMPLEX_FAITH_MODIFIER') ;
INSERT INTO Modifiers (ModifierId, ModifierType, SubjectRequirementSetId) VALUES ('SDG_HALLELUJAH_CHORUS_CITIES_ATTACH_WATER_ENTERTAINMENT_COMPLEX_FAITH_MODIFIER', 'MODIFIER_ALL_CITIES_ATTACH_MODIFIER', 'CITY_FOLLOWS_RELIGION_REQUIREMENTS') ;
INSERT INTO ModifierArguments (ModifierId, Name, Value) VALUES ('SDG_HALLELUJAH_CHORUS_CITIES_ATTACH_WATER_ENTERTAINMENT_COMPLEX_FAITH_MODIFIER', 'ModifierId', 'SDG_HALLELUJAH_CHORUS_WATER_ENTERTAINMENT_COMPLEX_FAITH') ;
INSERT INTO Modifiers (ModifierId, ModifierType, SubjectRequirementSetId) VALUES ('SDG_HALLELUJAH_CHORUS_WATER_ENTERTAINMENT_COMPLEX_FAITH', 'DB_DM_ADJUST_DISTRICT_YIELD', 'DB_REQSET_IS_WATER_ENTERTAINMENT_COMPLEX') ;
INSERT INTO ModifierArguments (ModifierId, Name, Value) VALUES
('SDG_HALLELUJAH_CHORUS_WATER_ENTERTAINMENT_COMPLEX_FAITH', 'YieldType', 'YIELD_FAITH'),
('SDG_HALLELUJAH_CHORUS_WATER_ENTERTAINMENT_COMPLEX_FAITH', 'Amount', 1) ;
INSERT INTO BeliefModifiers (BeliefType, ModifierID) VALUES ('SDG_HALLELUJAH_CHORUS', 'SDG_HALLELUJAH_CHORUS_CITIES_ATTACH_WATER_ENTERTAINMENT_COMPLEX_FAITH_ADJACENCY_MODIFIER') ;
INSERT INTO Modifiers (ModifierId, ModifierType, SubjectRequirementSetId) VALUES ('SDG_HALLELUJAH_CHORUS_CITIES_ATTACH_WATER_ENTERTAINMENT_COMPLEX_FAITH_ADJACENCY_MODIFIER', 'MODIFIER_ALL_CITIES_ATTACH_MODIFIER', 'CITY_FOLLOWS_RELIGION_REQUIREMENTS') ;
INSERT INTO ModifierArguments (ModifierId, Name, Value) VALUES ('SDG_HALLELUJAH_CHORUS_CITIES_ATTACH_WATER_ENTERTAINMENT_COMPLEX_FAITH_ADJACENCY_MODIFIER', 'ModifierId', 'SDG_HALLELUJAH_CHORUS_WATER_ENTERTAINMENT_COMPLEX_FAITH_ADJACENCY') ;
INSERT INTO Modifiers (ModifierId, ModifierType, SubjectRequirementSetId) VALUES ('SDG_HALLELUJAH_CHORUS_WATER_ENTERTAINMENT_COMPLEX_FAITH_ADJACENCY', 'DB_DM_ADJUST_DISTRICT_YIELD', 'DB_REQSET_IS_WATER_ENTERTAINMENT_COMPLEX_NEXT_TO_HOLY_SITE') ;
INSERT INTO ModifierArguments (ModifierId, Name, Value) VALUES
('SDG_HALLELUJAH_CHORUS_WATER_ENTERTAINMENT_COMPLEX_FAITH_ADJACENCY', 'Amount', 1),
('SDG_HALLELUJAH_CHORUS_WATER_ENTERTAINMENT_COMPLEX_FAITH_ADJACENCY', 'YieldType', 'YIELD_FAITH') ;
INSERT INTO BeliefModifiers (BeliefType, ModifierID) VALUES ('SDG_HALLELUJAH_CHORUS', 'SDG_HALLELUJAH_CHORUS_CITIES_ATTACH_HOLY_SITE_AMENITY_MODIFIER') ;
INSERT INTO Modifiers (ModifierId, ModifierType, SubjectRequirementSetId) VALUES ('SDG_HALLELUJAH_CHORUS_CITIES_ATTACH_HOLY_SITE_AMENITY_MODIFIER', 'MODIFIER_ALL_CITIES_ATTACH_MODIFIER', 'CITY_FOLLOWS_RELIGION_REQUIREMENTS') ;
INSERT INTO ModifierArguments (ModifierId, Name, Value) VALUES ('SDG_HALLELUJAH_CHORUS_CITIES_ATTACH_HOLY_SITE_AMENITY_MODIFIER', 'ModifierId', 'SDG_HALLELUJAH_CHORUS_HOLY_SITE_AMENITY') ;
INSERT INTO Modifiers (ModifierId, ModifierType, SubjectRequirementSetId) VALUES ('SDG_HALLELUJAH_CHORUS_HOLY_SITE_AMENITY', 'DB_DM_ADJUST_DISTRICT_AMENITIES', 'DB_REQSET_IS_HOLY_SITE') ;
INSERT INTO ModifierArguments (ModifierId, Name, Value) VALUES
('SDG_HALLELUJAH_CHORUS_HOLY_SITE_AMENITY', 'Amount', 1) ;
INSERT INTO BeliefModifiers (BeliefType, ModifierID) VALUES ('SDG_HALLELUJAH_CHORUS', 'SDG_HALLELUJAH_CHORUS_CITIES_ATTACH_HOLY_SITE_AMENITY_ADJACENCY_MODIFIER') ;
INSERT INTO Modifiers (ModifierId, ModifierType, SubjectRequirementSetId) VALUES ('SDG_HALLELUJAH_CHORUS_CITIES_ATTACH_HOLY_SITE_AMENITY_ADJACENCY_MODIFIER', 'MODIFIER_ALL_CITIES_ATTACH_MODIFIER', 'CITY_FOLLOWS_RELIGION_REQUIREMENTS') ;
INSERT INTO ModifierArguments (ModifierId, Name, Value) VALUES ('SDG_HALLELUJAH_CHORUS_CITIES_ATTACH_HOLY_SITE_AMENITY_ADJACENCY_MODIFIER', 'ModifierId', 'SDG_HALLELUJAH_CHORUS_HOLY_SITE_AMENITY_ADJACENCY') ;
INSERT INTO Modifiers (ModifierId, ModifierType, SubjectRequirementSetId) VALUES ('SDG_HALLELUJAH_CHORUS_HOLY_SITE_AMENITY_ADJACENCY', 'DB_DM_ADJUST_DISTRICT_AMENITIES', 'DB_REQSET_IS_HOLY_SITE_NEXT_TO_ENTERTAINMENT_COMPLEX') ;
INSERT INTO ModifierArguments (ModifierId, Name, Value) VALUES
('SDG_HALLELUJAH_CHORUS_HOLY_SITE_AMENITY_ADJACENCY', 'Amount', 1) ;
INSERT INTO BeliefModifiers (BeliefType, ModifierID) VALUES ('SDG_HALLELUJAH_CHORUS', 'SDG_HALLELUJAH_CHORUS_CITIES_ATTACH_HOLY_SITE_AMENITY_ADJACENCY2_MODIFIER') ;
INSERT INTO Modifiers (ModifierId, ModifierType, SubjectRequirementSetId) VALUES ('SDG_HALLELUJAH_CHORUS_CITIES_ATTACH_HOLY_SITE_AMENITY_ADJACENCY2_MODIFIER', 'MODIFIER_ALL_CITIES_ATTACH_MODIFIER', 'CITY_FOLLOWS_RELIGION_REQUIREMENTS') ;
INSERT INTO ModifierArguments (ModifierId, Name, Value) VALUES ('SDG_HALLELUJAH_CHORUS_CITIES_ATTACH_HOLY_SITE_AMENITY_ADJACENCY2_MODIFIER', 'ModifierId', 'SDG_HALLELUJAH_CHORUS_HOLY_SITE_AMENITY2_ADJACENCY') ;
INSERT INTO Modifiers (ModifierId, ModifierType, SubjectRequirementSetId) VALUES ('SDG_HALLELUJAH_CHORUS_HOLY_SITE_AMENITY2_ADJACENCY', 'DB_DM_ADJUST_DISTRICT_AMENITIES', 'DB_REQSET_IS_HOLY_SITE_NEXT_TO_WATER_ENTERTAINMENT_COMPLEX') ;
INSERT INTO ModifierArguments (ModifierId, Name, Value) VALUES
('SDG_HALLELUJAH_CHORUS_HOLY_SITE_AMENITY2_ADJACENCY', 'Amount', 1) ;
/*
INSERT INTO BeliefModifiers (BeliefType, ModifierID) VALUES ('SDG_HALLELUJAH_CHORUS', 'SDG_HALLELUJAH_CHORUS_YIELD') ;
INSERT INTO Modifiers (ModifierId, ModifierType, SubjectRequirementSetId) VALUES ('SDG_HALLELUJAH_CHORUS_YIELD', 'DB_DM_CITIES_ADJUST_AMENITIES_FROM_RELIGION', 'DB_REQSET_CITY_HAS_HOLY_SITE_AND_FOLLOWS_RELIGION') ;
INSERT INTO ModifierArguments (ModifierId, Name, Value) VALUES ('SDG_HALLELUJAH_CHORUS_YIELD', 'Amount', 1) ;
INSERT INTO BeliefModifiers (BeliefType, ModifierID) VALUES ('SDG_HALLELUJAH_CHORUS', 'SDG_HALLELUJAH_CHORUS_YIELD') ;
INSERT INTO Modifiers (ModifierId, ModifierType, SubjectRequirementSetId) VALUES ('SDG_HALLELUJAH_CHORUS_YIELD', 'DB_DM_CITIES_ADJUST_AMENITIES_FROM_RELIGION', 'DB_REQSET_CITY_HAS_HOLY_SITE_AND_FOLLOWS_RELIGION') ;
INSERT INTO ModifierArguments (ModifierId, Name, Value) VALUES ('SDG_HALLELUJAH_CHORUS_YIELD', 'Amount', 1) ;
INSERT INTO BeliefModifiers (BeliefType, ModifierID) VALUES ('SDG_HALLELUJAH_CHORUS', 'SDG_HALLELUJAH_CHORUS_CITY_ADDS_YIELD_MODIFIER') ;
INSERT INTO Modifiers (ModifierId, ModifierType, SubjectRequirementSetId) VALUES ('SDG_HALLELUJAH_CHORUS_CITY_ADDS_YIELD_MODIFIER', 'MODIFIER_ALL_CITIES_ATTACH_MODIFIER', 'CITY_FOLLOWS_RELIGION_REQUIREMENTS') ;
INSERT INTO ModifierArguments (ModifierId, Name, Value) VALUES ('SDG_HALLELUJAH_CHORUS_CITY_ADDS_YIELD_MODIFIER', 'ModifierId', 'SDG_HALLELUJAH_CHORUS_YIELD2') ;
INSERT INTO Modifiers (ModifierId, ModifierType, SubjectRequirementSetId) VALUES ('SDG_HALLELUJAH_CHORUS_YIELD2', 'DB_DM_ADJUST_DISTRICT_YIELD', 'DISTRICT_IS_HOLY_SITE') ;
INSERT INTO ModifierArguments (ModifierId, Name, Value) VALUES
('SDG_HALLELUJAH_CHORUS_YIELD2', 'YieldType', 'YIELD_FAITH'),
('SDG_HALLELUJAH_CHORUS_YIELD2', 'Amount', 1) ;
*/