Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
InvOwnerUncurse.cs
Go to the documentation of this file.
2{
3 public override bool CanTargetAlly => true;
4
5 public override string langTransfer => "invUncurse";
6
7 public override string langWhat => "target_what";
8
9 public override Thing CreateDefaultContainer()
10 {
11 return ThingGen.CreateScroll(superior ? 8241 : 8240);
12 }
13
14 public override bool ShouldShowGuide(Thing t)
15 {
16 return t.blessedState <= BlessedState.Cursed;
17 }
18
19 public override void _OnProcess(Thing t)
20 {
21 ActEffect.Proc(EffectId.Uncurse, 100, state, t.GetRootCard(), t);
22 }
23}
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
Card GetRootCard()
Definition: Card.cs:3173
BlessedState state
override bool CanTargetAlly
override Thing CreateDefaultContainer()
override string langTransfer
override void _OnProcess(Thing t)
override bool ShouldShowGuide(Thing t)
override string langWhat
static Thing CreateScroll(int ele, int num=1)
Definition: ThingGen.cs:163
Definition: Thing.cs:8