|
1 | 1 | import { consumeEntriesPedantic } from "../tools/Entries";
|
2 | 2 | import { isNil, Maybe } from "../tools/Maybe";
|
3 | 3 | import { UnicornItemVariant } from "../types";
|
4 |
| -import { Requirement, Setting, SettingMax, SettingTrigger } from "./Settings"; |
| 4 | +import { Setting, SettingMax, SettingTrigger } from "./Settings"; |
5 | 5 |
|
6 | 6 | export type FaithItem =
|
7 | 7 | | "apocripha"
|
@@ -42,19 +42,16 @@ export type ReligionAdditionItem = "adore" | "autoPraise" | "bestUnicornBuilding
|
42 | 42 |
|
43 | 43 | export class ReligionSettingsItem extends SettingMax {
|
44 | 44 | readonly building: FaithItem | UnicornItem;
|
45 |
| - readonly require: Requirement; |
46 | 45 | readonly variant: UnicornItemVariant;
|
47 | 46 |
|
48 | 47 | constructor(
|
49 | 48 | building: FaithItem | UnicornItem,
|
50 | 49 | variant: UnicornItemVariant,
|
51 | 50 | enabled = false,
|
52 |
| - max = -1, |
53 |
| - require: Requirement = false |
| 51 | + max = -1 |
54 | 52 | ) {
|
55 | 53 | super(enabled, max);
|
56 | 54 | this.building = building;
|
57 |
| - this.require = require; |
58 | 55 | this.variant = variant;
|
59 | 56 | }
|
60 | 57 | }
|
@@ -105,215 +102,130 @@ export class ReligionSettings extends SettingTrigger {
|
105 | 102 | enabled = false,
|
106 | 103 | trigger = 1,
|
107 | 104 | buildings: ReligionSettingsItems = {
|
108 |
| - apocripha: new ReligionSettingsItem( |
109 |
| - "apocripha", |
110 |
| - UnicornItemVariant.OrderOfTheSun, |
111 |
| - false, |
112 |
| - -1, |
113 |
| - "faith" |
114 |
| - ), |
115 |
| - basilica: new ReligionSettingsItem( |
116 |
| - "basilica", |
117 |
| - UnicornItemVariant.OrderOfTheSun, |
118 |
| - true, |
119 |
| - -1, |
120 |
| - "faith" |
121 |
| - ), |
| 105 | + apocripha: new ReligionSettingsItem("apocripha", UnicornItemVariant.OrderOfTheSun, false, -1), |
| 106 | + basilica: new ReligionSettingsItem("basilica", UnicornItemVariant.OrderOfTheSun, true, -1), |
122 | 107 | blackCore: new ReligionSettingsItem(
|
123 | 108 | "blackCore",
|
124 | 109 | UnicornItemVariant.Cryptotheology,
|
125 | 110 | false,
|
126 |
| - -1, |
127 |
| - false |
| 111 | + -1 |
128 | 112 | ),
|
129 | 113 | blackLibrary: new ReligionSettingsItem(
|
130 | 114 | "blackLibrary",
|
131 | 115 | UnicornItemVariant.Cryptotheology,
|
132 | 116 | false,
|
133 |
| - -1, |
134 |
| - false |
| 117 | + -1 |
135 | 118 | ),
|
136 | 119 | blackNexus: new ReligionSettingsItem(
|
137 | 120 | "blackNexus",
|
138 | 121 | UnicornItemVariant.Cryptotheology,
|
139 | 122 | false,
|
140 |
| - -1, |
141 |
| - false |
| 123 | + -1 |
142 | 124 | ),
|
143 | 125 | blackObelisk: new ReligionSettingsItem(
|
144 | 126 | "blackObelisk",
|
145 | 127 | UnicornItemVariant.Cryptotheology,
|
146 | 128 | false,
|
147 |
| - -1, |
148 |
| - false |
| 129 | + -1 |
149 | 130 | ),
|
150 | 131 | blackPyramid: new ReligionSettingsItem(
|
151 | 132 | "blackPyramid",
|
152 | 133 | UnicornItemVariant.Ziggurat,
|
153 | 134 | false,
|
154 |
| - -1, |
155 |
| - "unobtainium" |
| 135 | + -1 |
156 | 136 | ),
|
157 | 137 | blackRadiance: new ReligionSettingsItem(
|
158 | 138 | "blackRadiance",
|
159 | 139 | UnicornItemVariant.Cryptotheology,
|
160 | 140 | false,
|
161 |
| - -1, |
162 |
| - false |
163 |
| - ), |
164 |
| - blazar: new ReligionSettingsItem( |
165 |
| - "blazar", |
166 |
| - UnicornItemVariant.Cryptotheology, |
167 |
| - false, |
168 |
| - -1, |
169 |
| - false |
170 |
| - ), |
171 |
| - darkNova: new ReligionSettingsItem( |
172 |
| - "darkNova", |
173 |
| - UnicornItemVariant.Cryptotheology, |
174 |
| - false, |
175 |
| - -1, |
176 |
| - false |
| 141 | + -1 |
177 | 142 | ),
|
| 143 | + blazar: new ReligionSettingsItem("blazar", UnicornItemVariant.Cryptotheology, false, -1), |
| 144 | + darkNova: new ReligionSettingsItem("darkNova", UnicornItemVariant.Cryptotheology, false, -1), |
178 | 145 | goldenSpire: new ReligionSettingsItem(
|
179 | 146 | "goldenSpire",
|
180 | 147 | UnicornItemVariant.OrderOfTheSun,
|
181 | 148 | true,
|
182 |
| - -1, |
183 |
| - "faith" |
| 149 | + -1 |
184 | 150 | ),
|
185 | 151 | holyGenocide: new ReligionSettingsItem(
|
186 | 152 | "holyGenocide",
|
187 | 153 | UnicornItemVariant.Cryptotheology,
|
188 | 154 | false,
|
189 |
| - -1, |
190 |
| - false |
| 155 | + -1 |
191 | 156 | ),
|
192 | 157 | ivoryCitadel: new ReligionSettingsItem(
|
193 | 158 | "ivoryCitadel",
|
194 | 159 | UnicornItemVariant.Ziggurat,
|
195 | 160 | false,
|
196 |
| - -1, |
197 |
| - false |
198 |
| - ), |
199 |
| - ivoryTower: new ReligionSettingsItem( |
200 |
| - "ivoryTower", |
201 |
| - UnicornItemVariant.Ziggurat, |
202 |
| - false, |
203 |
| - -1, |
204 |
| - false |
205 |
| - ), |
206 |
| - marker: new ReligionSettingsItem( |
207 |
| - "marker", |
208 |
| - UnicornItemVariant.Ziggurat, |
209 |
| - false, |
210 |
| - -1, |
211 |
| - "unobtainium" |
| 161 | + -1 |
212 | 162 | ),
|
| 163 | + ivoryTower: new ReligionSettingsItem("ivoryTower", UnicornItemVariant.Ziggurat, false, -1), |
| 164 | + marker: new ReligionSettingsItem("marker", UnicornItemVariant.Ziggurat, false, -1), |
213 | 165 | scholasticism: new ReligionSettingsItem(
|
214 | 166 | "scholasticism",
|
215 | 167 | UnicornItemVariant.OrderOfTheSun,
|
216 | 168 | true,
|
217 |
| - -1, |
218 |
| - "faith" |
| 169 | + -1 |
219 | 170 | ),
|
220 | 171 | singularity: new ReligionSettingsItem(
|
221 | 172 | "singularity",
|
222 | 173 | UnicornItemVariant.Cryptotheology,
|
223 | 174 | false,
|
224 |
| - -1, |
225 |
| - false |
226 |
| - ), |
227 |
| - skyPalace: new ReligionSettingsItem( |
228 |
| - "skyPalace", |
229 |
| - UnicornItemVariant.Ziggurat, |
230 |
| - false, |
231 |
| - -1, |
232 |
| - false |
| 175 | + -1 |
233 | 176 | ),
|
| 177 | + skyPalace: new ReligionSettingsItem("skyPalace", UnicornItemVariant.Ziggurat, false, -1), |
234 | 178 | solarchant: new ReligionSettingsItem(
|
235 | 179 | "solarchant",
|
236 | 180 | UnicornItemVariant.OrderOfTheSun,
|
237 | 181 | true,
|
238 |
| - -1, |
239 |
| - "faith" |
| 182 | + -1 |
240 | 183 | ),
|
241 | 184 | solarRevolution: new ReligionSettingsItem(
|
242 | 185 | "solarRevolution",
|
243 | 186 | UnicornItemVariant.OrderOfTheSun,
|
244 | 187 | true,
|
245 |
| - -1, |
246 |
| - "faith" |
| 188 | + -1 |
247 | 189 | ),
|
248 | 190 | stainedGlass: new ReligionSettingsItem(
|
249 | 191 | "stainedGlass",
|
250 | 192 | UnicornItemVariant.OrderOfTheSun,
|
251 | 193 | true,
|
252 |
| - -1, |
253 |
| - "faith" |
254 |
| - ), |
255 |
| - sunAltar: new ReligionSettingsItem( |
256 |
| - "sunAltar", |
257 |
| - UnicornItemVariant.OrderOfTheSun, |
258 |
| - true, |
259 |
| - -1, |
260 |
| - "faith" |
261 |
| - ), |
262 |
| - sunspire: new ReligionSettingsItem( |
263 |
| - "sunspire", |
264 |
| - UnicornItemVariant.Ziggurat, |
265 |
| - false, |
266 |
| - -1, |
267 |
| - "gold" |
268 |
| - ), |
269 |
| - templars: new ReligionSettingsItem( |
270 |
| - "templars", |
271 |
| - UnicornItemVariant.OrderOfTheSun, |
272 |
| - true, |
273 |
| - -1, |
274 |
| - "faith" |
| 194 | + -1 |
275 | 195 | ),
|
| 196 | + sunAltar: new ReligionSettingsItem("sunAltar", UnicornItemVariant.OrderOfTheSun, true, -1), |
| 197 | + sunspire: new ReligionSettingsItem("sunspire", UnicornItemVariant.Ziggurat, false, -1), |
| 198 | + templars: new ReligionSettingsItem("templars", UnicornItemVariant.OrderOfTheSun, true, -1), |
276 | 199 | transcendence: new ReligionSettingsItem(
|
277 | 200 | "transcendence",
|
278 | 201 | UnicornItemVariant.OrderOfTheSun,
|
279 | 202 | true,
|
280 |
| - -1, |
281 |
| - "faith" |
| 203 | + -1 |
282 | 204 | ),
|
283 | 205 | unicornGraveyard: new ReligionSettingsItem(
|
284 | 206 | "unicornGraveyard",
|
285 | 207 | UnicornItemVariant.Ziggurat,
|
286 | 208 | false,
|
287 |
| - -1, |
288 |
| - false |
| 209 | + -1 |
289 | 210 | ),
|
290 | 211 | unicornNecropolis: new ReligionSettingsItem(
|
291 | 212 | "unicornNecropolis",
|
292 | 213 | UnicornItemVariant.Ziggurat,
|
293 | 214 | false,
|
294 |
| - -1, |
295 |
| - false |
| 215 | + -1 |
296 | 216 | ),
|
297 | 217 | unicornPasture: new ReligionSettingsItem(
|
298 | 218 | "unicornPasture",
|
299 | 219 | UnicornItemVariant.UnicornPasture,
|
300 | 220 | true,
|
301 |
| - -1, |
302 |
| - false |
303 |
| - ), |
304 |
| - unicornTomb: new ReligionSettingsItem( |
305 |
| - "unicornTomb", |
306 |
| - UnicornItemVariant.Ziggurat, |
307 |
| - false, |
308 |
| - -1, |
309 |
| - false |
| 221 | + -1 |
310 | 222 | ),
|
| 223 | + unicornTomb: new ReligionSettingsItem("unicornTomb", UnicornItemVariant.Ziggurat, false, -1), |
311 | 224 | unicornUtopia: new ReligionSettingsItem(
|
312 | 225 | "unicornUtopia",
|
313 | 226 | UnicornItemVariant.Ziggurat,
|
314 | 227 | false,
|
315 |
| - -1, |
316 |
| - "gold" |
| 228 | + -1 |
317 | 229 | ),
|
318 | 230 | },
|
319 | 231 | bestUnicornBuilding = new Setting(false),
|
|
0 commit comments