Elin Decompiled Documentation
EA 23.102 Nightly
Loading...
Searching...
No Matches
CalcPlat.cs
Go to the documentation of this file.
1
using
UnityEngine;
2
3
public
class
CalcPlat
:
EClass
4
{
5
public
static
int
Learn
(
Chara
c,
Element
e)
6
{
7
int
num = Mathf.Max(1, e.
CostLearn
* (c.
HasElement
(1202) ? 80 : 100) / 100);
8
if
(e.
source
.tag.Contains(
"guild"
) &&
Guild
.
Current
.
relation
.
rank
< 2)
9
{
10
return
num * 2;
11
}
12
return
num;
13
}
14
15
public
static
int
Train
(
Chara
c,
Element
_e)
16
{
17
Element
element = c.
elements
.
GetElement
(_e.
id
);
18
if
(element.
vTempPotential
>= 1000)
19
{
20
return
0;
21
}
22
int
num = Mathf.Max(1, element.
CostTrain
* (c.
HasElement
(1202) ? 80 : 100) / 100);
23
if
(element.
source
.tag.Contains(
"guild"
) &&
Guild
.
Current
.
relation
.
rank
< 2)
24
{
25
return
num * 2;
26
}
27
return
num;
28
}
29
}
CalcPlat
Definition:
CalcPlat.cs:4
CalcPlat.Learn
static int Learn(Chara c, Element e)
Definition:
CalcPlat.cs:5
CalcPlat.Train
static int Train(Chara c, Element _e)
Definition:
CalcPlat.cs:15
Card.elements
ElementContainerCard elements
Definition:
Card.cs:37
Card.HasElement
bool HasElement(int ele, int req=1)
Definition:
Card.cs:5214
Chara
Definition:
Chara.cs:10
EClass
Definition:
EClass.cs:5
ElementContainer.GetElement
Element GetElement(string alias)
Definition:
ElementContainer.cs:479
Element
Definition:
ELEMENT.cs:79
Element.id
int id
Definition:
ELEMENT.cs:240
Element.source
SourceElement.Row source
Definition:
ELEMENT.cs:263
Element.CostTrain
virtual int CostTrain
Definition:
ELEMENT.cs:302
Element.vTempPotential
int vTempPotential
Definition:
ELEMENT.cs:248
Element.CostLearn
virtual int CostLearn
Definition:
ELEMENT.cs:304
FactionRelation.rank
int rank
Definition:
FactionRelation.cs:20
Faction.relation
FactionRelation relation
Definition:
FACTION.cs:124
Guild
Definition:
Guild.cs:2
Guild.Current
static Guild Current
Definition:
Guild.cs:4
Elin
CalcPlat.cs
Generated by
1.9.6