Elin Decompiled Documentation EA 23.153 Nightly
Loading...
Searching...
No Matches
ELEMENT.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3using UnityEngine;
4using UnityEngine.UI;
5
6public class ELEMENT
7{
8 public const int comfort = 750;
9
10 public const int rare = 751;
11
12 public const int cute = 752;
13
14 public const int antidote = 753;
15
16 public const int nerve = 754;
17
18 public const int hotspring = 756;
19
20 public const int purity = 759;
21
22 public const int stimulant = 760;
23
24 public const int recharge = 761;
25
26 public const int roasted = 762;
27
28 public const int air = 763;
29
30 public const int blood = 755;
31
32 public const int _void = 0;
33
34 public const int d = 3;
35
36 public const int lv = 1;
37
38 public const int quality = 2;
39
40 public const int socket = 5;
41
42 public const int nutrition = 10;
43
44 public const int weight = 11;
45
46 public const int size = 12;
47
48 public const int hardness = 13;
49
50 public const int growth = 14;
51
52 public const int heat = 16;
53
54 public const int decay = 17;
55
56 public const int taste = 18;
57
58 public const int water = 15;
59
60 public const int fire = 21;
61
62 public const int cut = 22;
63
64 public const int old_detox = 23;
65
66 public const int old_heal = 24;
67
68 public const int old_antidote = 25;
69
70 public const int cure = 26;
71
72 public const int race = 29;
73
74 public const int piety = 85;
75
76 public const int poison = 20;
77
78 public static readonly int[] IDS = new int[35]
79 {
80 750, 751, 752, 753, 754, 756, 759, 760, 761, 762,
81 763, 755, 0, 3, 1, 2, 5, 10, 11, 12,
82 13, 14, 16, 17, 18, 15, 21, 22, 23, 24,
83 25, 26, 29, 85, 20
84 };
85}
86public class Element : EClass
87{
88 public class BonusInfo
89 {
90 public Element ele;
91
92 public UINote n;
93
94 public Chara c;
95
96 public bool first = true;
97
98 public int total;
99
100 public void CheckFirst()
101 {
102 if (first)
103 {
104 first = false;
105 n.Space(8);
106 }
107 }
108
109 public void AddText(string text, FontColor col = FontColor.Warning)
110 {
111 CheckFirst();
112 n.AddText("_bullet".lang() + text, col);
113 }
114
115 public void AddText(int v, string text, string textBad = null)
116 {
117 if (v != 0)
118 {
119 string text2 = text;
120 if (!textBad.IsEmpty() && v < 0)
121 {
122 text2 = textBad;
123 }
124 CheckFirst();
125 total += v;
126 n.AddText("_bullet".lang() + text2 + " " + ((v > 0) ? "+" : "") + v, (v > 0) ? FontColor.Good : FontColor.Bad);
127 }
128 }
129
130 public void AddFix(int v, string text)
131 {
132 if (v != 0)
133 {
134 CheckFirst();
135 n.AddText("_bullet".lang() + text + " " + ((v > 0) ? "+" : "") + v + "%", (v > 0) ? FontColor.Good : FontColor.Bad);
136 }
137 }
138
139 public void WriteNote()
140 {
141 int id = ele.id;
142 int num = 0;
143 foreach (BodySlot slot in c.body.slots)
144 {
145 if (slot.elementId != 44 && slot.thing != null && ((id != 67 && id != 66) || slot.elementId != 35))
146 {
147 Element orCreateElement = slot.thing.elements.GetOrCreateElement(id);
148 if (orCreateElement != null && !orCreateElement.IsGlobalElement)
149 {
150 num += orCreateElement.Value;
151 }
152 }
153 }
154 AddText(num, "equipment".lang());
155 if (c.IsPCFaction)
156 {
158 if (element != null)
159 {
160 AddText(element.Value, "sub_faction".lang());
161 }
162 }
163 foreach (Condition condition in c.conditions)
164 {
165 if (condition.elements != null)
166 {
167 AddText(condition.elements.Value(id), condition.Name);
168 }
169 }
170 if (c.tempElements != null)
171 {
172 AddText(c.tempElements.Value(id), "tempStrengthen".lang(), "tempWeaken".lang());
173 }
174 try
175 {
176 if (c.faithElements != null)
177 {
178 Element element2 = c.elements.GetElement("featGod_" + c.faith.id + "1");
179 if (element2 != null)
180 {
181 AddText(c.faithElements.Value(id), element2.Name);
182 }
183 }
184 }
185 catch
186 {
187 }
188 _ = ele.Value;
189 _ = ele.ValueWithoutLink + total;
190 foreach (Element value in c.elements.dict.Values)
191 {
192 if (value.HasTag("multiplier") && value.source.aliasRef == ele.source.alias)
193 {
194 AddFix(value.Value, value.Name);
195 }
196 }
197 if (id == 79)
198 {
199 c.RefreshSpeed(this);
200 }
201 if (id == 78 && c.IsPCFactionOrMinion)
202 {
203 int num2 = EClass.player.CountKeyItem("lucky_coin");
204 if (num2 > 0)
205 {
206 AddText(EClass.sources.keyItems.alias["lucky_coin"].GetName() + " (+" + num2 * 2 + ")", FontColor.Great);
207 }
209 {
210 AddFix(100, EClass.sources.elements.map[663].GetName());
211 }
212 }
213 if (!c.race.IsMachine && !(c.id == "android"))
214 {
215 return;
216 }
217 int num3 = c.Evalue(664);
218 if (num3 > 0)
219 {
220 switch (id)
221 {
222 case 64:
223 case 65:
224 AddFix(num3 / 2, EClass.sources.elements.map[664].GetName());
225 break;
226 case 79:
227 AddFix(num3, EClass.sources.elements.map[664].GetName());
228 break;
229 }
230 }
231 }
232 }
233
234 public const int Div = 5;
235
236 public static Element Void = new Element();
237
238 public static int[] List_MainAttributes = new int[9] { 70, 72, 71, 77, 74, 75, 76, 73, 79 };
239
240 public static int[] List_MainAttributesMajor = new int[8] { 70, 72, 71, 77, 74, 75, 76, 73 };
241
242 public static int[] List_Body = new int[4] { 70, 72, 71, 77 };
243
244 public static int[] List_Mind = new int[4] { 74, 75, 76, 73 };
245
247
248 public int id;
249
250 public int vBase;
251
252 public int vExp;
253
254 public int vPotential;
255
256 public int vTempPotential;
257
258 public int vLink;
259
260 public int vSource;
261
263
265
266 public static List<SourceElement.Row> ListElements = new List<SourceElement.Row>();
267
268 public static List<SourceElement.Row> ListAttackElements = new List<SourceElement.Row>();
269
271 {
272 get
273 {
275 if (row == null)
276 {
277 SourceElement.Row obj = ((id == 0) ? GetSource() : Get(id)) ?? EClass.sources.elements.rows[0];
278 SourceElement.Row row2 = obj;
279 _source = obj;
280 row = row2;
281 }
282 return row;
283 }
284 }
285
286 public virtual int DisplayValue => Value;
287
288 public virtual int MinValue => -100;
289
290 public int Value => ValueWithoutLink + vLink + ((owner != null) ? owner.ValueBonus(this) : 0);
291
293
294 public virtual int MinPotential => 100;
295
297
298 public virtual bool CanGainExp => ValueWithoutLink > 0;
299
300 public bool IsFlag => source.tag.Contains("flag");
301
302 public virtual string Name => source.GetName();
303
304 public virtual string FullName => Name;
305
306 public virtual int ExpToNext => 1000;
307
308 public virtual bool UseExpMod => true;
309
310 public virtual int CostTrain => Mathf.Max((ValueWithoutLink / 10 + 5) * (100 + vTempPotential) / 500, 1);
311
312 public virtual int CostLearn => 5;
313
314 public virtual bool ShowXP
315 {
316 get
317 {
319 {
320 return source.category != "attribute";
321 }
322 return true;
323 }
324 }
325
326 public virtual bool ShowMsgOnValueChanged => true;
327
328 public virtual bool ShowValue => true;
329
330 public virtual bool ShowPotential => true;
331
332 public virtual bool UsePotential => true;
333
334 public virtual bool PotentialAsStock => false;
335
336 public virtual bool ShowRelativeAttribute => false;
337
338 public virtual bool ShowBonuses => true;
339
340 public virtual string ShortName => Name;
341
342 public bool IsGlobalElement
343 {
344 get
345 {
346 if (vExp != -1)
347 {
348 return vExp == -2;
349 }
350 return true;
351 }
352 }
353
354 public bool IsFactionWideElement => vExp == -1;
355
356 public bool IsPartyWideElement => vExp == -2;
357
358 public virtual bool ShowEncNumber => true;
359
360 public bool IsTrait => source.tag.Contains("trait");
361
362 public bool IsFoodTrait => !source.foodEffect.IsEmpty();
363
364 public bool IsFoodTraitMain
365 {
366 get
367 {
368 if (IsFoodTrait)
369 {
370 if (!source.tag.Contains("primary"))
371 {
372 return source.tag.Contains("foodpot");
373 }
374 return true;
375 }
376 return false;
377 }
378 }
379
380 public bool IsMainAttribute
381 {
382 get
383 {
384 if (source.category == "attribute")
385 {
386 return source.tag.Contains("primary");
387 }
388 return false;
389 }
390 }
391
392 public Act act => (this as Act) ?? ACT.Create(id);
393
394 public static string GetName(string alias)
395 {
396 return EClass.sources.elements.alias[alias].GetName();
397 }
398
399 public static SourceElement.Row Get(int id)
400 {
401 return EClass.sources.elements.map[id];
402 }
403
405 {
406 return EClass.sources.elements.alias.TryGetValue(GetType().ToString());
407 }
408
409 public virtual int GetSourcePotential(int v)
410 {
411 return 0;
412 }
413
414 public virtual Sprite GetSprite()
415 {
416 return null;
417 }
418
419 public int GetMaterialSourceValue(Thing t, int v)
420 {
421 if (id == 2 || v < 0)
422 {
423 return v;
424 }
425 if (IsTrait)
426 {
427 if (t.IsFurniture)
428 {
429 return v;
430 }
431 return Mathf.Min(v + t.encLV * 10, 60);
432 }
433 return v * (100 + t.encLV * 10) / 100;
434 }
435
436 public virtual int GetSourceValue(int v, int lv, SourceValueType type)
437 {
438 return type switch
439 {
440 SourceValueType.Chara => v * (100 + (lv - 1 + EClass.rnd(lv / 2 + 1)) * source.lvFactor / 10) / 100 + EClass.rnd(lv / 3) * source.lvFactor / 100,
441 SourceValueType.Fixed => v,
442 _ => v * ((source.encFactor == 0) ? 100 : (50 + EClass.rnd(100) + EClass.rnd((int)Mathf.Sqrt(lv * 100)) * source.encFactor / 100)) / 100,
443 };
444 }
445
446 public virtual Sprite GetIcon(string suffix = "")
447 {
448 return SpriteSheet.Get("Media/Graphics/Icon/Element/icon_elements", "ele_" + source.alias + suffix) ?? SpriteSheet.Get("Media/Graphics/Icon/Element/icon_elements", "ele_" + source.aliasParent + suffix) ?? SpriteSheet.Get("Media/Graphics/Icon/Element/icon_elements", "cat_" + source.category);
449 }
450
451 public bool IsActive(Card c)
452 {
453 if (IsGlobalElement && c != null && !c.c_idDeity.IsEmpty() && c.c_idDeity != EClass.pc.idFaith)
454 {
455 return false;
456 }
457 return Value != 0;
458 }
459
460 public int SortVal(bool charaSheet = false)
461 {
462 int num = ((source.sort != 0) ? source.sort : id);
463 return (IsFlag ? 100000 : 0) + ((!charaSheet && IsGlobalElement) ? (-1000000) : 0) + (((IsFoodTrait || IsTrait) && owner != null && owner.Card != null && owner.Card.ShowFoodEnc) ? 10000 : 0) + num;
464 }
465
466 public virtual bool CanLink(ElementContainer owner)
467 {
468 return false;
469 }
470
471 public bool HasTag(string tag)
472 {
473 return source.tag.Contains(tag);
474 }
475
476 public void SetImage(Image i)
477 {
478 Sprite icon = GetIcon();
479 if ((bool)icon)
480 {
481 i.sprite = icon;
482 i.SetNativeSize();
483 }
484 }
485
486 public virtual string GetDetail()
487 {
488 return source.GetDetail();
489 }
490
491 public bool IsFactionElement(Chara c)
492 {
493 if (c == null)
494 {
495 return false;
496 }
497 if (c.IsPCFaction)
498 {
499 foreach (Element value in EClass.pc.faction.charaElements.dict.Values)
500 {
501 if (value.id == id && value.Value > 0)
502 {
503 return true;
504 }
505 }
506 }
507 if (c.faithElements != null)
508 {
509 foreach (Element value2 in c.faithElements.dict.Values)
510 {
511 if (value2.id == id && value2.Value > 0)
512 {
513 return true;
514 }
515 }
516 }
517 return false;
518 }
519
521 {
522 if (!source.aliasParent.IsEmpty())
523 {
524 return c.elements.GetOrCreateElement(source.aliasParent);
525 }
526 return null;
527 }
528
529 public static Dictionary<int, int> GetElementMap(int[] list)
530 {
531 Dictionary<int, int> dictionary = new Dictionary<int, int>();
532 if (list != null)
533 {
534 for (int i = 0; i < list.Length / 2; i++)
535 {
536 dictionary[list[i * 2]] = list[i * 2 + 1];
537 }
538 }
539 return dictionary;
540 }
541
542 public static Dictionary<int, int> GetElementMap(int[] list, Dictionary<int, int> map)
543 {
544 if (list != null)
545 {
546 for (int i = 0; i < list.Length / 2; i++)
547 {
548 map[list[i * 2]] = list[i * 2 + 1];
549 }
550 }
551 return map;
552 }
553
554 public static SourceElement.Row GetRandomElement(int lv = 1)
555 {
556 if (lv > 100)
557 {
558 lv = 100;
559 }
560 if (ListElements.Count == 0)
561 {
562 foreach (SourceElement.Row row in EClass.sources.elements.rows)
563 {
564 if (row.categorySub == "eleAttack" && row.chance > 0)
565 {
566 ListElements.Add(row);
567 }
568 }
569 }
570 List<Tuple<SourceElement.Row, int>> list = new List<Tuple<SourceElement.Row, int>>();
571 foreach (SourceElement.Row listElement in ListElements)
572 {
573 int num = 40 * (listElement.eleP - 100) / 100;
574 if (list.Count == 0 || num < lv)
575 {
576 list.Add(new Tuple<SourceElement.Row, int>(listElement, num));
577 }
578 }
579 return list.RandomItemWeighted((Tuple<SourceElement.Row, int> a) => 10000 / (100 + (lv - a.Item2) * 25)).Item1;
580 }
581
582 public void WriteNote(UINote n, ElementContainer owner = null, Action<UINote> onWriteNote = null)
583 {
584 n.Clear();
585 _WriteNote(n, owner, onWriteNote, isRef: false);
586 n.Build();
587 }
588
589 public void WriteNoteWithRef(UINote n, ElementContainer owner, Action<UINote> onWriteNote, Element refEle)
590 {
591 n.Clear();
592 _WriteNote(n, owner, onWriteNote, isRef: false);
593 if (refEle.Value > 0)
594 {
595 refEle._WriteNote(n, owner, onWriteNote, isRef: true);
596 }
598 {
600 }
601 n.Build();
602 }
603
604 public void _WriteNote(UINote n, Chara c, Act act)
605 {
607 Act.Cost cost = e.GetCost(c);
608 int p = e.GetPower(c);
609 n.Space(6);
610 string text = source.GetText("textExtra");
611 if (!text.IsEmpty())
612 {
613 string[] array = text.Split(',');
614 foreach (string text2 in array)
615 {
616 if (text2.StartsWith("@"))
617 {
618 Condition condition = Condition.Create(text2.Replace("@", ""), p);
619 condition.owner = c;
620 if (!source.aliasRef.IsEmpty())
621 {
622 condition.SetElement(EClass.sources.elements.alias[source.aliasRef].id);
623 }
624 switch (act.id)
625 {
626 case 6902:
627 condition.SetRefVal(79, 268);
628 break;
629 case 8510:
630 case 8710:
631 condition.SetRefVal(79, (act.id == 8710) ? 222 : 221);
632 break;
633 }
634 n.AddText("_bullet".lang() + (condition.HasDuration ? "hintCon" : "hintCon2").lang(condition.Name, condition.EvaluateTurn(p).ToString() ?? ""));
635 condition._WriteNote(n, asChild: true);
636 }
637 else
638 {
639 string text3 = text2.Replace("#calc", Calc());
640 if (!source.aliasRef.IsEmpty())
641 {
642 text3 = text3.Replace("#ele", EClass.sources.elements.alias[source.aliasRef].GetName().ToLower());
643 }
644 n.AddText("_bullet".lang() + text3);
645 }
646 }
647 }
648 if (source.tag.Contains("syncRide"))
649 {
650 n.AddText("_bullet".lang() + "hintSyncRide".lang());
651 }
653 {
654 int i = id;
655 if (i != 8230 && i != 8232)
656 {
657 n.AddText("_bullet".lang() + "hintPartyAbility".lang());
658 }
659 }
660 if (!act.LocalAct)
661 {
662 n.Space();
663 n.AddText("isGlobalAct".lang());
664 }
665 if (cost.type == Act.CostType.None || cost.cost == 0)
666 {
667 return;
668 }
669 n.Space(4);
670 UIItem uIItem = n.AddExtra<UIItem>("costPrice");
671 int num = cost.cost;
672 if (cost.type == Act.CostType.MP)
673 {
674 if (c.Evalue(483) > 0)
675 {
676 num = cost.cost * 100 / (100 + (int)Mathf.Sqrt(c.Evalue(483) * 10) * 3);
677 }
678 if (c.IsPC && c.HasCondition<StanceManaCost>())
679 {
680 int num2 = c.Evalue(1657);
681 if (num2 > 0 && vPotential >= 2)
682 {
683 num = num * (100 - num2 * 20) / 100;
684 }
685 }
686 }
687 string text4 = cost.cost.ToString() ?? "";
688 if (num != cost.cost)
689 {
690 text4 = num + " (" + text4 + ")";
691 }
692 uIItem.text1.SetText(text4, (((cost.type == Act.CostType.MP) ? c.mana.value : c.stamina.value) >= num) ? FontColor.Good : FontColor.Bad);
693 uIItem.image1.sprite = ((cost.type == Act.CostType.MP) ? EClass.core.refs.icons.mana : EClass.core.refs.icons.stamina);
694 uIItem.image1.SetNativeSize();
695 string Calc()
696 {
697 Dice dice = Dice.Create(e, c);
698 if (dice == null)
699 {
700 return p.ToString() ?? "";
701 }
702 return dice.ToString();
703 }
704 }
705
707 {
708 UIItem uIItem = n.AddHeader("HeaderAbility", FullName.ToTitleCase(wholeText: true), GetSprite());
709 uIItem.text2.text = ((this is Spell) ? (vPotential.ToString() ?? "") : "-");
710 (this as Act)?.SetImage(uIItem.image1);
711 }
712
713 public void _WriteNote(UINote n, ElementContainer owner, Action<UINote> onWriteNote, bool isRef, bool addHeader = true)
714 {
715 if (addHeader)
716 {
717 if (isRef)
718 {
719 UIText.globalSizeMod = -2;
720 n.AddHeader("prevElement".lang(FullName));
721 }
722 else if (this is Act)
723 {
725 n.Space(8);
726 }
727 else
728 {
729 n.AddHeader(FullName.ToTitleCase(wholeText: true));
730 }
731 }
732 string detail = GetDetail();
733 if (!detail.IsEmpty())
734 {
735 n.AddText("NoteText_flavor_element", detail);
736 n.Space(6);
737 }
738 int num = vLink;
739 if (owner.Chara != null && owner.Chara.IsPCFaction)
740 {
742 }
743 bool flag = ShowValue;
744 bool flag2 = ShowRelativeAttribute;
745 if (source.category == "landfeat")
746 {
747 flag = false;
748 flag2 = false;
749 }
750 if (this is Act)
751 {
752 Act act = ACT.Create(source.id);
753 UIItem uIItem = n.AddItem("ItemAbility");
754 uIItem.text1.text = "vValue".lang(DisplayValue.ToString() ?? "", ValueWithoutLink + ((num == 0) ? "" : ((num > 0) ? (" + " + num) : (" - " + -num))));
755 uIItem.text2.text = act.TargetType.ToString().lang();
756 uIItem.text3.text = ((this is Spell) ? (owner.Chara.CalcCastingChance(owner.GetOrCreateElement(act.source.id)) + "%") : "-") ?? "";
757 }
758 else if (flag)
759 {
760 n.AddTopic("TopicLeft", "vCurrent".lang(), "vValue".lang(DisplayValue.ToString() ?? "", ValueWithoutLink + ((num == 0) ? "" : ((num > 0) ? (" + " + num) : (" - " + -num)))));
761 if (ShowPotential)
762 {
763 num = vTempPotential;
764 n.AddTopic("TopicLeft", "vPotential".lang(), "vValue".lang(Potential.ToString() ?? "", vPotential + vSourcePotential + MinPotential + ((num == 0) ? "" : ((num > 0) ? (" + " + num) : (" - " + -num)))));
765 }
767 }
768 if (flag2 && !source.aliasParent.IsEmpty())
769 {
770 Element element = Create(source.aliasParent);
771 UIItem uIItem2 = n.AddItem("ItemRelativeAttribute");
772 uIItem2.text1.SetText(element.Name);
773 element.SetImage(uIItem2.image1);
774 bool flag3 = source.lvFactor > 0 && this is Act;
775 uIItem2.text2.SetActive(flag3);
776 uIItem2.text3.SetActive(flag3);
777 if (flag3)
778 {
779 uIItem2.text2.SetText(GetPower(EClass.pc).ToString() ?? "");
780 }
781 }
782 OnWriteNote(n, owner);
784 {
785 n.AddTopic("TopicLeft", "Class:", GetType()?.ToString() ?? "");
786 n.AddTopic("TopicLeft", "vExp".lang(), vExp.ToString() ?? "");
787 n.AddTopic("TopicLeft", "vSource", vSource.ToString() ?? "");
788 n.AddTopic("TopicLeft", "vSourcePotential", vSourcePotential.ToString() ?? "");
789 n.AddTopic("TopicLeft", "vPotential", vPotential.ToString() ?? "");
790 n.AddTopic("TopicLeft", "Potential", Potential.ToString() ?? "");
791 }
793 onWriteNote?.Invoke(n);
794 if (ShowBonuses && owner.Chara != null)
795 {
796 BonusInfo bonusInfo = new BonusInfo();
797 bonusInfo.ele = this;
798 bonusInfo.n = n;
799 bonusInfo.c = owner.Chara;
800 bonusInfo.WriteNote();
801 }
802 UIText.globalSizeMod = 0;
803 }
804
805 public void AddEncNote(UINote n, Card Card, ElementContainer.NoteMode mode = ElementContainer.NoteMode.Default, Func<Element, string, string> funcText = null, Action<UINote, Element> onAddNote = null)
806 {
807 string text = "";
808 switch (mode)
809 {
810 case ElementContainer.NoteMode.Domain:
811 n.AddText(Name, FontColor.Default);
812 return;
813 case ElementContainer.NoteMode.Default:
814 case ElementContainer.NoteMode.BonusTrait:
815 {
816 bool flag = source.tag.Contains("common");
817 string categorySub = source.categorySub;
818 bool flag2 = false;
819 bool flag3 = (source.tag.Contains("neg") ? (Value > 0) : (Value < 0));
820 int num = Mathf.Abs(Value);
821 bool flag4 = Card?.ShowFoodEnc ?? false;
822 bool flag5 = Card != null && Card.IsWeapon && this is Ability;
823 if (IsTrait || (flag4 && IsFoodTrait))
824 {
825 string[] textArray = source.GetTextArray("textAlt");
826 int num2 = Mathf.Clamp(Value / 10 + 1, (Value < 0 || textArray.Length <= 2) ? 1 : 2, textArray.Length - 1);
827 text = "altEnc".lang(textArray[0].IsEmpty(Name), textArray[num2], EClass.debug.showExtra ? (Value + " " + Name) : "");
828 flag3 = num2 <= 1 || textArray.Length <= 2;
829 flag2 = true;
830 }
831 else if (flag5)
832 {
833 text = "isProc".lang(Name);
834 flag3 = false;
835 }
836 else if (categorySub == "resist")
837 {
838 text = ("isResist" + (flag3 ? "Neg" : "")).lang(Name);
839 }
840 else if (categorySub == "eleAttack")
841 {
842 text = "isEleAttack".lang(Name);
843 }
844 else if (!source.textPhase.IsEmpty() && Value > 0)
845 {
846 text = source.GetText("textPhase");
847 }
848 else
849 {
850 string name = Name;
851 bool flag6 = source.category == "skill" || (source.category == "attribute" && !source.textPhase.IsEmpty());
852 bool flag7 = source.category == "enchant";
853 if (source.tag.Contains("multiplier"))
854 {
855 flag6 = (flag7 = false);
856 name = EClass.sources.elements.alias[source.aliasRef].GetName();
857 }
858 flag2 = !(flag6 || flag7);
859 text = (flag6 ? "textEncSkill" : (flag7 ? "textEncEnc" : "textEnc")).lang(name, num + (source.tag.Contains("ratio") ? "%" : ""), ((Value > 0) ? "encIncrease" : "encDecrease").lang());
860 }
861 int num3 = ((!(this is Resistance)) ? 1 : 0);
862 int num4 = 5;
863 if (id == 484)
864 {
865 num3 = 0;
866 num4 = 1;
867 }
868 if (!flag && !flag2 && !source.tag.Contains("flag"))
869 {
870 text = text + " [" + "*".Repeat(Mathf.Clamp(num * source.mtp / num4 + num3, 1, 5)) + ((num * source.mtp / num4 + num3 > 5) ? "+" : "") + "]";
871 }
872 if (HasTag("hidden") && mode != ElementContainer.NoteMode.BonusTrait)
873 {
874 text = "(debug)" + text;
875 }
876 FontColor color = (flag ? FontColor.Default : (flag3 ? FontColor.Bad : FontColor.Good));
877 if (IsGlobalElement)
878 {
879 text = text + " " + (IsFactionWideElement ? "_factionWide" : "_partyWide").lang();
880 if (!IsActive(Card))
881 {
882 return;
883 }
884 color = FontColor.Myth;
885 }
886 if (flag4 && IsFoodTrait && !IsFoodTraitMain)
887 {
888 color = FontColor.FoodMisc;
889 }
890 if (id == 2 && Value >= 0)
891 {
892 color = FontColor.FoodQuality;
893 }
894 if (funcText != null)
895 {
896 text = funcText(this, text);
897 }
898 UIItem uIItem = n.AddText("NoteText_enc", text, color);
899 Sprite sprite = EClass.core.refs.icons.enc.enc;
900 Thing thing = Card?.Thing;
901 if (thing != null)
902 {
903 if (thing.material.HasEnc(id))
904 {
905 sprite = EClass.core.refs.icons.enc.mat;
906 }
907 foreach (int key in thing.source.elementMap.Keys)
908 {
909 if (key == id)
910 {
911 sprite = EClass.core.refs.icons.enc.card;
912 }
913 }
914 if (thing.ShowFoodEnc && IsFoodTrait)
915 {
917 }
918 if (id == thing.GetInt(107))
919 {
920 sprite = EClass.core.refs.icons.enc.cat;
921 }
922 if (thing.GetRuneEnc(id) != null)
923 {
924 sprite = EClass.core.refs.icons.enc.rune;
925 }
926 }
927 if ((bool)sprite)
928 {
929 uIItem.image1.SetActive(enable: true);
930 uIItem.image1.sprite = sprite;
931 }
932 uIItem.image2.SetActive(source.IsWeaponEnc);
933 onAddNote?.Invoke(n, this);
934 return;
935 }
936 }
937 UIItem uIItem2 = n.AddTopic("TopicAttribute", Name, "".TagColor((ValueWithoutLink > 0) ? SkinManager.CurrentColors.textGood : SkinManager.CurrentColors.textBad, ValueWithoutLink.ToString() ?? ""));
938 if ((bool)uIItem2.button1)
939 {
940 uIItem2.button1.tooltip.onShowTooltip = delegate(UITooltip t)
941 {
943 };
944 }
945 SetImage(uIItem2.image1);
946 Image image = uIItem2.image2;
947 int value = (Potential - 80) / 20;
948 image.enabled = Potential != 80;
949 image.sprite = EClass.core.refs.spritesPotential[Mathf.Clamp(Mathf.Abs(value), 0, EClass.core.refs.spritesPotential.Count - 1)];
950 image.color = ((Potential - 80 >= 0) ? Color.white : new Color(1f, 0.7f, 0.7f));
951 }
952
953 public virtual void OnWriteNote(UINote n, ElementContainer owner)
954 {
955 }
956
957 public virtual void OnChangeValue()
958 {
959 }
960
962 {
963 if (owner == null || source.levelBonus.IsEmpty())
964 {
965 return;
966 }
967 bool flag = n == null;
968 string[] array = (source.GetText("levelBonus", returnNull: true) ?? source.levelBonus).Split(Environment.NewLine.ToCharArray());
969 if (!flag)
970 {
971 n.Space(10);
972 }
973 string[] array2 = array;
974 foreach (string obj in array2)
975 {
976 string[] array3 = obj.Split(',');
977 int lv = array3[0].ToInt();
978 SourceElement.Row row = (EClass.sources.elements.alias.ContainsKey(array3[1]) ? EClass.sources.elements.alias[array3[1]] : null);
979 if (flag)
980 {
981 if (lv > ValueWithoutLink)
982 {
983 break;
984 }
985 if (row != null && !owner.Has(row.id) && owner is ElementContainerZone)
986 {
987 owner.Learn(row.id);
988 }
989 }
990 else
991 {
992 string s = ((row != null) ? row.GetName() : array3[1]);
993 n.AddText((" Lv " + lv).TagColor(FontColor.Topic) + " " + s.TagColorGoodBad(() => (row != null) ? owner.Has(row.id) : (lv <= ValueWithoutLink), () => false));
994 }
995 }
996 if (!flag)
997 {
998 n.Space(4);
999 }
1000 }
1001
1003 {
1004 switch (m)
1005 {
1006 case UIList.SortMode.ByCategory:
1007 return source.id + ((!source.aliasParent.IsEmpty()) ? (EClass.sources.elements.alias[source.aliasParent].id * 10000) : 0);
1008 case UIList.SortMode.ByNumber:
1009 return -vPotential * 10000 + source.id;
1010 case UIList.SortMode.ByElementParent:
1011 if (!source.aliasParent.IsEmpty())
1012 {
1013 return EClass.sources.elements.alias[source.aliasParent].sort;
1014 }
1015 return id;
1016 default:
1017 return source.id;
1018 }
1019 }
1020
1021 public virtual Act.Cost GetCost(Chara c)
1022 {
1023 if (source.cost[0] == 0)
1024 {
1025 Act.Cost result = default(Act.Cost);
1026 result.type = Act.CostType.None;
1027 return result;
1028 }
1029 Act.Cost result2 = default(Act.Cost);
1030 if (this is Spell)
1031 {
1032 result2.type = Act.CostType.MP;
1033 int num = EClass.curve(Value, 50, 10);
1034 result2.cost = source.cost[0] * (100 + ((!source.tag.Contains("noCostInc")) ? (num * 3) : 0)) / 100;
1035 }
1036 else
1037 {
1038 result2.type = Act.CostType.SP;
1039 result2.cost = source.cost[0];
1040 switch (source.id)
1041 {
1042 case 6020:
1043 result2.cost = Mathf.Min(c.stamina.max / 3 + 10, 30);
1044 break;
1045 case 6663:
1046 case 6664:
1047 {
1048 int num2 = -2;
1049 foreach (BodySlot slot in c.body.slots)
1050 {
1051 if (slot.thing != null && slot.thing.IsMeleeWeapon)
1052 {
1053 num2++;
1054 }
1055 }
1056 result2.cost += num2 * 2;
1057 break;
1058 }
1059 }
1060 }
1061 if (!c.IsPC && result2.cost > 2)
1062 {
1063 result2.cost /= 2;
1064 }
1065 return result2;
1066 }
1067
1068 public virtual int GetPower(Card c)
1069 {
1070 return 100;
1071 }
1072
1073 public virtual void SetTextValue(UIText text)
1074 {
1075 string text2 = DisplayValue.ToString() ?? "";
1076 if (ShowXP)
1077 {
1078 text2 += ".".TagSize((vExp / 10).ToString("D2") ?? "", 11);
1079 }
1080 if (vLink != 0)
1081 {
1082 string text3 = ((vLink > 0) ? "+" : "") + vLink;
1083 text2 = "<color=" + ((DisplayValue > ValueWithoutLink) ? SkinManager.CurrentColors.textGood : SkinManager.CurrentColors.textBad).ToHex() + ">" + text2 + (" (" + text3 + ")").TagSize(13) + "</color>";
1084 }
1085 text.text = text2;
1086 }
1087
1088 public virtual bool IsPurchaseFeatReqMet(ElementContainer owner, int lv = -1)
1089 {
1090 return false;
1091 }
1092
1093 public virtual void WritePurchaseReq(UINote n, int lv = 1)
1094 {
1095 }
1096
1097 public static Element Create(int id, int v = 0)
1098 {
1099 SourceElement.Row row = EClass.sources.elements.map.TryGetValue(id);
1100 if (row == null)
1101 {
1102 return null;
1103 }
1104 Element element = ClassCache.Create<Element>(row.type.IsEmpty("Element"), "Elin");
1105 element.id = id;
1106 element.vBase = v;
1107 element._source = row;
1108 return element;
1109 }
1110
1111 public static Element Create(string id, int v = 1)
1112 {
1113 return Create(EClass.sources.elements.alias[id].id, v);
1114 }
1115
1116 public static int GetId(string alias)
1117 {
1118 return EClass.sources.elements.alias[alias].id;
1119 }
1120
1121 public static int GetResistLv(int v)
1122 {
1123 int num = v / 5;
1124 if (num < -2)
1125 {
1126 num = -2;
1127 }
1128 if (num > 4)
1129 {
1130 num = 4;
1131 }
1132 return num;
1133 }
1134
1135 public static int GetResistDamage(int dmg, int v, int power = 0)
1136 {
1137 int num = GetResistLv(v);
1138 if (power > 0 && num > 0)
1139 {
1140 num = Mathf.Max(num - power, 0);
1141 }
1142 if (num >= 4)
1143 {
1144 return 0;
1145 }
1146 return num switch
1147 {
1148 3 => dmg / 4,
1149 2 => dmg / 3,
1150 1 => dmg / 2,
1151 0 => dmg,
1152 -1 => dmg * 3 / 2,
1153 -2 => dmg * 2,
1154 _ => dmg * 2,
1155 };
1156 }
1157}
FontColor
Definition: FontColor.cs:2
SourceValueType
Definition: ACT.cs:6
static Act Create(int id)
Definition: ACT.cs:36
Definition: ACT.cs:62
CostType
Definition: ACT.cs:64
virtual bool LocalAct
Definition: ACT.cs:171
virtual TargetType TargetType
Definition: ACT.cs:142
virtual bool HaveLongPressAction
Definition: ACT.cs:133
int GetInt(int id, int? defaultInt=null)
Definition: BaseCard.cs:25
void SetElement(int id)
virtual bool HasDuration
virtual string Name
override void _WriteNote(UINote n, bool asChild=false)
virtual int EvaluateTurn(int p)
ElementContainer elements
void SetRefVal(int a, int b)
int elementId
Definition: BodySlot.cs:6
Thing thing
Definition: BodySlot.cs:8
Definition: Card.cs:11
bool IsPCFactionOrMinion
Definition: Card.cs:2208
ElementContainerCard elements
Definition: Card.cs:37
string id
Definition: Card.cs:31
SourceMaterial.Row material
Definition: Card.cs:1987
string c_idDeity
Definition: Card.cs:1541
bool IsFurniture
Definition: Card.cs:2187
int encLV
Definition: Card.cs:310
SocketData GetRuneEnc(int idEle)
Definition: Card.cs:3485
bool IsMeleeWeapon
Definition: Card.cs:2177
virtual Thing Thing
Definition: Card.cs:1994
int Evalue(int ele)
Definition: Card.cs:2507
bool ShowFoodEnc
Definition: Card.cs:2126
List< BodySlot > slots
Definition: CharaBody.cs:8
Definition: Chara.cs:10
CharaBody body
Definition: Chara.cs:94
string idFaith
Definition: Chara.cs:227
Faction faction
Definition: Chara.cs:423
override bool IsPC
Definition: Chara.cs:608
ElementContainer tempElements
Definition: Chara.cs:36
List< Condition > conditions
Definition: Chara.cs:207
bool HasCondition(string alias)
Definition: Chara.cs:8716
int CalcCastingChance(Element e, int num=1)
Definition: Chara.cs:5677
override bool IsPCFaction
Definition: Chara.cs:667
Stats stamina
Definition: Chara.cs:998
ElementContainer faithElements
Definition: Chara.cs:38
void RefreshSpeed(Element.BonusInfo info=null)
Definition: Chara.cs:1668
Religion faith
Definition: Chara.cs:435
SourceRace.Row race
Definition: Chara.cs:460
static Condition Create(string alias, int power=100, Action< Condition > onCreate=null)
Definition: Condition.cs:46
bool showExtra
Definition: CoreDebug.cs:167
Sprite traitFood
Definition: CoreRef.cs:71
Sprite mana
Definition: CoreRef.cs:122
Sprite stamina
Definition: CoreRef.cs:124
List< Sprite > spritesPotential
Definition: CoreRef.cs:365
Icons icons
Definition: CoreRef.cs:345
CoreRef refs
Definition: Core.cs:51
Definition: Dice.cs:4
override string ToString()
Definition: Dice.cs:91
static Dice Create(Element ele, Card c)
Definition: Dice.cs:96
Definition: EClass.cs:5
static int curve(int a, int start, int step, int rate=75)
Definition: EClass.cs:63
static int rnd(int a)
Definition: EClass.cs:58
static Core core
Definition: EClass.cs:6
static SourceManager sources
Definition: EClass.cs:42
static Player player
Definition: EClass.cs:12
static Chara pc
Definition: EClass.cs:14
static CoreDebug debug
Definition: EClass.cs:48
const int air
Definition: ELEMENT.cs:28
const int stimulant
Definition: ELEMENT.cs:22
const int antidote
Definition: ELEMENT.cs:14
const int weight
Definition: ELEMENT.cs:44
const int growth
Definition: ELEMENT.cs:50
const int old_heal
Definition: ELEMENT.cs:66
const int race
Definition: ELEMENT.cs:72
const int comfort
Definition: ELEMENT.cs:8
const int cute
Definition: ELEMENT.cs:12
const int decay
Definition: ELEMENT.cs:54
const int purity
Definition: ELEMENT.cs:20
const int nutrition
Definition: ELEMENT.cs:42
const int _void
Definition: ELEMENT.cs:32
const int heat
Definition: ELEMENT.cs:52
const int rare
Definition: ELEMENT.cs:10
const int taste
Definition: ELEMENT.cs:56
const int size
Definition: ELEMENT.cs:46
const int quality
Definition: ELEMENT.cs:38
const int piety
Definition: ELEMENT.cs:74
const int nerve
Definition: ELEMENT.cs:16
const int poison
Definition: ELEMENT.cs:76
static readonly int[] IDS
Definition: ELEMENT.cs:78
const int hotspring
Definition: ELEMENT.cs:18
const int cure
Definition: ELEMENT.cs:70
const int roasted
Definition: ELEMENT.cs:26
const int water
Definition: ELEMENT.cs:58
const int fire
Definition: ELEMENT.cs:60
const int recharge
Definition: ELEMENT.cs:24
const int lv
Definition: ELEMENT.cs:36
const int old_detox
Definition: ELEMENT.cs:64
const int socket
Definition: ELEMENT.cs:40
const int old_antidote
Definition: ELEMENT.cs:68
const int blood
Definition: ELEMENT.cs:30
const int d
Definition: ELEMENT.cs:34
const int hardness
Definition: ELEMENT.cs:48
const int cut
Definition: ELEMENT.cs:62
Dictionary< int, Element > dict
void Learn(int ele, int v=1)
bool Has(int ele)
virtual Card Card
int Value(int ele)
virtual int ValueBonus(Element e)
Element GetOrCreateElement(Element ele)
virtual Chara Chara
Element GetElement(string alias)
void AddText(string text, FontColor col=FontColor.Warning)
Definition: ELEMENT.cs:109
void WriteNote()
Definition: ELEMENT.cs:139
void AddFix(int v, string text)
Definition: ELEMENT.cs:130
Element ele
Definition: ELEMENT.cs:90
void CheckFirst()
Definition: ELEMENT.cs:100
void AddText(int v, string text, string textBad=null)
Definition: ELEMENT.cs:115
bool IsFactionElement(Chara c)
Definition: ELEMENT.cs:491
virtual bool ShowPotential
Definition: ELEMENT.cs:330
virtual bool ShowMsgOnValueChanged
Definition: ELEMENT.cs:326
virtual bool CanGainExp
Definition: ELEMENT.cs:298
virtual Sprite GetSprite()
Definition: ELEMENT.cs:414
virtual int DisplayValue
Definition: ELEMENT.cs:286
virtual void OnChangeValue()
Definition: ELEMENT.cs:957
static Element Create(string id, int v=1)
Definition: ELEMENT.cs:1111
int ValueWithoutLink
Definition: ELEMENT.cs:292
static int[] List_Body
Definition: ELEMENT.cs:242
virtual bool ShowXP
Definition: ELEMENT.cs:315
virtual bool UseExpMod
Definition: ELEMENT.cs:308
static int GetResistDamage(int dmg, int v, int power=0)
Definition: ELEMENT.cs:1135
int Potential
Definition: ELEMENT.cs:296
int GetMaterialSourceValue(Thing t, int v)
Definition: ELEMENT.cs:419
virtual SourceElement.Row GetSource()
Definition: ELEMENT.cs:404
int id
Definition: ELEMENT.cs:248
int vBase
Definition: ELEMENT.cs:250
virtual void WritePurchaseReq(UINote n, int lv=1)
Definition: ELEMENT.cs:1093
SourceElement.Row source
Definition: ELEMENT.cs:271
int vExp
Definition: ELEMENT.cs:252
virtual int GetSourceValue(int v, int lv, SourceValueType type)
Definition: ELEMENT.cs:436
virtual bool IsPurchaseFeatReqMet(ElementContainer owner, int lv=-1)
Definition: ELEMENT.cs:1088
void _WriteNote(UINote n, Chara c, Act act)
Definition: ELEMENT.cs:604
int vPotential
Definition: ELEMENT.cs:254
static SourceElement.Row Get(int id)
Definition: ELEMENT.cs:399
virtual int GetSourcePotential(int v)
Definition: ELEMENT.cs:409
ElementContainer owner
Definition: ELEMENT.cs:264
virtual Sprite GetIcon(string suffix="")
Definition: ELEMENT.cs:446
static int GetResistLv(int v)
Definition: ELEMENT.cs:1121
virtual int MinValue
Definition: ELEMENT.cs:288
bool HasTag(string tag)
Definition: ELEMENT.cs:471
virtual int CostTrain
Definition: ELEMENT.cs:310
int vTempPotential
Definition: ELEMENT.cs:256
static List< SourceElement.Row > ListAttackElements
Definition: ELEMENT.cs:268
static int[] List_MainAttributes
Definition: ELEMENT.cs:238
static int GetId(string alias)
Definition: ELEMENT.cs:1116
virtual string FullName
Definition: ELEMENT.cs:304
void AddHeaderAbility(UINote n)
Definition: ELEMENT.cs:706
static Dictionary< int, int > GetElementMap(int[] list, Dictionary< int, int > map)
Definition: ELEMENT.cs:542
void AddEncNote(UINote n, Card Card, ElementContainer.NoteMode mode=ElementContainer.NoteMode.Default, Func< Element, string, string > funcText=null, Action< UINote, Element > onAddNote=null)
Definition: ELEMENT.cs:805
int GetSortVal(UIList.SortMode m)
Definition: ELEMENT.cs:1002
virtual int GetPower(Card c)
Definition: ELEMENT.cs:1068
void SetImage(Image i)
Definition: ELEMENT.cs:476
int Value
Definition: ELEMENT.cs:290
void CheckLevelBonus(ElementContainer owner, UINote n=null)
Definition: ELEMENT.cs:961
virtual bool ShowRelativeAttribute
Definition: ELEMENT.cs:336
void WriteNoteWithRef(UINote n, ElementContainer owner, Action< UINote > onWriteNote, Element refEle)
Definition: ELEMENT.cs:589
bool IsFoodTrait
Definition: ELEMENT.cs:362
virtual void SetTextValue(UIText text)
Definition: ELEMENT.cs:1073
virtual string Name
Definition: ELEMENT.cs:302
static Dictionary< int, int > GetElementMap(int[] list)
Definition: ELEMENT.cs:529
static Element Create(int id, int v=0)
Definition: ELEMENT.cs:1097
virtual bool CanLink(ElementContainer owner)
Definition: ELEMENT.cs:466
int vLink
Definition: ELEMENT.cs:258
virtual Act.Cost GetCost(Chara c)
Definition: ELEMENT.cs:1021
virtual bool ShowEncNumber
Definition: ELEMENT.cs:358
static string GetName(string alias)
Definition: ELEMENT.cs:394
static SourceElement.Row GetRandomElement(int lv=1)
Definition: ELEMENT.cs:554
static List< SourceElement.Row > ListElements
Definition: ELEMENT.cs:266
virtual bool ShowBonuses
Definition: ELEMENT.cs:338
virtual bool PotentialAsStock
Definition: ELEMENT.cs:334
int vSource
Definition: ELEMENT.cs:260
void WriteNote(UINote n, ElementContainer owner=null, Action< UINote > onWriteNote=null)
Definition: ELEMENT.cs:582
static Element Void
Definition: ELEMENT.cs:236
virtual bool UsePotential
Definition: ELEMENT.cs:332
int vSourcePotential
Definition: ELEMENT.cs:262
void _WriteNote(UINote n, ElementContainer owner, Action< UINote > onWriteNote, bool isRef, bool addHeader=true)
Definition: ELEMENT.cs:713
bool IsGlobalElement
Definition: ELEMENT.cs:343
bool IsPartyWideElement
Definition: ELEMENT.cs:356
bool IsTrait
Definition: ELEMENT.cs:360
bool IsFactionWideElement
Definition: ELEMENT.cs:354
static int[] List_Mind
Definition: ELEMENT.cs:244
virtual void OnWriteNote(UINote n, ElementContainer owner)
Definition: ELEMENT.cs:953
virtual string GetDetail()
Definition: ELEMENT.cs:486
Element GetParent(Card c)
Definition: ELEMENT.cs:520
virtual int MinPotential
Definition: ELEMENT.cs:294
virtual int CostLearn
Definition: ELEMENT.cs:312
SourceElement.Row _source
Definition: ELEMENT.cs:246
static int[] List_MainAttributesMajor
Definition: ELEMENT.cs:240
const int Div
Definition: ELEMENT.cs:234
Act act
Definition: ELEMENT.cs:392
bool IsFoodTraitMain
Definition: ELEMENT.cs:365
bool IsFlag
Definition: ELEMENT.cs:300
virtual bool ShowValue
Definition: ELEMENT.cs:328
bool IsMainAttribute
Definition: ELEMENT.cs:381
virtual int ExpToNext
Definition: ELEMENT.cs:306
bool IsActive(Card c)
Definition: ELEMENT.cs:451
virtual string ShortName
Definition: ELEMENT.cs:340
int SortVal(bool charaSheet=false)
Definition: ELEMENT.cs:460
ElementContainerFaction charaElements
Definition: FACTION.cs:146
int CountKeyItem(string alias)
Definition: Player.cs:1967
virtual string id
Definition: Religion.cs:26
static SkinColorProfile CurrentColors
Definition: SkinManager.cs:84
override string GetName()
SourceKeyItem keyItems
SourceElement elements
Definition: SPELL.cs:527
static Sprite Get(string id)
Definition: SpriteSheet.cs:28
virtual int value
Definition: Stats.cs:56
virtual int max
Definition: Stats.cs:68
Definition: Thing.cs:8
SourceThing.Row source
Definition: Thing.cs:11
Definition: UIItem.cs:5
Image image2
Definition: UIItem.cs:16
UIText text3
Definition: UIItem.cs:10
UIButton button1
Definition: UIItem.cs:18
Image image1
Definition: UIItem.cs:14
UIText text2
Definition: UIItem.cs:8
UIText text1
Definition: UIItem.cs:6
Definition: UIList.cs:9
SortMode
Definition: UIList.cs:27
Definition: UINote.cs:6
void Clear()
Definition: UINote.cs:35
UIItem AddItem(string id)
Definition: UINote.cs:139
UIItem AddHeader(string text, Sprite sprite=null)
Definition: UINote.cs:79
UIItem AddTopic(string id, string text, string value=null)
Definition: UINote.cs:144
UIItem AddText(string text, FontColor color=FontColor.DontChange)
Definition: UINote.cs:113
void Space(int sizeY=0, int sizeX=1)
Definition: UINote.cs:62
void Build()
Definition: UINote.cs:49
Definition: UIText.cs:6
void SetText(string s)
Definition: UIText.cs:159
UINote note
Definition: UITooltip.cs:21
Definition: ACT.cs:71
CostType type
Definition: ACT.cs:74
int cost
Definition: ACT.cs:72