Elin Decompiled Documentation
EA 23.253 Nightly
Loading...
Searching...
No Matches
Tactics.cs
Go to the documentation of this file.
1
public
class
Tactics
:
EClass
2
{
3
public
SourceTactics.Row
source
;
4
5
public
SourceChara.Row
sourceChara
;
6
7
public
Chara
owner
;
8
9
public
static
ConfigAutoCombat
at
=>
EClass
.
game
.
config
.
autoCombat
;
10
11
public
int
RandomFacotr
12
{
13
get
14
{
15
if
(!
owner
.
IsPC
)
16
{
17
return
30;
18
}
19
return
10;
20
}
21
}
22
23
public
int
DestDist
24
{
25
get
26
{
27
if
(!
owner
.
IsPC
)
28
{
29
if
(
sourceChara
.aiParam.Length < 1)
30
{
31
return
source
.dist;
32
}
33
return
sourceChara
.aiParam[0];
34
}
35
return
1;
36
}
37
}
38
39
public
int
ChanceMove
40
{
41
get
42
{
43
if
(!
owner
.
IsPC
)
44
{
45
if
(
sourceChara
.aiParam.Length < 2)
46
{
47
return
source
.move;
48
}
49
return
sourceChara
.aiParam[1];
50
}
51
return
source
.movePC;
52
}
53
}
54
55
public
int
ChanceSecondMove
56
{
57
get
58
{
59
if
(!
owner
.
IsPC
)
60
{
61
if
(
sourceChara
.aiParam.Length < 3)
62
{
63
return
100;
64
}
65
return
sourceChara
.aiParam[2];
66
}
67
return
100;
68
}
69
}
70
71
public
int
P_Party
=>
source
.party;
72
73
public
int
P_Melee
=>
source
.melee;
74
75
public
int
P_Range
=>
source
.range;
76
77
public
int
P_Heal
=>
source
.heal;
78
79
public
int
P_Spell
=>
source
.spell;
80
81
public
int
P_Buff
=>
source
.buff;
82
83
public
int
P_Debuff
=>
source
.debuff;
84
85
public
int
P_Summon
=>
source
.summon;
86
87
public
bool
CastPartyBuff
88
{
89
get
90
{
91
if
(!
owner
.
IsPC
)
92
{
93
return
source
.tag.Contains(
"pt"
);
94
}
95
return
at
.
bCastParty
;
96
}
97
}
98
99
public
int
AbilityChance
100
{
101
get
102
{
103
if
(!
owner
.
IsPC
)
104
{
105
if
(!
owner
.
IsPCParty
)
106
{
107
return
50;
108
}
109
return
80;
110
}
111
return
100;
112
}
113
}
114
115
public
int
RangedChance
116
{
117
get
118
{
119
if
(!
owner
.
IsPC
)
120
{
121
if
(!
owner
.
IsPCParty
)
122
{
123
return
50;
124
}
125
return
100;
126
}
127
return
100;
128
}
129
}
130
131
public
Tactics
(
Chara
c)
132
{
133
owner
= c;
134
if
(c.
c_genes
!=
null
)
135
{
136
foreach
(
DNA
item
in
c.
c_genes
.
items
)
137
{
138
if
(
item
.type ==
DNA
.
Type
.Brain && !
item
.id.IsEmpty())
139
{
140
SourceChara.Row
row =
EClass
.
sources
.
charas
.map[
item
.id];
141
string
key = row.
tactics
.IsEmpty(
EClass
.
sources
.
tactics
.map.TryGetValue(row.
id
)?.id ??
EClass
.
sources
.
tactics
.map.TryGetValue(row.
job
)?.id ??
"predator"
);
142
source
=
EClass
.
sources
.
tactics
.map[key];
143
sourceChara
= row;
144
break
;
145
}
146
}
147
}
148
if
(
source
==
null
)
149
{
150
string
key2 = (c.IsPC ? at.idType : c.
source
.tactics.IsEmpty(
EClass
.
sources
.
tactics
.map.TryGetValue(c.
id
)?.id ??
EClass
.
sources
.
tactics
.map.TryGetValue(c.
job
.id)?.id ??
"predator"
));
151
source
=
EClass
.
sources
.
tactics
.map[key2];
152
sourceChara
= c.
source
;
153
}
154
}
155
}
ContainerFlag.item
@ item
CardRow.id
string id
Definition:
CardRow.cs:7
Card.id
string id
Definition:
Card.cs:35
Card.c_genes
CharaGenes c_genes
Definition:
Card.cs:1845
CharaGenes.items
List< DNA > items
Definition:
CharaGenes.cs:7
Chara
Definition:
Chara.cs:10
Chara.IsPC
override bool IsPC
Definition:
Chara.cs:612
Chara.job
SourceJob.Row job
Definition:
Chara.cs:466
Chara.IsPCParty
override bool IsPCParty
Definition:
Chara.cs:615
Chara.source
SourceChara.Row source
Definition:
Chara.cs:158
ConfigAutoCombat
Definition:
ConfigAutoCombat.cs:4
ConfigAutoCombat.bCastParty
bool bCastParty
Definition:
ConfigAutoCombat.cs:36
DNA
Definition:
DNA.cs:8
DNA.Type
Type
Definition:
DNA.cs:10
EClass
Definition:
EClass.cs:6
EClass.game
static Game game
Definition:
EClass.cs:9
EClass.sources
static SourceManager sources
Definition:
EClass.cs:43
Game.Config.autoCombat
ConfigAutoCombat autoCombat
Definition:
Game.cs:93
Game.config
Config config
Definition:
Game.cs:218
SourceChara.Row
Definition:
SourceChara.cs:8
SourceChara.Row.tactics
string tactics
Definition:
SourceChara.cs:25
SourceChara.Row.job
string job
Definition:
SourceChara.cs:23
SourceManager.charas
SourceChara charas
Definition:
SourceManager.cs:18
SourceManager.tactics
SourceTactics tactics
Definition:
SourceManager.cs:22
SourceTactics.Row
Definition:
SourceTactics.cs:7
Tactics
Definition:
Tactics.cs:2
Tactics.ChanceSecondMove
int ChanceSecondMove
Definition:
Tactics.cs:56
Tactics.RandomFacotr
int RandomFacotr
Definition:
Tactics.cs:12
Tactics.P_Party
int P_Party
Definition:
Tactics.cs:71
Tactics.P_Spell
int P_Spell
Definition:
Tactics.cs:79
Tactics.CastPartyBuff
bool CastPartyBuff
Definition:
Tactics.cs:88
Tactics.at
static ConfigAutoCombat at
Definition:
Tactics.cs:9
Tactics.P_Debuff
int P_Debuff
Definition:
Tactics.cs:83
Tactics.owner
Chara owner
Definition:
Tactics.cs:7
Tactics.P_Buff
int P_Buff
Definition:
Tactics.cs:81
Tactics.ChanceMove
int ChanceMove
Definition:
Tactics.cs:40
Tactics.P_Melee
int P_Melee
Definition:
Tactics.cs:73
Tactics.DestDist
int DestDist
Definition:
Tactics.cs:24
Tactics.RangedChance
int RangedChance
Definition:
Tactics.cs:116
Tactics.P_Heal
int P_Heal
Definition:
Tactics.cs:77
Tactics.source
SourceTactics.Row source
Definition:
Tactics.cs:3
Tactics.AbilityChance
int AbilityChance
Definition:
Tactics.cs:100
Tactics.P_Range
int P_Range
Definition:
Tactics.cs:75
Tactics.sourceChara
SourceChara.Row sourceChara
Definition:
Tactics.cs:5
Tactics.Tactics
Tactics(Chara c)
Definition:
Tactics.cs:131
Tactics.P_Summon
int P_Summon
Definition:
Tactics.cs:85
Elin
Tactics.cs
Generated by
1.9.6