Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
ThirstPersonInfo.cs
Go to the documentation of this file.
1public class ThirstPersonInfo : EClass
2{
3 public string he;
4
5 public string his;
6
7 public string him;
8
9 public string himself;
10
11 public string your;
12
13 public bool active;
14
15 public bool thirdperson;
16
17 public void Set(string n)
18 {
19 active = int.TryParse(n, out var _);
20 if (active)
21 {
22 he = "it".lang();
23 his = "its".lang();
24 him = "it".lang();
25 himself = "itself".lang();
26 your = "somethings".lang();
27 thirdperson = true;
28 }
29 }
30
31 public void Set(Card c = null, bool forceThirdPerson = false)
32 {
33 if (c == null)
34 {
35 active = false;
36 return;
37 }
38 active = true;
39 if (c.IsPC && !forceThirdPerson)
40 {
41 he = "you".lang();
42 his = "your".lang();
43 him = "you".lang();
44 himself = "yourself".lang();
45 your = his;
46 thirdperson = false;
47 }
48 else if (forceThirdPerson || Msg.alwaysVisible || (!EClass.pc.isBlind && EClass.pc.CanSee(c)))
49 {
50 he = ((!c.isChara) ? "it".lang() : (c.IsMale ? "he".lang() : "she".lang()));
51 his = ((!c.isChara) ? "its".lang() : (c.IsMale ? "his".lang() : "hers".lang()));
52 him = ((!c.isChara) ? "it".lang() : (c.IsMale ? "him".lang() : "her".lang()));
53 himself = ((!c.isChara) ? "itself".lang() : (c.IsMale ? "himself".lang() : "herself".lang()));
54 your = "ones".lang(c.Name);
55 thirdperson = true;
56 }
57 else
58 {
59 he = "it".lang();
60 his = "its".lang();
61 him = "it".lang();
62 himself = "itself".lang();
63 your = (c.isChara ? "someones" : "somethings").lang();
64 thirdperson = true;
65 }
66 }
67}
Definition: Card.cs:11
bool CanSee(Card c)
Definition: Chara.cs:1027
bool isBlind
Definition: Chara.cs:125
Definition: EClass.cs:5
static Chara pc
Definition: EClass.cs:14
Definition: Msg.cs:5
static bool alwaysVisible
Definition: Msg.cs:12
void Set(Card c=null, bool forceThirdPerson=false)
void Set(string n)