Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
InvOwnerReconstruction.cs
Go to the documentation of this file.
2{
3 public override bool CanTargetAlly => true;
4
5 public override string langTransfer => "invReconstruct";
6
7 public override string langWhat => "target_what";
8
9 public override Thing CreateDefaultContainer()
10 {
11 return ThingGen.CreateScroll(8288);
12 }
13
14 public override bool ShouldShowGuide(Thing t)
15 {
16 if (t.HasTag(CTAG.godArtifact))
17 {
18 return false;
19 }
20 if (t.trait is TraitTent)
21 {
22 return false;
23 }
24 if (t.trait is TraitStairs)
25 {
26 return false;
27 }
28 if (!t.trait.CanBeDropped || t.category.IsChildOf("currency"))
29 {
30 return false;
31 }
32 if (!t.IsEquipment)
33 {
34 return false;
35 }
36 if (t.isReplica)
37 {
38 return false;
39 }
40 return true;
41 }
42
43 public override void _OnProcess(Thing t)
44 {
45 ActEffect.Proc(EffectId.Reconstruction, 100, state, t.GetRootCard(), t);
46 }
47}
CTAG
Definition: CTAG.cs:2
EffectId
Definition: EffectId.cs:2
static void Proc(EffectId id, Card cc, Card tc=null, int power=100, ActRef actRef=default(ActRef))
Definition: ActEffect.cs:788
bool HasTag(CTAG tag)
Definition: Card.cs:2455
Trait trait
Definition: Card.cs:49
bool IsEquipment
Definition: Card.cs:2049
Card GetRootCard()
Definition: Card.cs:3173
SourceCategory.Row category
Definition: Card.cs:1925
bool isReplica
Definition: Card.cs:670
BlessedState state
override Thing CreateDefaultContainer()
override void _OnProcess(Thing t)
override bool ShouldShowGuide(Thing t)
static Thing CreateScroll(int ele, int num=1)
Definition: ThingGen.cs:163
Definition: Thing.cs:8
virtual bool CanBeDropped
Definition: Trait.cs:289