Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
QuestGuild.cs
Go to the documentation of this file.
1using UnityEngine;
2
4{
5 public const int Started = 0;
6
7 public const int CompletedTrial = 1;
8
9 public const int Joined = 10;
10
11 public virtual Guild guild => null;
12
13 public override string TitlePrefix => "☆";
14
15 public override bool UpdateOnTalk()
16 {
17 return false;
18 }
19
20 public override string GetTrackerText()
21 {
23 {
25 return "faction_contribution".lang(Mathf.Min(relation.exp, relation.ExpToNext).ToString() ?? "", relation.ExpToNext.ToString() ?? "");
26 }
27 return base.GetTrackerText();
28 }
29
30 public override string GetDetailText(bool onJournal = false)
31 {
32 string text = base.GetDetailText(onJournal);
34 {
36 int num = relation.rank / 2;
37 text += "\n\n";
38 text = text + guild.Name.TagColor(FontColor.Topic) + "\n";
39 text = text + "faction_rank".lang(relation.rank.ToString() ?? "", relation.TextTitle) + "\n";
40 text = text + "faction_contribution".lang(Mathf.Min(relation.exp, relation.ExpToNext).ToString() ?? "", relation.ExpToNext.ToString() ?? "") + "\n";
41 text = text + "faction_salary".lang(relation.GetSalary().ToString() ?? "") + "\n";
42 text += "\n";
43 text = text + "faction_task".lang().TagColor(FontColor.Topic) + "\n";
44 text = text + (guild.id + "_task1").lang() + "\n";
45 text += "\n";
46 text = text + "faction_benefit".lang().TagColor(FontColor.Topic) + "\n";
47 text = text + (guild.id + "_benefit1").lang() + "\n";
48 if (num >= 1)
49 {
50 text = text + "guild_benefit_trainer".lang() + "\n";
51 }
52 if (num >= 2)
53 {
54 text = text + (guild.id + "_benefit2").lang() + "\n";
55 }
56 if (num >= 4)
57 {
58 text = text + "guild_benefit_feat".lang() + "\n";
59 }
60 }
61 return text;
62 }
63}
FontColor
Definition: FontColor.cs:2
RelationType type
string Name
Definition: FACTION.cs:148
FactionRelation relation
Definition: FACTION.cs:124
Definition: Guild.cs:2
const int Started
Definition: QuestGuild.cs:5
const int Joined
Definition: QuestGuild.cs:9
virtual Guild guild
Definition: QuestGuild.cs:11
override bool UpdateOnTalk()
Definition: QuestGuild.cs:15
override string TitlePrefix
Definition: QuestGuild.cs:13
override string GetDetailText(bool onJournal=false)
Definition: QuestGuild.cs:30
const int CompletedTrial
Definition: QuestGuild.cs:7
override string GetTrackerText()
Definition: QuestGuild.cs:20