Elin Modding Docs Doc
Loading...
Searching...
No Matches
Tactics.cs
1using System;
2
3// Token: 0x02000240 RID: 576
4public class Tactics : EClass
5{
6 // Token: 0x17000420 RID: 1056
7 // (get) Token: 0x06001006 RID: 4102 RVA: 0x000728A2 File Offset: 0x00070AA2
8 public static ConfigAutoCombat at
9 {
10 get
11 {
12 return EClass.game.config.autoCombat;
13 }
14 }
15
16 // Token: 0x17000421 RID: 1057
17 // (get) Token: 0x06001007 RID: 4103 RVA: 0x000728B3 File Offset: 0x00070AB3
18 public int RandomFacotr
19 {
20 get
21 {
22 if (!this.owner.IsPC)
23 {
24 return 30;
25 }
26 return 10;
27 }
28 }
29
30 // Token: 0x17000422 RID: 1058
31 // (get) Token: 0x06001008 RID: 4104 RVA: 0x000728C7 File Offset: 0x00070AC7
32 public int DestDist
33 {
34 get
35 {
36 if (this.owner.IsPC)
37 {
38 return 1;
39 }
40 if (this.sourceChara.aiParam.Length < 1)
41 {
42 return this.source.dist;
43 }
44 return this.sourceChara.aiParam[0];
45 }
46 }
47
48 // Token: 0x17000423 RID: 1059
49 // (get) Token: 0x06001009 RID: 4105 RVA: 0x00072904 File Offset: 0x00070B04
50 public int ChanceMove
51 {
52 get
53 {
54 if (this.owner.IsPC)
55 {
56 return this.source.movePC;
57 }
58 if (this.sourceChara.aiParam.Length < 2)
59 {
60 return this.source.move;
61 }
62 return this.sourceChara.aiParam[1];
63 }
64 }
65
66 // Token: 0x17000424 RID: 1060
67 // (get) Token: 0x0600100A RID: 4106 RVA: 0x00072953 File Offset: 0x00070B53
68 public int ChanceSecondMove
69 {
70 get
71 {
72 if (this.owner.IsPC)
73 {
74 return 100;
75 }
76 if (this.sourceChara.aiParam.Length < 3)
77 {
78 return 100;
79 }
80 return this.sourceChara.aiParam[2];
81 }
82 }
83
84 // Token: 0x17000425 RID: 1061
85 // (get) Token: 0x0600100B RID: 4107 RVA: 0x00072985 File Offset: 0x00070B85
86 public int P_Party
87 {
88 get
89 {
90 return this.source.party;
91 }
92 }
93
94 // Token: 0x17000426 RID: 1062
95 // (get) Token: 0x0600100C RID: 4108 RVA: 0x00072992 File Offset: 0x00070B92
96 public int P_Melee
97 {
98 get
99 {
100 if (!this.owner.IsPC)
101 {
102 return 50;
103 }
104 return this.source.melee;
105 }
106 }
107
108 // Token: 0x17000427 RID: 1063
109 // (get) Token: 0x0600100D RID: 4109 RVA: 0x000729AF File Offset: 0x00070BAF
110 public int P_Range
111 {
112 get
113 {
114 if (!this.owner.IsPC)
115 {
116 return 50;
117 }
118 return this.source.range;
119 }
120 }
121
122 // Token: 0x17000428 RID: 1064
123 // (get) Token: 0x0600100E RID: 4110 RVA: 0x000729CC File Offset: 0x00070BCC
124 public int P_Heal
125 {
126 get
127 {
128 return this.source.heal;
129 }
130 }
131
132 // Token: 0x17000429 RID: 1065
133 // (get) Token: 0x0600100F RID: 4111 RVA: 0x000729D9 File Offset: 0x00070BD9
134 public int P_Spell
135 {
136 get
137 {
138 if (!this.owner.IsPC)
139 {
140 return 50;
141 }
142 return this.source.spell;
143 }
144 }
145
146 // Token: 0x1700042A RID: 1066
147 // (get) Token: 0x06001010 RID: 4112 RVA: 0x000729F6 File Offset: 0x00070BF6
148 public int P_Buff
149 {
150 get
151 {
152 return this.source.buff;
153 }
154 }
155
156 // Token: 0x1700042B RID: 1067
157 // (get) Token: 0x06001011 RID: 4113 RVA: 0x00072A03 File Offset: 0x00070C03
158 public int P_Debuff
159 {
160 get
161 {
162 return this.source.debuff;
163 }
164 }
165
166 // Token: 0x1700042C RID: 1068
167 // (get) Token: 0x06001012 RID: 4114 RVA: 0x00072A10 File Offset: 0x00070C10
168 public int P_Summon
169 {
170 get
171 {
172 return this.source.summon;
173 }
174 }
175
176 // Token: 0x1700042D RID: 1069
177 // (get) Token: 0x06001013 RID: 4115 RVA: 0x00072A1D File Offset: 0x00070C1D
178 public bool CastPartyBuff
179 {
180 get
181 {
182 if (!this.owner.IsPC)
183 {
184 return this.source.tag.Contains("pt");
185 }
186 return Tactics.at.bCastParty;
187 }
188 }
189
190 // Token: 0x1700042E RID: 1070
191 // (get) Token: 0x06001014 RID: 4116 RVA: 0x00072A4C File Offset: 0x00070C4C
192 public int AbilityChance
193 {
194 get
195 {
196 if (this.owner.IsPC)
197 {
198 return 100;
199 }
200 if (!this.owner.IsPCParty)
201 {
202 return 50;
203 }
204 return 80;
205 }
206 }
207
208 // Token: 0x1700042F RID: 1071
209 // (get) Token: 0x06001015 RID: 4117 RVA: 0x00072A70 File Offset: 0x00070C70
210 public int RangedChance
211 {
212 get
213 {
214 if (this.owner.IsPC)
215 {
216 return 100;
217 }
218 if (!this.owner.IsPCParty)
219 {
220 return 50;
221 }
222 return 100;
223 }
224 }
225
226 // Token: 0x06001016 RID: 4118 RVA: 0x00072A94 File Offset: 0x00070C94
227 public Tactics(Chara c)
228 {
229 this.owner = c;
230 if (c.c_genes != null)
231 {
232 foreach (DNA dna in c.c_genes.items)
233 {
234 if (dna.type == DNA.Type.Brain && !dna.id.IsEmpty())
235 {
236 SourceChara.Row row = EClass.sources.charas.map[dna.id];
237 string tactics = row.tactics;
238 SourceTactics.Row row2 = EClass.sources.tactics.map.TryGetValue(row.id, null);
239 string defaultStr;
240 if ((defaultStr = ((row2 != null) ? row2.id : null)) == null)
241 {
242 SourceTactics.Row row3 = EClass.sources.tactics.map.TryGetValue(row.job, null);
243 defaultStr = (((row3 != null) ? row3.id : null) ?? "predator");
244 }
245 string key = tactics.IsEmpty(defaultStr);
246 this.source = EClass.sources.tactics.map[key];
247 this.sourceChara = row;
248 break;
249 }
250 }
251 }
252 if (this.source == null)
253 {
254 string text;
255 if (!c.IsPC)
256 {
257 string tactics2 = c.source.tactics;
258 SourceTactics.Row row4 = EClass.sources.tactics.map.TryGetValue(c.id, null);
259 string defaultStr2;
260 if ((defaultStr2 = ((row4 != null) ? row4.id : null)) == null)
261 {
262 SourceTactics.Row row5 = EClass.sources.tactics.map.TryGetValue(c.job.id, null);
263 defaultStr2 = (((row5 != null) ? row5.id : null) ?? "predator");
264 }
265 text = tactics2.IsEmpty(defaultStr2);
266 }
267 else
268 {
269 text = Tactics.at.idType;
270 }
271 string key2 = text;
272 this.source = EClass.sources.tactics.map[key2];
273 this.sourceChara = c.source;
274 }
275 }
276
277 // Token: 0x04000D9C RID: 3484
278 public SourceTactics.Row source;
279
280 // Token: 0x04000D9D RID: 3485
281 public SourceChara.Row sourceChara;
282
283 // Token: 0x04000D9E RID: 3486
284 public Chara owner;
285}
Definition Chara.cs:12
Definition DNA.cs:9