Elin Modding Docs Doc
Loading...
Searching...
No Matches
Feat.2.cs
1using System;
2using System.Collections.Generic;
3using System.Runtime.CompilerServices;
4using UnityEngine;
5
6// Token: 0x02000301 RID: 769
7public class Feat : Element
8{
9 // Token: 0x170006BB RID: 1723
10 // (get) Token: 0x060017FA RID: 6138 RVA: 0x0009A5F6 File Offset: 0x000987F6
11 public override string Name
12 {
13 get
14 {
15 return base.source.GetText("name", false).SplitNewline().TryGet(base.Value - 1, -1);
16 }
17 }
18
19 // Token: 0x170006BC RID: 1724
20 // (get) Token: 0x060017FB RID: 6139 RVA: 0x0009A61C File Offset: 0x0009881C
21 public override string FullName
22 {
23 get
24 {
25 string[] array = base.source.GetText("name", false).SplitNewline();
26 return array.TryGet(base.Value - 1, -1) + ((base.source.max > 1 && array.Length == 1 && base.Value > 1) ? (" " + base.Value.ToString()) : "");
27 }
28 }
29
30 // Token: 0x060017FC RID: 6140 RVA: 0x0009A690 File Offset: 0x00098890
31 public override bool CanLink(ElementContainer owner)
32 {
33 return !base.IsGlobalElement;
34 }
35
36 // Token: 0x170006BD RID: 1725
37 // (get) Token: 0x060017FD RID: 6141 RVA: 0x0009A69B File Offset: 0x0009889B
38 public override bool ShowXP
39 {
40 get
41 {
42 return false;
43 }
44 }
45
46 // Token: 0x170006BE RID: 1726
47 // (get) Token: 0x060017FE RID: 6142 RVA: 0x0009A69E File Offset: 0x0009889E
48 public override bool ShowValue
49 {
50 get
51 {
52 return false;
53 }
54 }
55
56 // Token: 0x170006BF RID: 1727
57 // (get) Token: 0x060017FF RID: 6143 RVA: 0x0009A6A1 File Offset: 0x000988A1
58 public override int CostLearn
59 {
60 get
61 {
62 return base.source.cost.TryGet(base.Value - 1, -1);
63 }
64 }
65
66 // Token: 0x06001800 RID: 6144 RVA: 0x0009A6BC File Offset: 0x000988BC
67 public override Sprite GetIcon(string suffix = "")
68 {
69 return SpriteSheet.Get("Media/Graphics/Icon/Element/icon_elements", "ele_Feat");
70 }
71
72 // Token: 0x06001801 RID: 6145 RVA: 0x0009A6D0 File Offset: 0x000988D0
73 public override void OnWriteNote(UINote n, ElementContainer owner)
74 {
75 this.Apply(base.Value, owner, true);
76 foreach (string str in Feat.hints)
77 {
78 n.AddText("_bullet".lang() + str, FontColor.DontChange);
79 }
80 }
81
82 // Token: 0x06001802 RID: 6146 RVA: 0x0009A744 File Offset: 0x00098944
83 public string GetHint(ElementContainer owner)
84 {
85 string text = "";
86 this.Apply(base.Value, owner, true);
87 foreach (string str in Feat.hints)
88 {
89 text = text + str.StripLastPun() + ", ";
90 }
91 return text.TrimEnd(' ').TrimEnd(',');
92 }
93
94 // Token: 0x06001803 RID: 6147 RVA: 0x0009A7C8 File Offset: 0x000989C8
95 public bool IsAvailable(ElementContainer owner, int a = 1)
96 {
97 if (base.source.req.Length != 0)
98 {
99 Element element = owner.GetElement(base.source.req[0]);
100 if (element == null || element.ValueWithoutLink < ((base.source.req.Length == 1) ? 1 : base.source.req[Mathf.Clamp(a, 1, base.source.req.Length - 1)].ToInt()))
101 {
102 return false;
103 }
104 }
105 return true;
106 }
107
108 // Token: 0x06001804 RID: 6148 RVA: 0x0009A840 File Offset: 0x00098A40
109 public List<string> Apply(int a, ElementContainer owner, bool hint = false)
110 {
111 Feat.<>c__DisplayClass17_0 CS$<>8__locals1;
112 CS$<>8__locals1.hint = hint;
113 CS$<>8__locals1.owner = owner;
114 CS$<>8__locals1.a = a;
115 CS$<>8__locals1.<>4__this = this;
116 if (CS$<>8__locals1.hint)
117 {
118 Feat.hints.Clear();
119 }
120 int value = base.Value;
121 CS$<>8__locals1.A = Mathf.Abs(CS$<>8__locals1.a);
122 CS$<>8__locals1.invert = ((CS$<>8__locals1.a >= 0) ? 1 : -1);
123 if (CS$<>8__locals1.hint)
124 {
125 Feat.featRef[0] = (CS$<>8__locals1.a.ToString() ?? "");
126 Feat.featRef[1] = (CS$<>8__locals1.a.ToString() ?? "");
127 }
128 Chara chara = CS$<>8__locals1.owner.Chara;
129 int num = this.vPotential;
130 if (!CS$<>8__locals1.hint && CS$<>8__locals1.a > 0 && chara != null)
131 {
132 num = (this.vPotential = chara.LV);
133 }
134 int i = this.id;
135 if (i <= 1330)
136 {
137 if (i <= 1305)
138 {
139 if (i <= 1230)
140 {
141 switch (i)
142 {
143 case 1202:
144 this.<Apply>g__ModBase|17_2(403, CS$<>8__locals1.a * 20, true, ref CS$<>8__locals1);
145 goto IL_12F3;
146 case 1203:
147 case 1205:
148 case 1207:
149 case 1208:
150 case 1209:
151 case 1211:
152 case 1214:
153 case 1215:
154 case 1219:
155 case 1220:
156 case 1222:
157 case 1225:
158 goto IL_12F3;
159 case 1204:
160 this.<Apply>g__ModBase|17_2(64, CS$<>8__locals1.a * 50, true, ref CS$<>8__locals1);
161 this.<Apply>g__ModBase|17_2(401, CS$<>8__locals1.a, false, ref CS$<>8__locals1);
162 goto IL_12F3;
163 case 1206:
164 this.<Apply>g__ModBase|17_2(78, -CS$<>8__locals1.a * 10, false, ref CS$<>8__locals1);
165 goto IL_12F3;
166 case 1210:
167 this.<Apply>g__ModBase|17_2(955, CS$<>8__locals1.a * 5, false, ref CS$<>8__locals1);
168 this.<Apply>g__ModBase|17_2(953, CS$<>8__locals1.a * 10, false, ref CS$<>8__locals1);
169 this.<Apply>g__ModBase|17_2(958, CS$<>8__locals1.a * 5, false, ref CS$<>8__locals1);
170 this.<Apply>g__ModBase|17_2(956, CS$<>8__locals1.a * 10, false, ref CS$<>8__locals1);
171 this.<Apply>g__ModBase|17_2(950, CS$<>8__locals1.a * -5, false, ref CS$<>8__locals1);
172 goto IL_12F3;
173 case 1212:
174 this.<Apply>g__ModBase|17_2(961, CS$<>8__locals1.a * 5, false, ref CS$<>8__locals1);
175 this.<Apply>g__ModBase|17_2(953, CS$<>8__locals1.a * 5, false, ref CS$<>8__locals1);
176 this.<Apply>g__ModBase|17_2(958, CS$<>8__locals1.a * 5, false, ref CS$<>8__locals1);
177 this.<Apply>g__ModBase|17_2(956, CS$<>8__locals1.a * 5, false, ref CS$<>8__locals1);
178 this.<Apply>g__ModBase|17_2(954, CS$<>8__locals1.a * 5, false, ref CS$<>8__locals1);
179 this.<Apply>g__ModBase|17_2(957, CS$<>8__locals1.a * 5, false, ref CS$<>8__locals1);
180 this.<Apply>g__ModBase|17_2(959, CS$<>8__locals1.a * 5, false, ref CS$<>8__locals1);
181 goto IL_12F3;
182 case 1213:
183 this.<Apply>g__ModBase|17_2(962, CS$<>8__locals1.a * 20, false, ref CS$<>8__locals1);
184 goto IL_12F3;
185 case 1216:
186 this.<Apply>g__ModBase|17_2(6020, CS$<>8__locals1.a, false, ref CS$<>8__locals1);
187 goto IL_12F3;
188 case 1217:
189 this.<Apply>g__ModBase|17_2(952, CS$<>8__locals1.a * -10, false, ref CS$<>8__locals1);
190 this.<Apply>g__ModBase|17_2(955, CS$<>8__locals1.a * 20, false, ref CS$<>8__locals1);
191 this.<Apply>g__ModBase|17_2(964, CS$<>8__locals1.a * 20, false, ref CS$<>8__locals1);
192 goto IL_12F3;
193 case 1218:
194 this.<Apply>g__ModBase|17_2(950, CS$<>8__locals1.a / 40, false, ref CS$<>8__locals1);
195 this.<Apply>g__ModBase|17_2(952, CS$<>8__locals1.a / 40, false, ref CS$<>8__locals1);
196 this.<Apply>g__ModBase|17_2(955, CS$<>8__locals1.a / 40, false, ref CS$<>8__locals1);
197 this.<Apply>g__ModBase|17_2(953, CS$<>8__locals1.a / 40, false, ref CS$<>8__locals1);
198 this.<Apply>g__ModBase|17_2(958, CS$<>8__locals1.a / 40, false, ref CS$<>8__locals1);
199 this.<Apply>g__ModBase|17_2(956, CS$<>8__locals1.a / 40, false, ref CS$<>8__locals1);
200 this.<Apply>g__ModBase|17_2(954, CS$<>8__locals1.a / 40, false, ref CS$<>8__locals1);
201 this.<Apply>g__ModBase|17_2(959, CS$<>8__locals1.a / 40, false, ref CS$<>8__locals1);
202 this.<Apply>g__ModBase|17_2(964, CS$<>8__locals1.a / 40, false, ref CS$<>8__locals1);
203 this.<Apply>g__ModBase|17_2(961, CS$<>8__locals1.a / 40, false, ref CS$<>8__locals1);
204 goto IL_12F3;
205 case 1221:
206 this.<Apply>g__ModBase|17_2(964, CS$<>8__locals1.a * 20, false, ref CS$<>8__locals1);
207 goto IL_12F3;
208 case 1223:
209 this.<Apply>g__ModBase|17_2(963, CS$<>8__locals1.a * 20, false, ref CS$<>8__locals1);
210 goto IL_12F3;
211 case 1224:
212 this.<Apply>g__ModBase|17_2(951, CS$<>8__locals1.a * 15, false, ref CS$<>8__locals1);
213 goto IL_12F3;
214 case 1226:
215 this.<Apply>g__ModBase|17_2(955, CS$<>8__locals1.a * 5, false, ref CS$<>8__locals1);
216 this.<Apply>g__ModBase|17_2(953, CS$<>8__locals1.a * 5, false, ref CS$<>8__locals1);
217 goto IL_12F3;
218 default:
219 if (i != 1230)
220 {
221 goto IL_12F3;
222 }
223 this.<Apply>g__ModBase|17_2(60, CS$<>8__locals1.A * 2 * CS$<>8__locals1.invert, false, ref CS$<>8__locals1);
224 this.<Apply>g__ModBase|17_2(79, CS$<>8__locals1.A * 3 * CS$<>8__locals1.invert, false, ref CS$<>8__locals1);
225 goto IL_12F3;
226 }
227 }
228 else
229 {
230 if (i == 1233)
231 {
232 this.<Apply>g__ModBase|17_2(954, CS$<>8__locals1.a * 10, false, ref CS$<>8__locals1);
233 this.<Apply>g__ModBase|17_2(423, CS$<>8__locals1.a, false, ref CS$<>8__locals1);
234 this.<Apply>g__ModBase|17_2(425, CS$<>8__locals1.a, false, ref CS$<>8__locals1);
235 this.<Apply>g__ModBase|17_2(424, CS$<>8__locals1.a, false, ref CS$<>8__locals1);
236 this.<Apply>g__ModBase|17_2(421, CS$<>8__locals1.a, false, ref CS$<>8__locals1);
237 goto IL_12F3;
238 }
239 if (i != 1300 && i != 1305)
240 {
241 goto IL_12F3;
242 }
243 }
244 }
245 else if (i <= 1315)
246 {
247 if (i != 1310 && i != 1315)
248 {
249 goto IL_12F3;
250 }
251 }
252 else if (i != 1320 && i != 1325 && i != 1330)
253 {
254 goto IL_12F3;
255 }
256 }
257 else if (i <= 1355)
258 {
259 if (i <= 1340)
260 {
261 if (i != 1335 && i != 1340)
262 {
263 goto IL_12F3;
264 }
265 }
266 else if (i != 1345 && i != 1350 && i != 1355)
267 {
268 goto IL_12F3;
269 }
270 }
271 else if (i <= 1415)
272 {
273 switch (i)
274 {
275 case 1400:
276 Feat.featRef[0] = ((CS$<>8__locals1.a * 10).ToString() ?? "");
277 goto IL_12F3;
278 case 1401:
279 this.<Apply>g__ModBase|17_2(78, CS$<>8__locals1.a * 15, false, ref CS$<>8__locals1);
280 goto IL_12F3;
281 case 1402:
282 case 1403:
283 case 1405:
284 goto IL_12F3;
285 case 1404:
286 Feat.featRef[0] = ((CS$<>8__locals1.a * 10).ToString() ?? "");
287 goto IL_12F3;
288 case 1406:
289 Feat.featRef[0] = ((CS$<>8__locals1.a * 20).ToString() ?? "");
290 Feat.featRef[1] = ((CS$<>8__locals1.a * 5).ToString() ?? "");
291 goto IL_12F3;
292 default:
293 if (i != 1415)
294 {
295 goto IL_12F3;
296 }
297 this.<Apply>g__ModBase|17_2(60, CS$<>8__locals1.a * 15, false, ref CS$<>8__locals1);
298 this.<Apply>g__ModBase|17_2(79, CS$<>8__locals1.a * 5, false, ref CS$<>8__locals1);
299 this.<Apply>g__ModBase|17_2(953, CS$<>8__locals1.a * 3, false, ref CS$<>8__locals1);
300 this.<Apply>g__ModBase|17_2(961, CS$<>8__locals1.a, false, ref CS$<>8__locals1);
301 this.<Apply>g__ModBase|17_2(960, CS$<>8__locals1.a, false, ref CS$<>8__locals1);
302 goto IL_12F3;
303 }
304 }
305 else
306 {
307 if (i == 1419)
308 {
309 this.<Apply>g__ModPotential|17_3(101, CS$<>8__locals1.a * 50, ref CS$<>8__locals1);
310 this.<Apply>g__ModPotential|17_3(111, CS$<>8__locals1.a * 50, ref CS$<>8__locals1);
311 this.<Apply>g__ModPotential|17_3(103, CS$<>8__locals1.a * 50, ref CS$<>8__locals1);
312 this.<Apply>g__ModPotential|17_3(106, CS$<>8__locals1.a * 50, ref CS$<>8__locals1);
313 this.<Apply>g__ModPotential|17_3(122, CS$<>8__locals1.a * 50, ref CS$<>8__locals1);
314 this.<Apply>g__ModPotential|17_3(120, CS$<>8__locals1.a * 50, ref CS$<>8__locals1);
315 this.<Apply>g__ModPotential|17_3(123, CS$<>8__locals1.a * 50, ref CS$<>8__locals1);
316 goto IL_12F3;
317 }
318 switch (i)
319 {
320 case 1510:
321 this.<Apply>g__ModBase|17_2(65, CS$<>8__locals1.a * 3, false, ref CS$<>8__locals1);
322 goto IL_12F3;
323 case 1511:
324 this.<Apply>g__ModBase|17_2(65, -CS$<>8__locals1.a * 3, false, ref CS$<>8__locals1);
325 goto IL_12F3;
326 case 1512:
327 this.<Apply>g__ModBase|17_2(73, CS$<>8__locals1.a * 5, false, ref CS$<>8__locals1);
328 goto IL_12F3;
329 case 1513:
330 this.<Apply>g__ModBase|17_2(73, -CS$<>8__locals1.a * 5, false, ref CS$<>8__locals1);
331 goto IL_12F3;
332 case 1514:
333 this.<Apply>g__ModBase|17_2(72, CS$<>8__locals1.a * 3, false, ref CS$<>8__locals1);
334 goto IL_12F3;
335 case 1515:
336 this.<Apply>g__ModBase|17_2(72, -CS$<>8__locals1.a * 3, false, ref CS$<>8__locals1);
337 goto IL_12F3;
338 case 1516:
339 this.<Apply>g__ModBase|17_2(300, CS$<>8__locals1.a * 4, false, ref CS$<>8__locals1);
340 goto IL_12F3;
341 case 1517:
342 this.<Apply>g__ModBase|17_2(300, -CS$<>8__locals1.a * 4, false, ref CS$<>8__locals1);
343 goto IL_12F3;
344 case 1518:
345 this.<Apply>g__ModBase|17_2(79, CS$<>8__locals1.a * 5, false, ref CS$<>8__locals1);
346 goto IL_12F3;
347 case 1519:
348 this.<Apply>g__ModBase|17_2(79, -CS$<>8__locals1.a * 5, false, ref CS$<>8__locals1);
349 goto IL_12F3;
350 case 1520:
351 this.<Apply>g__ModBase|17_2(70, CS$<>8__locals1.a * 3, false, ref CS$<>8__locals1);
352 goto IL_12F3;
353 case 1521:
354 this.<Apply>g__ModBase|17_2(70, -CS$<>8__locals1.a * 3, false, ref CS$<>8__locals1);
355 goto IL_12F3;
356 case 1522:
357 this.<Apply>g__ModBase|17_2(77, CS$<>8__locals1.a * 5, false, ref CS$<>8__locals1);
358 goto IL_12F3;
359 case 1523:
360 this.<Apply>g__ModBase|17_2(77, -CS$<>8__locals1.a * 5, false, ref CS$<>8__locals1);
361 goto IL_12F3;
362 case 1524:
363 this.<Apply>g__ModBase|17_2(307, CS$<>8__locals1.a * 4, false, ref CS$<>8__locals1);
364 goto IL_12F3;
365 case 1525:
366 this.<Apply>g__ModBase|17_2(307, -CS$<>8__locals1.a * 4, false, ref CS$<>8__locals1);
367 goto IL_12F3;
368 case 1526:
369 this.<Apply>g__ModBase|17_2(951, CS$<>8__locals1.a * 5, false, ref CS$<>8__locals1);
370 this.<Apply>g__ModBase|17_2(950, -CS$<>8__locals1.a * 5, false, ref CS$<>8__locals1);
371 goto IL_12F3;
372 case 1527:
373 this.<Apply>g__ModBase|17_2(951, -CS$<>8__locals1.a * 5, false, ref CS$<>8__locals1);
374 this.<Apply>g__ModBase|17_2(950, CS$<>8__locals1.a * 5, false, ref CS$<>8__locals1);
375 goto IL_12F3;
376 case 1528:
377 this.<Apply>g__ModBase|17_2(952, CS$<>8__locals1.a * 5, false, ref CS$<>8__locals1);
378 goto IL_12F3;
379 case 1529:
380 this.<Apply>g__ModBase|17_2(952, -CS$<>8__locals1.a * 5, false, ref CS$<>8__locals1);
381 goto IL_12F3;
382 case 1530:
383 this.<Apply>g__ModBase|17_2(960, CS$<>8__locals1.a * 5, false, ref CS$<>8__locals1);
384 this.<Apply>g__ModBase|17_2(956, -CS$<>8__locals1.a * 5, false, ref CS$<>8__locals1);
385 goto IL_12F3;
386 case 1531:
387 this.<Apply>g__ModBase|17_2(960, -CS$<>8__locals1.a * 5, false, ref CS$<>8__locals1);
388 this.<Apply>g__ModBase|17_2(956, CS$<>8__locals1.a * 5, false, ref CS$<>8__locals1);
389 goto IL_12F3;
390 case 1532:
391 case 1533:
392 case 1534:
393 case 1535:
394 case 1536:
395 case 1537:
396 case 1538:
397 case 1539:
398 case 1540:
399 case 1541:
400 case 1542:
401 case 1543:
402 case 1544:
403 case 1545:
404 case 1546:
405 case 1547:
406 case 1548:
407 case 1549:
408 case 1558:
409 case 1559:
410 goto IL_12F3;
411 case 1550:
412 this.<Apply>g__ModBase|17_2(404, -CS$<>8__locals1.a * 10, false, ref CS$<>8__locals1);
413 goto IL_12F3;
414 case 1551:
415 this.<Apply>g__ModBase|17_2(77, -CS$<>8__locals1.a * (4 + num / 5), false, ref CS$<>8__locals1);
416 goto IL_12F3;
417 case 1552:
418 this.<Apply>g__ModBase|17_2(79, CS$<>8__locals1.a * Mathf.Min(30 + num / 5, 100), false, ref CS$<>8__locals1);
419 if (!CS$<>8__locals1.hint && CS$<>8__locals1.a > 0 && chara != null)
420 {
421 chara.body.UnequipAll(39);
422 goto IL_12F3;
423 }
424 goto IL_12F3;
425 case 1553:
426 this.<Apply>g__ModBase|17_2(73, CS$<>8__locals1.a * (5 + num / 3), false, ref CS$<>8__locals1);
427 this.<Apply>g__ModBase|17_2(77, -CS$<>8__locals1.a * (5 + num / 3), false, ref CS$<>8__locals1);
428 goto IL_12F3;
429 case 1554:
430 this.<Apply>g__ModBase|17_2(404, CS$<>8__locals1.a * 10, false, ref CS$<>8__locals1);
431 this.<Apply>g__ModBase|17_2(401, CS$<>8__locals1.a, false, ref CS$<>8__locals1);
432 this.<Apply>g__ModBase|17_2(79, CS$<>8__locals1.a * (10 + num / 5), false, ref CS$<>8__locals1);
433 if (!CS$<>8__locals1.hint && CS$<>8__locals1.a > 0 && chara != null)
434 {
435 chara.body.UnequipAll(33);
436 goto IL_12F3;
437 }
438 goto IL_12F3;
439 case 1555:
440 this.<Apply>g__ModBase|17_2(65, CS$<>8__locals1.a * (12 + num), false, ref CS$<>8__locals1);
441 this.<Apply>g__ModBase|17_2(77, -CS$<>8__locals1.a * (5 + num / 5), false, ref CS$<>8__locals1);
442 if (!CS$<>8__locals1.hint && CS$<>8__locals1.a > 0 && chara != null)
443 {
444 chara.body.UnequipAll(31);
445 goto IL_12F3;
446 }
447 goto IL_12F3;
448 case 1556:
449 this.<Apply>g__ModBase|17_2(64, -CS$<>8__locals1.a * (10 + num), false, ref CS$<>8__locals1);
450 this.<Apply>g__ModBase|17_2(67, CS$<>8__locals1.a * (5 + num / 2), false, ref CS$<>8__locals1);
451 goto IL_12F3;
452 case 1557:
453 this.<Apply>g__ModBase|17_2(71, -CS$<>8__locals1.a * (5 + num / 3), false, ref CS$<>8__locals1);
454 this.<Apply>g__ModBase|17_2(72, -CS$<>8__locals1.a * (4 + num / 4), false, ref CS$<>8__locals1);
455 this.<Apply>g__ModBase|17_2(74, CS$<>8__locals1.a * (6 + num / 2), false, ref CS$<>8__locals1);
456 this.<Apply>g__ModBase|17_2(75, CS$<>8__locals1.a * (2 + num / 6), false, ref CS$<>8__locals1);
457 goto IL_12F3;
458 case 1560:
459 this.<Apply>g__ModBase|17_2(60, -CS$<>8__locals1.a * 15, false, ref CS$<>8__locals1);
460 this.<Apply>g__ModBase|17_2(70, -CS$<>8__locals1.a * (4 + num / 3), false, ref CS$<>8__locals1);
461 goto IL_12F3;
462 case 1561:
463 this.<Apply>g__ModBase|17_2(61, -CS$<>8__locals1.a * 15, false, ref CS$<>8__locals1);
464 this.<Apply>g__ModBase|17_2(76, -CS$<>8__locals1.a * (4 + num / 3), false, ref CS$<>8__locals1);
465 goto IL_12F3;
466 case 1562:
467 this.<Apply>g__ModBase|17_2(65, CS$<>8__locals1.a * (15 + num / 2), false, ref CS$<>8__locals1);
468 this.<Apply>g__ModBase|17_2(79, -CS$<>8__locals1.a * (10 + num / 5), false, ref CS$<>8__locals1);
469 goto IL_12F3;
470 case 1563:
471 this.<Apply>g__ModBase|17_2(77, -CS$<>8__locals1.a * (3 + num / 4), false, ref CS$<>8__locals1);
472 goto IL_12F3;
473 case 1564:
474 this.<Apply>g__ModBase|17_2(961, CS$<>8__locals1.a * 5, false, ref CS$<>8__locals1);
475 goto IL_12F3;
476 case 1565:
477 this.<Apply>g__ModBase|17_2(955, CS$<>8__locals1.a * 20, false, ref CS$<>8__locals1);
478 goto IL_12F3;
479 default:
480 switch (i)
481 {
482 case 1610:
483 this.<Apply>g__ModBase|17_2(60, CS$<>8__locals1.a * 4, false, ref CS$<>8__locals1);
484 goto IL_12F3;
485 case 1611:
486 this.<Apply>g__ModBase|17_2(61, CS$<>8__locals1.a * 4, false, ref CS$<>8__locals1);
487 goto IL_12F3;
488 case 1612:
489 this.<Apply>g__ModBase|17_2(62, CS$<>8__locals1.a * 4, false, ref CS$<>8__locals1);
490 goto IL_12F3;
491 case 1613:
492 case 1614:
493 case 1615:
494 case 1616:
495 case 1617:
496 case 1618:
497 case 1619:
498 case 1637:
499 case 1638:
500 case 1639:
501 case 1641:
502 goto IL_12F3;
503 case 1620:
504 this.<Apply>g__ModAttribute|17_4(70, ref CS$<>8__locals1);
505 goto IL_12F3;
506 case 1621:
507 this.<Apply>g__ModAttribute|17_4(72, ref CS$<>8__locals1);
508 goto IL_12F3;
509 case 1622:
510 this.<Apply>g__ModAttribute|17_4(71, ref CS$<>8__locals1);
511 goto IL_12F3;
512 case 1623:
513 this.<Apply>g__ModAttribute|17_4(73, ref CS$<>8__locals1);
514 goto IL_12F3;
515 case 1624:
516 this.<Apply>g__ModAttribute|17_4(74, ref CS$<>8__locals1);
517 goto IL_12F3;
518 case 1625:
519 this.<Apply>g__ModAttribute|17_4(76, ref CS$<>8__locals1);
520 goto IL_12F3;
521 case 1626:
522 this.<Apply>g__ModAttribute|17_4(75, ref CS$<>8__locals1);
523 goto IL_12F3;
524 case 1627:
525 this.<Apply>g__ModAttribute|17_4(77, ref CS$<>8__locals1);
526 goto IL_12F3;
527 case 1628:
528 this.<Apply>g__ModBase|17_2(78, CS$<>8__locals1.a * 2, false, ref CS$<>8__locals1);
529 goto IL_12F3;
530 case 1629:
531 this.<Apply>g__ModBase|17_2(79, CS$<>8__locals1.a * 5, false, ref CS$<>8__locals1);
532 goto IL_12F3;
533 case 1630:
534 this.<Apply>g__ModBase|17_2(65, ((CS$<>8__locals1.A == 1) ? 2 : ((CS$<>8__locals1.A == 2) ? 5 : 10)) * CS$<>8__locals1.invert, false, ref CS$<>8__locals1);
535 goto IL_12F3;
536 case 1631:
537 this.<Apply>g__ModBase|17_2(64, ((CS$<>8__locals1.A == 1) ? 2 : ((CS$<>8__locals1.A == 2) ? 5 : 10)) * CS$<>8__locals1.invert, false, ref CS$<>8__locals1);
538 goto IL_12F3;
539 case 1632:
540 this.<Apply>g__ModBase|17_2(150, CS$<>8__locals1.a * 2, false, ref CS$<>8__locals1);
541 goto IL_12F3;
542 case 1633:
543 this.<Apply>g__ModBase|17_2(210, CS$<>8__locals1.a * 3, false, ref CS$<>8__locals1);
544 this.<Apply>g__ModBase|17_2(402, ((CS$<>8__locals1.A == 3) ? 1 : 0) * CS$<>8__locals1.invert, false, ref CS$<>8__locals1);
545 goto IL_12F3;
546 case 1634:
547 this.<Apply>g__ModBase|17_2(291, CS$<>8__locals1.a * 4, false, ref CS$<>8__locals1);
548 goto IL_12F3;
549 case 1635:
550 this.<Apply>g__ModBase|17_2(100, CS$<>8__locals1.a * 3, false, ref CS$<>8__locals1);
551 goto IL_12F3;
552 case 1636:
553 this.<Apply>g__ModBase|17_2(306, CS$<>8__locals1.a * 4, false, ref CS$<>8__locals1);
554 goto IL_12F3;
555 case 1640:
556 this.<Apply>g__ModBase|17_2(77, CS$<>8__locals1.a * 2, false, ref CS$<>8__locals1);
557 goto IL_12F3;
558 case 1642:
559 Feat.featRef[0] = (((CS$<>8__locals1.a == 1) ? 10 : ((CS$<>8__locals1.a == 2) ? 20 : 30)).ToString() ?? "");
560 goto IL_12F3;
561 case 1643:
562 Feat.featRef[0] = (((CS$<>8__locals1.a == 1) ? 1 : ((CS$<>8__locals1.a == 2) ? 3 : 5)).ToString() ?? "");
563 goto IL_12F3;
564 case 1644:
565 Feat.featRef[0] = (CS$<>8__locals1.a.ToString() ?? "");
566 if (!CS$<>8__locals1.hint && CS$<>8__locals1.a > 0)
567 {
568 CS$<>8__locals1.owner.Chara.AddRandomBodyPart(CS$<>8__locals1.owner.Chara.IsPC);
569 if (CS$<>8__locals1.owner.Chara.IsPC && WidgetEquip.Instance)
570 {
571 WidgetEquip.Instance.Rebuild();
572 }
573 }
574 this.<Apply>g__ModBase|17_2(60, (CS$<>8__locals1.A > 5) ? ((CS$<>8__locals1.A - 5) * -3 * CS$<>8__locals1.invert) : 0, false, ref CS$<>8__locals1);
575 this.<Apply>g__ModBase|17_2(79, (CS$<>8__locals1.A > 5) ? ((CS$<>8__locals1.A - 5) * -5 * CS$<>8__locals1.invert) : 0, false, ref CS$<>8__locals1);
576 this.<Apply>g__ModBase|17_2(77, (CS$<>8__locals1.A > 5) ? ((CS$<>8__locals1.A - 5) * -3 * CS$<>8__locals1.invert) : 0, false, ref CS$<>8__locals1);
577 goto IL_12F3;
578 default:
579 goto IL_12F3;
580 }
581 break;
582 }
583 }
584 this.<Apply>g__GodHint|17_5(ref CS$<>8__locals1);
585 IL_12F3:
586 if (CS$<>8__locals1.hint)
587 {
588 string text = base.source.GetText("textExtra", false);
589 if (!text.IsEmpty())
590 {
591 string text2 = text.SplitNewline().TryGet(value - 1, 99);
592 if (!text2.IsEmpty())
593 {
594 int num2 = 0;
595 string[] array = text2.Split(',', StringSplitOptions.None);
596 for (i = 0; i < array.Length; i++)
597 {
598 string item = array[i].Replace("#1", Feat.featRef[num2]);
599 Feat.hints.Add(item);
600 num2++;
601 }
602 }
603 }
604 }
605 return Feat.hints;
606 }
607
608 // Token: 0x06001807 RID: 6151 RVA: 0x0009BBF4 File Offset: 0x00099DF4
609 [CompilerGenerated]
610 private void <Apply>g__Note|17_0(string s, ref Feat.<>c__DisplayClass17_0 A_2)
611 {
612 if (!A_2.hint)
613 {
614 return;
615 }
616 Feat.hints.Add(s);
617 }
618
619 // Token: 0x06001808 RID: 6152 RVA: 0x0009BC0C File Offset: 0x00099E0C
620 [CompilerGenerated]
621 private void <Apply>g__NoteElement|17_1(int ele, int a, ref Feat.<>c__DisplayClass17_0 A_3)
622 {
623 SourceElement.Row row = EClass.sources.elements.map[ele];
624 if (row.category == "ability")
625 {
626 this.<Apply>g__Note|17_0("hintLearnAbility".lang(row.GetName().ToTitleCase(false), null, null, null, null), ref A_3);
627 return;
628 }
629 if (row.tag.Contains("flag"))
630 {
631 this.<Apply>g__Note|17_0(row.GetName(), ref A_3);
632 return;
633 }
634 string @ref = ((a < 0) ? "" : "+") + a.ToString();
635 if (row.category == "resist")
636 {
637 int num = 0;
638 @ref = ((a > 0) ? "+" : "-").Repeat(Mathf.Clamp(a / 5 + num, 1, 5));
639 this.<Apply>g__Note|17_0("modValueRes".lang(row.GetName(), @ref, null, null, null), ref A_3);
640 return;
641 }
642 this.<Apply>g__Note|17_0("modValue".lang(row.GetName(), @ref, null, null, null), ref A_3);
643 }
644
645 // Token: 0x06001809 RID: 6153 RVA: 0x0009BD0D File Offset: 0x00099F0D
646 [CompilerGenerated]
647 private void <Apply>g__ModBase|17_2(int ele, int _v, bool hide, ref Feat.<>c__DisplayClass17_0 A_4)
648 {
649 if (!A_4.hint)
650 {
651 A_4.owner.ModBase(ele, _v);
652 }
653 if (!hide && _v != 0)
654 {
655 this.<Apply>g__NoteElement|17_1(ele, _v, ref A_4);
656 }
657 }
658
659 // Token: 0x0600180A RID: 6154 RVA: 0x0009BD38 File Offset: 0x00099F38
660 [CompilerGenerated]
661 private void <Apply>g__ModPotential|17_3(int ele, int _v, ref Feat.<>c__DisplayClass17_0 A_3)
662 {
663 if (!A_3.hint)
664 {
665 A_3.owner.ModPotential(ele, _v);
666 }
667 this.<Apply>g__Note|17_0("modPotential".lang(EClass.sources.elements.map[ele].GetName(), "+" + _v.ToString() + "%", null, null, null), ref A_3);
668 }
669
670 // Token: 0x0600180B RID: 6155 RVA: 0x0009BDA0 File Offset: 0x00099FA0
671 [CompilerGenerated]
672 private void <Apply>g__ModAttribute|17_4(int ele, ref Feat.<>c__DisplayClass17_0 A_2)
673 {
674 if (!A_2.hint)
675 {
676 Debug.Log(A_2.A);
677 Debug.Log(((A_2.A == 1) ? 2 : ((A_2.A == 2) ? 4 : 5)) * A_2.invert);
678 }
679 this.<Apply>g__ModBase|17_2(ele, ((A_2.A == 1) ? 2 : ((A_2.A == 2) ? 4 : 5)) * A_2.invert, false, ref A_2);
680 this.<Apply>g__ModPotential|17_3(ele, A_2.a * 10, ref A_2);
681 }
682
683 // Token: 0x0600180C RID: 6156 RVA: 0x0009BE2C File Offset: 0x0009A02C
684 [CompilerGenerated]
685 private void <Apply>g__GodHint|17_5(ref Feat.<>c__DisplayClass17_0 A_1)
686 {
687 if (!A_1.hint)
688 {
689 return;
690 }
691 foreach (Element element in A_1.owner.Card.Chara.faithElements.dict.Values)
692 {
693 if (element.source.id != this.id)
694 {
695 this.<Apply>g__NoteElement|17_1(element.id, element.Value, ref A_1);
696 }
697 }
698 }
699
700 // Token: 0x04001097 RID: 4247
701 public static List<string> hints = new List<string>();
702
703 // Token: 0x04001098 RID: 4248
704 public static string[] featRef = new string[5];
705}
Definition Chara.cs:12
Definition Feat.2.cs:8