Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
InvOwnerLighten.cs
Go to the documentation of this file.
2{
3 public override bool CanTargetAlly => true;
4
5 public override string langTransfer => "invLighten";
6
7 public override string langWhat => "target_what";
8
9 public override Thing CreateDefaultContainer()
10 {
11 return ThingGen.CreateScroll(8280);
12 }
13
14 public override bool ShouldShowGuide(Thing t)
15 {
16 if (t.trait is TraitTent)
17 {
18 return false;
19 }
20 if (t.trait.CanBeDropped && !t.category.IsChildOf("currency"))
21 {
22 if (state > BlessedState.Cursed)
23 {
24 return t.SelfWeight >= 100;
25 }
26 return true;
27 }
28 return false;
29 }
30
31 public override void _OnProcess(Thing t)
32 {
33 ActEffect.Proc(EffectId.Lighten, 100, state, t.GetRootCard(), t);
34 }
35}
BlessedState
Definition: BlessedState.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
Trait trait
Definition: Card.cs:49
Card GetRootCard()
Definition: Card.cs:3173
SourceCategory.Row category
Definition: Card.cs:1925
BlessedState state
override bool ShouldShowGuide(Thing t)
override string langTransfer
override string langWhat
override void _OnProcess(Thing t)
override Thing CreateDefaultContainer()
override bool CanTargetAlly
static Thing CreateScroll(int ele, int num=1)
Definition: ThingGen.cs:163
Definition: Thing.cs:8
virtual bool CanBeDropped
Definition: Trait.cs:289