Elin Decompiled Documentation EA 23.102 Nightly
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Pages
InvOwnerEnchant.cs
Go to the documentation of this file.
2{
3 public bool armor;
4
5 public override bool CanTargetAlly => true;
6
7 public override string langTransfer => "invEnchant";
8
9 public override Thing CreateDefaultContainer()
10 {
11 return ThingGen.CreateScroll((!armor) ? (superior ? 8251 : 8250) : (superior ? 8256 : 8255));
12 }
13
14 public override bool ShouldShowGuide(Thing t)
15 {
16 return t.category.IsChildOf(armor ? "armor" : "weapon");
17 }
18
19 public override void _OnProcess(Thing t)
20 {
21 ActEffect.Proc((!armor) ? (superior ? EffectId.EnchantWeaponGreat : EffectId.EnchantWeapon) : (superior ? EffectId.EnchantArmorGreat : EffectId.EnchantArmor), 100, state, t.GetRootCard(), t);
22 }
23}
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
SourceCategory.Row category
Definition: Card.cs:1925
BlessedState state
override void _OnProcess(Thing t)
override string langTransfer
override bool ShouldShowGuide(Thing t)
override Thing CreateDefaultContainer()
override bool CanTargetAlly
static Thing CreateScroll(int ele, int num=1)
Definition: ThingGen.cs:163
Definition: Thing.cs:8