Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
TraitFactionBoard.cs
Go to the documentation of this file.
1using System.Collections.Generic;
2
4{
5 public override bool IsHomeItem => true;
6
7 public override void TrySetAct(ActPlan p)
8 {
10 {
11 return;
12 }
13 p.TrySetAct("actChangeFactionName", delegate
14 {
15 EClass.ui.AddLayer<LayerList>().SetStringList(delegate
16 {
17 List<string> list = new List<string>();
18 for (int i = 0; i < 10; i++)
19 {
20 list.Add(WordGen.GetCombinedName(GetAlias()));
21 }
22 return list;
23 }, delegate(int a, string b)
24 {
25 EClass.Home.name = b;
26 }).SetSize()
27 .EnableReroll();
28 return false;
29 }, owner);
30 p.TrySetAct("actShowSigns", delegate
31 {
32 SE.Click();
33 foreach (Thing thing in EClass._map.things)
34 {
35 if (thing.IsInstalled && thing.source._origin == "sign")
36 {
37 thing.isMasked = false;
38 }
39 }
40 return false;
41 }, owner);
42 p.TrySetAct("actHideSigns", delegate
43 {
44 SE.Click();
45 foreach (Thing thing2 in EClass._map.things)
46 {
47 if (thing2.IsInstalled && thing2.source._origin == "sign")
48 {
49 thing2.isMasked = true;
50 }
51 }
52 return false;
53 }, owner);
54 }
55
56 public string GetAlias()
57 {
58 return EClass.player.title;
59 }
60}
bool TrySetAct(string lang, Func< bool > onPerform, Card tc, CursorInfo cursor=null, int dist=1, bool isHostileAct=false, bool localAct=true, bool canRepeat=false)
Definition: ActPlan.cs:344
bool IsInstalled
Definition: Card.cs:2241
Definition: EClass.cs:5
static Zone _zone
Definition: EClass.cs:20
static Map _map
Definition: EClass.cs:18
static Player player
Definition: EClass.cs:12
static UI ui
Definition: EClass.cs:16
LayerList EnableReroll()
Definition: LayerList.cs:259
List< Thing > things
Definition: Map.cs:49
string title
Definition: Player.cs:805
Definition: Thing.cs:8
SourceThing.Row source
Definition: Thing.cs:11
override void TrySetAct(ActPlan p)
override bool IsHomeItem
Card owner
Definition: Trait.cs:26
bool IsPCFaction
Definition: Zone.cs:464