Elin Decompiled Documentation EA 23.326 Nightly
Loading...
Searching...
No Matches
SKILL.cs
Go to the documentation of this file.
1public class SKILL
2{
3 public const int shield = 123;
4
5 public const int fireproof = 50;
6
7 public const int weaponScythe = 110;
8
9 public const int weaponBlunt = 111;
10
11 public const int armorLight = 120;
12
13 public const int fishing = 245;
14
15 public const int twohand = 130;
16
17 public const int eyeofmind = 134;
18
19 public const int tactics = 132;
20
21 public const int climbing = 242;
22
23 public const int music = 241;
24
25 public const int travel = 240;
26
27 public const int taming = 237;
28
29 public const int milking = 235;
30
31 public const int digging = 230;
32
33 public const int riding = 226;
34
35 public const int lumberjack = 225;
36
37 public const int mining = 220;
38
39 public const int spotting = 210;
40
41 public const int weightlifting = 207;
42
43 public const int swimming = 200;
44
45 public const int stealth = 152;
46
47 public const int evasionPlus = 151;
48
49 public const int evasion = 150;
50
51 public const int strategy = 135;
52
53 public const int marksman = 133;
54
55 public const int twowield = 131;
56
57 public const int parasite = 227;
58
59 public const int antiMagic = 93;
60
61 public const int throwing = 108;
62
63 public const int DEX = 72;
64
65 public const int END = 71;
66
67 public const int STR = 70;
68
69 public const int FPV = 68;
70
71 public const int DMG = 67;
72
73 public const int HIT = 66;
74
75 public const int PV = 65;
76
77 public const int DV = 64;
78
79 public const int vigor = 62;
80
81 public const int mana = 61;
82
83 public const int life = 60;
84
85 public const int evasionPerfect = 57;
86
87 public const int EDR = 56;
88
89 public const int PDR = 55;
90
91 public const int acidproof = 51;
92
93 public const int PER = 73;
94
95 public const int LER = 74;
96
97 public const int WIL = 75;
98
99 public const int MAG = 76;
100
101 public const int weaponDagger = 107;
102
103 public const int weaponPolearm = 106;
104
105 public const int weaponGun = 105;
106
107 public const int weaponBow = 104;
108
109 public const int weaponStaff = 103;
110
111 public const int weaponAxe = 102;
112
113 public const int weaponSword = 101;
114
115 public const int weaponCrossbow = 109;
116
117 public const int martial = 100;
118
119 public const int penetration = 92;
120
121 public const int vopal = 91;
122
123 public const int critical = 90;
124
125 public const int INT = 80;
126
127 public const int SPD = 79;
128
129 public const int LUC = 78;
130
131 public const int CHA = 77;
132
133 public const int dmgDealt = 94;
134
135 public const int gathering = 250;
136
137 public const int armorHeavy = 122;
138
139 public const int blacksmith = 256;
140
141 public const int eleSound = 917;
142
143 public const int eleNerve = 918;
144
145 public const int eleHoly = 919;
146
147 public const int eleChaos = 920;
148
149 public const int eleMagic = 921;
150
151 public const int resDamage = 971;
152
153 public const int eleAcid = 923;
154
155 public const int eleCut = 924;
156
157 public const int eleImpact = 925;
158
159 public const int eleVoid = 926;
160
161 public const int eleCat = 927;
162
163 public const int resFire = 950;
164
165 public const int resCold = 951;
166
167 public const int resLightning = 952;
168
169 public const int eleNether = 916;
170
171 public const int resDarkness = 953;
172
173 public const int resPoison = 955;
174
175 public const int resNether = 956;
176
177 public const int resSound = 957;
178
179 public const int resNerve = 958;
180
181 public const int resChaos = 959;
182
183 public const int resHoly = 960;
184
185 public const int resMagic = 961;
186
187 public const int resEther = 962;
188
189 public const int resAcid = 963;
190
191 public const int resCut = 964;
192
193 public const int resImpact = 965;
194
195 public const int carpentry = 255;
196
197 public const int resCat = 973;
198
199 public const int resCurse = 972;
200
201 public const int resMind = 954;
202
203 public const int elePoison = 915;
204
205 public const int eleEther = 922;
206
207 public const int eleDarkness = 913;
208
209 public const int alchemy = 257;
210
211 public const int sculpture = 258;
212
213 public const int jewelry = 259;
214
215 public const int weaving = 260;
216
217 public const int handicraft = 261;
218
219 public const int lockpicking = 280;
220
221 public const int stealing = 281;
222
223 public const int eleMind = 914;
224
225 public const int farming = 286;
226
227 public const int cooking = 287;
228
229 public const int building = 288;
230
231 public const int appraising = 289;
232
233 public const int anatomy = 290;
234
235 public const int negotiation = 291;
236
237 public const int investing = 292;
238
239 public const int reading = 285;
240
241 public const int regeneration = 300;
242
243 public const int eleLightning = 912;
244
245 public const int eleCold = 911;
246
247 public const int eleFire = 910;
248
249 public const int disarmTrap = 293;
250
251 public const int env = 313;
252
253 public const int fun = 312;
254
255 public const int bladder = 311;
256
257 public const int resDecay = 970;
258
259 public const int memorization = 307;
260
261 public const int faith = 306;
262
263 public const int magicDevice = 305;
264
265 public const int meditation = 301;
266
267 public const int controlmana = 302;
268
269 public const int manaCapacity = 303;
270
271 public const int casting = 304;
272
273 public const int hygine = 310;
274
275 public static readonly int[] IDS = new int[136]
276 {
277 123, 50, 110, 111, 120, 245, 130, 134, 132, 242,
278 241, 240, 237, 235, 230, 226, 225, 220, 210, 207,
279 200, 152, 151, 150, 135, 133, 131, 227, 93, 108,
280 72, 71, 70, 68, 67, 66, 65, 64, 62, 61,
281 60, 57, 56, 55, 51, 73, 74, 75, 76, 107,
282 106, 105, 104, 103, 102, 101, 109, 100, 92, 91,
283 90, 80, 79, 78, 77, 94, 250, 122, 256, 917,
284 918, 919, 920, 921, 971, 923, 924, 925, 926, 927,
285 950, 951, 952, 916, 953, 955, 956, 957, 958, 959,
286 960, 961, 962, 963, 964, 965, 255, 973, 972, 954,
287 915, 922, 913, 257, 258, 259, 260, 261, 280, 281,
288 914, 286, 287, 288, 289, 290, 291, 292, 285, 300,
289 912, 911, 910, 293, 313, 312, 311, 970, 307, 306,
290 305, 301, 302, 303, 304, 310
291 };
292}
293public class Skill : Element
294{
295 public override bool ShowEncNumber => false;
296
297 public override bool ShowRelativeAttribute => true;
298
299 public override bool CanLink(ElementContainer owner)
300 {
301 if (!base.IsGlobalElement)
302 {
303 if (base.source.IsWeaponEnc)
304 {
305 if (base.owner != null && base.owner.Card != null && !base.owner.Card.IsWeapon)
306 {
307 return base.owner.Card.sourceCard.elementMap.ContainsKey(base.source.id);
308 }
309 return false;
310 }
311 return true;
312 }
313 return false;
314 }
315
316 public override int GetSourcePotential(int v)
317 {
318 if (v > 1)
319 {
320 return v * 10;
321 }
322 return 0;
323 }
324
325 public override void OnChangeValue()
326 {
327 Chara chara = owner.Chara;
328 switch (id)
329 {
330 case 207:
331 chara?.SetDirtyWeight();
332 break;
333 case 306:
334 chara?.RefreshFaithElement();
335 break;
336 }
337 }
338}
void SetDirtyWeight()
Definition: Card.cs:2687
Definition: Chara.cs:10
void RefreshFaithElement()
Definition: Chara.cs:10726
virtual Chara Chara
ElementContainer owner
Definition: ELEMENT.cs:275
Definition: SKILL.cs:2
const int resImpact
Definition: SKILL.cs:193
const int shield
Definition: SKILL.cs:3
const int vopal
Definition: SKILL.cs:121
const int EDR
Definition: SKILL.cs:87
const int WIL
Definition: SKILL.cs:97
const int tactics
Definition: SKILL.cs:19
const int appraising
Definition: SKILL.cs:231
const int fishing
Definition: SKILL.cs:13
const int handicraft
Definition: SKILL.cs:217
const int faith
Definition: SKILL.cs:261
const int PDR
Definition: SKILL.cs:89
const int resLightning
Definition: SKILL.cs:167
const int weaponScythe
Definition: SKILL.cs:7
const int PV
Definition: SKILL.cs:75
const int evasionPerfect
Definition: SKILL.cs:85
const int casting
Definition: SKILL.cs:271
const int strategy
Definition: SKILL.cs:51
const int fireproof
Definition: SKILL.cs:5
static readonly int[] IDS
Definition: SKILL.cs:275
const int eleCut
Definition: SKILL.cs:155
const int critical
Definition: SKILL.cs:123
const int cooking
Definition: SKILL.cs:227
const int mana
Definition: SKILL.cs:81
const int throwing
Definition: SKILL.cs:61
const int resChaos
Definition: SKILL.cs:181
const int lockpicking
Definition: SKILL.cs:219
const int eleEther
Definition: SKILL.cs:205
const int eleDarkness
Definition: SKILL.cs:207
const int weaponStaff
Definition: SKILL.cs:109
const int END
Definition: SKILL.cs:65
const int INT
Definition: SKILL.cs:125
const int farming
Definition: SKILL.cs:225
const int carpentry
Definition: SKILL.cs:195
const int weaponCrossbow
Definition: SKILL.cs:115
const int mining
Definition: SKILL.cs:37
const int resDamage
Definition: SKILL.cs:151
const int resSound
Definition: SKILL.cs:177
const int eleImpact
Definition: SKILL.cs:157
const int resFire
Definition: SKILL.cs:163
const int eleCold
Definition: SKILL.cs:245
const int resDarkness
Definition: SKILL.cs:171
const int twowield
Definition: SKILL.cs:55
const int armorLight
Definition: SKILL.cs:11
const int LUC
Definition: SKILL.cs:129
const int eleMind
Definition: SKILL.cs:223
const int weightlifting
Definition: SKILL.cs:41
const int eyeofmind
Definition: SKILL.cs:17
const int lumberjack
Definition: SKILL.cs:35
const int DEX
Definition: SKILL.cs:63
const int weaponBlunt
Definition: SKILL.cs:9
const int gathering
Definition: SKILL.cs:135
const int spotting
Definition: SKILL.cs:39
const int manaCapacity
Definition: SKILL.cs:269
const int marksman
Definition: SKILL.cs:53
const int weaponSword
Definition: SKILL.cs:113
const int resHoly
Definition: SKILL.cs:183
const int twohand
Definition: SKILL.cs:15
const int anatomy
Definition: SKILL.cs:233
const int evasion
Definition: SKILL.cs:49
const int LER
Definition: SKILL.cs:95
const int HIT
Definition: SKILL.cs:73
const int fun
Definition: SKILL.cs:253
const int weaponAxe
Definition: SKILL.cs:111
const int eleVoid
Definition: SKILL.cs:159
const int blacksmith
Definition: SKILL.cs:139
const int MAG
Definition: SKILL.cs:99
const int CHA
Definition: SKILL.cs:131
const int antiMagic
Definition: SKILL.cs:59
const int hygine
Definition: SKILL.cs:273
const int investing
Definition: SKILL.cs:237
const int music
Definition: SKILL.cs:23
const int PER
Definition: SKILL.cs:93
const int armorHeavy
Definition: SKILL.cs:137
const int dmgDealt
Definition: SKILL.cs:133
const int resCold
Definition: SKILL.cs:165
const int digging
Definition: SKILL.cs:31
const int eleNether
Definition: SKILL.cs:169
const int weaponGun
Definition: SKILL.cs:105
const int eleSound
Definition: SKILL.cs:141
const int eleLightning
Definition: SKILL.cs:243
const int bladder
Definition: SKILL.cs:255
const int resAcid
Definition: SKILL.cs:189
const int resCat
Definition: SKILL.cs:197
const int eleChaos
Definition: SKILL.cs:147
const int weaponPolearm
Definition: SKILL.cs:103
const int alchemy
Definition: SKILL.cs:209
const int jewelry
Definition: SKILL.cs:213
const int swimming
Definition: SKILL.cs:43
const int vigor
Definition: SKILL.cs:79
const int resNether
Definition: SKILL.cs:175
const int resPoison
Definition: SKILL.cs:173
const int building
Definition: SKILL.cs:229
const int resDecay
Definition: SKILL.cs:257
const int resMind
Definition: SKILL.cs:201
const int eleHoly
Definition: SKILL.cs:145
const int FPV
Definition: SKILL.cs:69
const int evasionPlus
Definition: SKILL.cs:47
const int env
Definition: SKILL.cs:251
const int weaving
Definition: SKILL.cs:215
const int sculpture
Definition: SKILL.cs:211
const int reading
Definition: SKILL.cs:239
const int martial
Definition: SKILL.cs:117
const int stealing
Definition: SKILL.cs:221
const int eleAcid
Definition: SKILL.cs:153
const int travel
Definition: SKILL.cs:25
const int SPD
Definition: SKILL.cs:127
const int regeneration
Definition: SKILL.cs:241
const int negotiation
Definition: SKILL.cs:235
const int eleMagic
Definition: SKILL.cs:149
const int resCut
Definition: SKILL.cs:191
const int resCurse
Definition: SKILL.cs:199
const int elePoison
Definition: SKILL.cs:203
const int parasite
Definition: SKILL.cs:57
const int penetration
Definition: SKILL.cs:119
const int controlmana
Definition: SKILL.cs:267
const int DMG
Definition: SKILL.cs:71
const int resNerve
Definition: SKILL.cs:179
const int STR
Definition: SKILL.cs:67
const int resMagic
Definition: SKILL.cs:185
const int DV
Definition: SKILL.cs:77
const int eleFire
Definition: SKILL.cs:247
const int acidproof
Definition: SKILL.cs:91
const int meditation
Definition: SKILL.cs:265
const int riding
Definition: SKILL.cs:33
const int weaponBow
Definition: SKILL.cs:107
const int climbing
Definition: SKILL.cs:21
const int eleCat
Definition: SKILL.cs:161
const int memorization
Definition: SKILL.cs:259
const int stealth
Definition: SKILL.cs:45
const int weaponDagger
Definition: SKILL.cs:101
const int magicDevice
Definition: SKILL.cs:263
const int disarmTrap
Definition: SKILL.cs:249
const int milking
Definition: SKILL.cs:29
const int eleNerve
Definition: SKILL.cs:143
const int resEther
Definition: SKILL.cs:187
const int life
Definition: SKILL.cs:83
const int taming
Definition: SKILL.cs:27
Definition: SKILL.cs:294
override bool ShowRelativeAttribute
Definition: SKILL.cs:297
override bool CanLink(ElementContainer owner)
Definition: SKILL.cs:299
override bool ShowEncNumber
Definition: SKILL.cs:295
override int GetSourcePotential(int v)
Definition: SKILL.cs:316
override void OnChangeValue()
Definition: SKILL.cs:325