Elin Decompiled Documentation
EA 23.102 Nightly
Toggle main menu visibility
Main Page
Namespaces
Namespace List
Namespace Members
All
Functions
Enumerations
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
w
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Events
Files
File List
File Members
All
$
a
b
c
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
z
Functions
Variables
Enumerations
a
b
c
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
z
•
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Properties
Events
Pages
Loading...
Searching...
No Matches
InvOwnerEnchant.cs
Go to the documentation of this file.
1
public
class
InvOwnerEnchant
:
InvOwnerEffect
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
EffectId
Definition:
EffectId.cs:2
ActEffect
Definition:
ActEffect.cs:7
ActEffect.Proc
static void Proc(EffectId id, Card cc, Card tc=null, int power=100, ActRef actRef=default(ActRef))
Definition:
ActEffect.cs:788
Card.GetRootCard
Card GetRootCard()
Definition:
Card.cs:3173
Card.category
SourceCategory.Row category
Definition:
Card.cs:1925
InvOwnerDraglet.state
BlessedState state
Definition:
InvOwnerDraglet.cs:14
InvOwnerEffect
Definition:
InvOwnerEffect.cs:2
InvOwnerEffect.superior
bool superior
Definition:
InvOwnerEffect.cs:7
InvOwnerEnchant
Definition:
InvOwnerEnchant.cs:2
InvOwnerEnchant._OnProcess
override void _OnProcess(Thing t)
Definition:
InvOwnerEnchant.cs:19
InvOwnerEnchant.langTransfer
override string langTransfer
Definition:
InvOwnerEnchant.cs:7
InvOwnerEnchant.ShouldShowGuide
override bool ShouldShowGuide(Thing t)
Definition:
InvOwnerEnchant.cs:14
InvOwnerEnchant.armor
bool armor
Definition:
InvOwnerEnchant.cs:3
InvOwnerEnchant.CreateDefaultContainer
override Thing CreateDefaultContainer()
Definition:
InvOwnerEnchant.cs:9
InvOwnerEnchant.CanTargetAlly
override bool CanTargetAlly
Definition:
InvOwnerEnchant.cs:5
ThingGen
Definition:
ThingGen.cs:5
ThingGen.CreateScroll
static Thing CreateScroll(int ele, int num=1)
Definition:
ThingGen.cs:163
Thing
Definition:
Thing.cs:8
Elin
InvOwnerEnchant.cs
Generated by
1.9.6