Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
TraitBlueprint.cs
Go to the documentation of this file.
1using System.IO;
2
4{
5 public string path
6 {
7 get
8 {
9 return owner.GetStr(54);
10 }
11 set
12 {
13 owner.SetStr(54, value);
14 }
15 }
16
17 public override bool CanStackTo(Thing to)
18 {
19 return path == to.GetStr(54);
20 }
21
22 public override void OnRead(Chara c)
23 {
25 {
26 Msg.Say("skillbook_invalidZone");
27 return;
28 }
29 if (!path.IsEmpty() && !File.Exists(path))
30 {
32 return;
33 }
36 }
37
38 public override void SetName(ref string s)
39 {
40 if (!owner.c_idRefName.IsEmpty())
41 {
42 s = "_written".lang(owner.c_idRefName, s);
43 }
44 }
45}
void SetBlueprint(TraitBlueprint _bp)
Definition: AM_Blueprint.cs:21
void Activate(bool toggle=true, bool forceActivate=false)
Definition: ActionMode.cs:339
static AM_Blueprint Blueprint
Definition: ActionMode.cs:47
void SetStr(int id, string value=null)
Definition: BaseCard.cs:63
string GetStr(int id, string defaultStr=null)
Definition: BaseCard.cs:54
string c_idRefName
Definition: Card.cs:1541
Definition: Chara.cs:10
bool godBuild
Definition: CoreDebug.cs:303
Definition: EClass.cs:5
static Zone _zone
Definition: EClass.cs:20
static CoreDebug debug
Definition: EClass.cs:48
Definition: Msg.cs:5
static string SayNothingHappen()
Definition: Msg.cs:96
static string Say(string idLang, string ref1, string ref2=null, string ref3=null, string ref4=null)
Definition: Msg.cs:58
Definition: Thing.cs:8
override void OnRead(Chara c)
override bool CanStackTo(Thing to)
override void SetName(ref string s)
Card owner
Definition: Trait.cs:26
bool IsPCFaction
Definition: Zone.cs:464