14 return 100 + this.rank * this.rank * 100;
29 public int GetSalary()
35 return this.rank * 100;
40 public string TextTitle
44 return Lang.GetList(
"guild_title")[Mathf.Min(this.rank / 2, 5)];
49 public string GetTextRelation()
51 return (
"faction_" + this.type.ToString()).lang();
55 public void SetTextHostility(UIText text)
57 if (this.IsMember() || this.affinity > 100)
59 text.SetText(
"reFriend".lang(), FontColor.Good);
62 if (this.affinity < -100)
64 text.SetText(
"reEnemy".lang(), FontColor.Bad);
67 text.SetText(
"reNeutral".lang(), FontColor.Passive);
71 public bool IsMember()
73 return this.type == FactionRelation.RelationType.Member || this.type ==
FactionRelation.RelationType.Owner;
79 this.exp -= this.ExpToNext;
81 Msg.Say(
"faction_promote");
82 SE.Play(
"questComplete");
99 public FactionRelation.RelationType type;
105 public enum RelationType