1using System.Collections.Generic;
30 if (a.tag.Contains(
"hidden") || a.tag.Contains(
"unused"))
36 if (a.category !=
"policy" && a.category !=
"tech")
40 if (a.cost.Length == 0 || (a.category ==
"tech" && a.cost[0] == 0))
45 else if (a.category !=
"skill")
51 owner.refVal = ie.RandomItem().id;
54 public override void SetName(ref
string s)
61 text =
" (" +
"policy".lang() +
")";
63 s =
"_of".lang((source.
GetName() + text).Bracket(1), s);
66 s = s +
" " +
"alreadyLearned".lang();
73 if (IsPlan && !c.
IsPC)
79 owner.Say(
"skillbook_invalidZone");
84 owner.Say(
"skillbook_knownSkill", c, source.
GetName());
87 owner.Say(IsPlan ?
"skillbook_learnPlan" :
"skillbook_learn", c, source.
GetName());
106 c.
elements.
ModExp(idEle, owner.IsBlessed ? 1500 : (owner.IsCursed ? 500 : 1000));
108 c.
Say(
"spellbookCrumble", owner.Duplicate(1));
114 return owner.sourceCard.value;
119 base.WriteNote(n, identified);
128 n.AddText(
"_bullet".lang() + member.
Name +
" " + (flag ?
"alreadyLearned" :
"notLearned").lang(), flag ?
FontColor.Good :
FontColor.Warning);
if(item3.idFile==idFirstFile &&item3.id==idFirstTopic)
ElementContainerCard elements
void Say(string lang, string ref1=null, string ref2=null)
static SourceManager sources
static FactionBranch Branch
void Learn(int ele, int v=1)
void ModExp(int ele, int a, bool chain=false)
ElementContainerZone elements
void ValidateUpgradePolicies()
List< FactionBranch > GetChildren()
void AddPolicy(string id)
override string GetName()
override void SetName(ref string s)
override void WriteNote(UINote n, bool identified)
override bool CanRead(Chara c)
override SourceElement.Row source
override void OnCreate(int lv)
override void OnRead(Chara c)
override int GetActDuration(Chara c)
void Space(int sizeY=0, int sizeX=1)