Elin Modding Docs Doc
Loading...
Searching...
No Matches
TraitBookPlan.cs
1using System;
2using UnityEngine;
3
4// Token: 0x0200035D RID: 861
6{
7 // Token: 0x170007D0 RID: 2000
8 // (get) Token: 0x06001AB6 RID: 6838 RVA: 0x000A5FDF File Offset: 0x000A41DF
9 public override bool IsPlan
10 {
11 get
12 {
13 return true;
14 }
15 }
16
17 // Token: 0x06001AB7 RID: 6839 RVA: 0x000A5FE2 File Offset: 0x000A41E2
18 public override int GetValue()
19 {
20 return base.GetValue() * (Mathf.Max(this.source.cost[0], 3) * 17) / 100;
21 }
22
23 // Token: 0x06001AB8 RID: 6840 RVA: 0x000A6004 File Offset: 0x000A4204
24 public override void WriteNote(UINote n, bool identified)
25 {
26 base.WriteNote(n, identified);
27 n.Space(0, 1);
28 foreach (FactionBranch factionBranch in EClass.pc.faction.GetChildren())
29 {
30 bool flag = factionBranch.elements.HasBase(base.idEle);
31 n.AddText("_bullet".lang() + factionBranch.owner.Name + (flag ? "alreadyLearned" : "notLearned").lang(), flag ? FontColor.Good : FontColor.Warning);
32 }
33 }
34}