Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
TraitBookPlan.cs
Go to the documentation of this file.
1using UnityEngine;
2
4{
5 public override bool IsPlan => true;
6
7 public override int GetValue()
8 {
9 return base.GetValue() * (Mathf.Max(source.cost[0], 3) * 17) / 100;
10 }
11
12 public override void WriteNote(UINote n, bool identified)
13 {
14 base.WriteNote(n, identified);
15 n.Space();
16 foreach (FactionBranch child in EClass.pc.faction.GetChildren())
17 {
18 bool flag = child.elements.HasBase(base.idEle);
19 n.AddText("_bullet".lang() + child.owner.Name + " " + (flag ? "alreadyLearned" : "notLearned").lang(), flag ? FontColor.Good : FontColor.Warning);
20 }
21 }
22}
FontColor
Definition: FontColor.cs:2
Faction faction
Definition: Chara.cs:412
Definition: EClass.cs:5
static Chara pc
Definition: EClass.cs:14
bool HasBase(int ele)
ElementContainerZone elements
List< FactionBranch > GetChildren()
Definition: FACTION.cs:200
virtual string Name
Definition: Spatial.cs:495
override void WriteNote(UINote n, bool identified)
override bool IsPlan
Definition: TraitBookPlan.cs:5
override int GetValue()
Definition: TraitBookPlan.cs:7
override SourceElement.Row source
Definition: UINote.cs:6
void Space(int sizeY=0, int sizeX=1)
Definition: UINote.cs:62