Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
InvOwnerIdentify.cs
Go to the documentation of this file.
2{
3 public override bool CanTargetAlly => true;
4
5 public override string langTransfer => "invIdentify";
6
7 public override string langWhat => "identify_what";
8
9 public override Thing CreateDefaultContainer()
10 {
11 return ThingGen.CreateScroll(superior ? 8232 : 8230);
12 }
13
14 public override bool ShouldShowGuide(Thing t)
15 {
16 return !t.IsIdentified;
17 }
18
19 public override void _OnProcess(Thing t)
20 {
21 ActEffect.Proc(superior ? EffectId.GreaterIdentify : EffectId.Identify, 100, state, t.GetRootCard(), t);
22 if (!t.GetRootCard().IsPC)
23 {
24 return;
25 }
26 EClass.core.actionsNextFrame.Add(delegate
27 {
28 EClass.core.actionsNextFrame.Add(delegate
29 {
30 UIButton.TryShowTip(null, highlight: true, ignoreWhenRightClick: false);
31 });
32 });
33 }
34}
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
List< Action > actionsNextFrame
Definition: BaseCore.cs:31
virtual bool IsPC
Definition: Card.cs:2019
Card GetRootCard()
Definition: Card.cs:3173
bool IsIdentified
Definition: Card.cs:2237
Definition: EClass.cs:5
static Core core
Definition: EClass.cs:6
BlessedState state
override string langTransfer
override bool CanTargetAlly
override void _OnProcess(Thing t)
override string langWhat
override bool ShouldShowGuide(Thing t)
override Thing CreateDefaultContainer()
static Thing CreateScroll(int ele, int num=1)
Definition: ThingGen.cs:163
Definition: Thing.cs:8
static void TryShowTip(Transform root=null, bool highlight=true, bool ignoreWhenRightClick=true)
Definition: UIButton.cs:778