Elin Decompiled Documentation
EA 23.200 Stable
Loading...
Searching...
No Matches
TraitSpellbook.cs
Go to the documentation of this file.
1
public
class
TraitSpellbook
:
TraitBaseSpellbook
2
{
3
public
override
int
Difficulty
=> 10 +
source
.LV;
4
5
public
static
void
Create
(
Card
owner
,
int
ele)
6
{
7
owner.refVal = ele;
8
SourceElement.Row
row =
EClass
.
sources
.
elements
.map[ele];
9
if
(row.
tag
.Contains(
"noCopy"
))
10
{
11
owner
.
elements
.
SetBase
(759, 10);
12
}
13
switch
(row.
id
)
14
{
15
case
8430:
16
owner
.
elements
.
SetBase
(765, 40);
17
break
;
18
case
9155:
19
owner
.
elements
.
SetBase
(765, 70);
20
break
;
21
case
8390:
22
case
8550:
23
owner
.
elements
.
SetBase
(765, 100);
24
break
;
25
}
26
if
(row.
charge
== 1)
27
{
28
owner.c_charges = 1;
29
}
30
}
31
}
Card
Definition:
Card.cs:11
Card.elements
ElementContainerCard elements
Definition:
Card.cs:39
EClass
Definition:
EClass.cs:5
EClass.sources
static SourceManager sources
Definition:
EClass.cs:42
ElementContainer.SetBase
Element SetBase(string alias, int v, int potential=0)
Definition:
ElementContainer.cs:358
SourceElement.Row
Definition:
SourceElement.cs:11
SourceElement.Row.tag
string[] tag
Definition:
SourceElement.cs:66
SourceElement.Row.charge
int charge
Definition:
SourceElement.cs:74
SourceElement.Row.id
int id
Definition:
SourceElement.cs:12
SourceManager.elements
SourceElement elements
Definition:
SourceManager.cs:28
TraitBaseSpellbook
Definition:
TraitBaseSpellbook.cs:6
TraitScroll.source
virtual SourceElement.Row source
Definition:
TraitScroll.cs:5
TraitSpellbook
Definition:
TraitSpellbook.cs:2
TraitSpellbook.Difficulty
override int Difficulty
Definition:
TraitSpellbook.cs:3
TraitSpellbook.Create
static void Create(Card owner, int ele)
Definition:
TraitSpellbook.cs:5
Trait.owner
Card owner
Definition:
Trait.cs:27
Elin
TraitSpellbook.cs
Generated by
1.9.6