Elin Decompiled Documentation EA 23.335 Nightly
Loading...
Searching...
No Matches
ABILITY.cs
Go to the documentation of this file.
1using UnityEngine;
2
3public class ABILITY
4{
5 public const int AI_PlayMusic = 6001;
6
7 public const int AI_Meditate = 6003;
8
9 public const int ActMoneyDump = 5058;
10
11 public const int ActMoneyThrow = 5057;
12
13 public const int ActMoneySlap = 5056;
14
15 public const int ActRestrain = 5055;
16
17 public const int AI_Bladder = 5054;
18
19 public const int TaskHarvest = 5053;
20
21 public const int ActBash = 5052;
22
23 public const int ActZap = 5051;
24
25 public const int AI_Sleep = 5050;
26
27 public const int AI_OpenLock = 5049;
28
29 public const int ActItem = 5048;
30
31 public const int ActPick = 5047;
32
33 public const int ActInstall = 5046;
34
35 public const int AI_Drink = 5045;
36
37 public const int ActChat = 5044;
38
39 public const int AI_TendAnimal = 5043;
40
41 public const int AI_Steal = 6011;
42
43 public const int ActQuickCraft = 6012;
44
45 public const int AI_PassTime = 6013;
46
47 public const int AI_SelfHarm = 6015;
48
49 public const int ActWeaken = 6610;
50
51 public const int ActBloodsuck = 6607;
52
53 public const int ActBurnMana = 6606;
54
55 public const int ActCrySad = 6605;
56
57 public const int ActCryRage = 6604;
58
59 public const int ActNTR = 6603;
60
61 public const int ActDraw = 6602;
62
63 public const int ActEntangle = 6601;
64
65 public const int ActKick = 5042;
66
67 public const int ActCurse = 6600;
68
69 public const int ActRush = 6450;
70
71 public const int ActDuplicate = 6420;
72
73 public const int ActSuicide = 6410;
74
75 public const int ActEscape = 6400;
76
77 public const int ActPray = 6050;
78
79 public const int ActDreamBug = 6020;
80
81 public const int ActParasite = 6019;
82
83 public const int ActRide = 6018;
84
85 public const int ActCrabBreathe = 6500;
86
87 public const int ActFear = 6611;
88
89 public const int AI_Read = 5041;
90
91 public const int AI_Fish = 5039;
92
93 public const int TaskPick = 5018;
94
95 public const int TaskReadBoard = 5019;
96
97 public const int TaskFarm = 5020;
98
99 public const int TaskTrain = 5021;
100
101 public const int TaskSleepOnBed = 5022;
102
103 public const int TaskGoOut = 5023;
104
105 public const int AI_Eat = 5024;
106
107 public const int AI_Grab = 5025;
108
109 public const int AI_Haul = 5026;
110
111 public const int GoalSleep = 5027;
112
113 public const int ActReleaseHeld = 5028;
114
115 public const int AI_Offer = 5029;
116
117 public const int AI_ReleaseHeld = 5030;
118
119 public const int AI_Deconstruct = 5031;
120
121 public const int AI_Equip = 5032;
122
123 public const int ActCancelTask = 5033;
124
125 public const int GoalIdle = 5034;
126
127 public const int TaskTalk = 5017;
128
129 public const int TaskTame = 5016;
130
131 public const int TaskAttack = 5015;
132
133 public const int TaskPlow = 5014;
134
135 public const int ActThrow = 5038;
136
137 public const int ActNoItem = 5037;
138
139 public const int TaskMoveInstalled = 5036;
140
141 public const int TaskBuild = 5035;
142
143 public const int ActWait = 5000;
144
145 public const int ActMelee = 5001;
146
147 public const int Melee = 5002;
148
149 public const int Ranged = 5003;
150
151 public const int ActRanged = 5040;
152
153 public const int Sleep = 5004;
154
155 public const int Shoot = 5006;
156
157 public const int Use = 5007;
158
159 public const int General = 5008;
160
161 public const int TaskMine = 5009;
162
163 public const int TaskDig = 5010;
164
165 public const int TaskCut = 5011;
166
167 public const int AI_Goto = 5012;
168
169 public const int ActAttack = 5013;
170
171 public const int Wait = 5005;
172
173 public const int ActTouchSleep = 6612;
174
175 public const int ActSlime = 6608;
176
177 public const int ActGazeDim = 6620;
178
179 public const int SongValor = 6752;
180
181 public const int SongEnd = 6753;
182
183 public const int SongPebble = 6754;
184
185 public const int ActManaAbsorb = 6900;
186
187 public const int ActJureHeal = 6901;
188
189 public const int ActLulwyTrick = 6902;
190
191 public const int ActKizuamiTrick = 6903;
192
193 public const int ActHeadpat = 6904;
194
195 public const int breathe_ = 7000;
196
197 public const int SpTransmuteBat = 8793;
198
199 public const int SpTransmuteMimic = 8794;
200
201 public const int ActTouchDrown = 6613;
202
203 public const int SpTransmuteHuman = 8796;
204
205 public const int breathe_Fire = 50200;
206
207 public const int SongTulip = 6751;
208
209 public const int breathe_Cold = 50201;
210
211 public const int breathe_Darkness = 50203;
212
213 public const int breathe_Mind = 50204;
214
215 public const int breathe_Poison = 50205;
216
217 public const int breathe_Nether = 50206;
218
219 public const int breathe_Sound = 50207;
220
221 public const int breathe_Nerve = 50208;
222
223 public const int breathe_Holy = 50209;
224
225 public const int breathe_Chaos = 50210;
226
227 public const int breathe_Magic = 50211;
228
229 public const int breathe_Ether = 50212;
230
231 public const int breathe_Acid = 50213;
232
233 public const int breathe_Cut = 50214;
234
235 public const int breathe_Impact = 50215;
236
237 public const int breathe_Void = 50216;
238
239 public const int breathe_Lightning = 50202;
240
241 public const int SongSleep = 6750;
242
243 public const int SpTransmuteShadow = 8795;
244
245 public const int StMama = 6701;
246
247 public const int ActGazeInsane = 6621;
248
249 public const int StManaCost = 6720;
250
251 public const int ActGazeMana = 6623;
252
253 public const int ActDrainBlood = 6626;
254
255 public const int ActCatHuffing = 6627;
256
257 public const int ActKiss = 6628;
258
259 public const int ActDeepKiss = 6629;
260
261 public const int ActInsult = 6630;
262
263 public const int ActScream = 6631;
264
265 public const int ActFuse = 6632;
266
267 public const int ActSteal = 6640;
268
269 public const int ActStealFood = 6641;
270
271 public const int ActStealMoney = 6642;
272
273 public const int ActNeckHunt = 6650;
274
275 public const int ActGazeMutation = 6622;
276
277 public const int ActThrowPotion = 6661;
278
279 public const int ActSwarm = 6662;
280
281 public const int ActMultiHit = 6663;
282
283 public const int ActBladeStorm = 6664;
284
285 public const int ActBladeStorm2 = 6665;
286
287 public const int ActWhirlwind = 6666;
288
289 public const int ActMissileBarrage = 6667;
290
291 public const int ActMissileBarrage2 = 6668;
292
293 public const int ActDropMine = 6660;
294
295 public const int ActSummonSpecial = 6800;
296
297 public const int ActWombDark = 6801;
298
299 public const int ActDeathSentense = 6802;
300
301 public const int StTaunt = 6700;
302
303 public static readonly int[] IDS = new int[149]
304 {
305 6001, 6003, 5058, 5057, 5056, 5055, 5054, 5053, 5052, 5051,
306 5050, 5049, 5048, 5047, 5046, 5045, 5044, 5043, 6011, 6012,
307 6013, 6015, 6610, 6607, 6606, 6605, 6604, 6603, 6602, 6601,
308 5042, 6600, 6450, 6420, 6410, 6400, 6050, 6020, 6019, 6018,
309 6500, 6611, 5041, 5039, 5018, 5019, 5020, 5021, 5022, 5023,
310 5024, 5025, 5026, 5027, 5028, 5029, 5030, 5031, 5032, 5033,
311 5034, 5017, 5016, 5015, 5014, 5038, 5037, 5036, 5035, 5000,
312 5001, 5002, 5003, 5040, 5004, 5006, 5007, 5008, 5009, 5010,
313 5011, 5012, 5013, 5005, 6612, 6608, 6620, 6752, 6753, 6754,
314 6900, 6901, 6902, 6903, 6904, 7000, 8793, 8794, 6613, 8796,
315 50200, 6751, 50201, 50203, 50204, 50205, 50206, 50207, 50208, 50209,
316 50210, 50211, 50212, 50213, 50214, 50215, 50216, 50202, 6750, 8795,
317 6701, 6621, 6720, 6623, 6626, 6627, 6628, 6629, 6630, 6631,
318 6632, 6640, 6641, 6642, 6650, 6622, 6661, 6662, 6663, 6664,
319 6665, 6666, 6667, 6668, 6660, 6800, 6801, 6802, 6700
320 };
321}
322public class Ability : Act
323{
324 public override bool ShowBonuses => false;
325
326 public override bool CanPressRepeat => base.source.tag.Contains("repeat");
327
328 public override bool LocalAct => id != 8793;
329
330 public override bool CanLink(ElementContainer owner)
331 {
332 if (owner.Card == null)
333 {
334 return !base.IsGlobalElement;
335 }
336 return false;
337 }
338
339 public override long GetSourceValue(long v, int lv, SourceValueType type)
340 {
341 if (type != 0)
342 {
343 return base.GetSourceValue(v, lv, type);
344 }
345 return 10 * (100 + ((long)lv - 1L) * base.source.lvFactor / 10) / 100;
346 }
347
348 public override int GetPower(Card c)
349 {
350 long a = base.Value * 8 + 50;
351 if (!c.IsPC)
352 {
353 a = MathEx.Max(a, (long)c.LV * 6L + 30);
354 if (c.IsPCFactionOrMinion && !base.source.aliasParent.IsEmpty())
355 {
356 a = MathEx.Max(a, (long)c.Evalue(base.source.aliasParent) * 4L + 30);
357 }
358 }
359 a = EClass.curve(a, 400, 100);
360 if (this is Song)
361 {
362 a = a * Mathf.Max(100 + c.Evalue(411) / 3, 1) / 100 * Mathf.Clamp(50 + EClass.curve(c.Evalue(241), 50, 10, 50) * 2, 1, 300) / 100 * (100 + c.Evalue(1294) * 20) / 100;
363 }
364 else if (this is Spell)
365 {
366 a = a * Mathf.Max(100 + c.Evalue(411) - c.Evalue(93), 1) / 100;
367 }
368 else if (this is ActBreathe)
369 {
370 a = a * Mathf.Max(100 + c.Evalue(411), 1) / 100;
371 }
372 if (a > 214748364)
373 {
374 a = 214748364L;
375 }
376 return (int)a;
377 }
378
379 public override void OnChangeValue()
380 {
382 if (card != null && card._IsPC)
383 {
385 }
386 }
387}
SourceValueType
const int Ranged
Definition: ABILITY.cs:149
const int breathe_Holy
Definition: ABILITY.cs:223
const int ActGazeMutation
Definition: ABILITY.cs:275
const int TaskPick
Definition: ABILITY.cs:93
const int ActFear
Definition: ABILITY.cs:87
const int ActBladeStorm
Definition: ABILITY.cs:283
const int ActDeathSentense
Definition: ABILITY.cs:299
static readonly int[] IDS
Definition: ABILITY.cs:303
const int ActDuplicate
Definition: ABILITY.cs:71
const int ActFuse
Definition: ABILITY.cs:265
const int ActKizuamiTrick
Definition: ABILITY.cs:191
const int TaskTalk
Definition: ABILITY.cs:127
const int TaskSleepOnBed
Definition: ABILITY.cs:101
const int SongEnd
Definition: ABILITY.cs:181
const int ActDropMine
Definition: ABILITY.cs:293
const int StMama
Definition: ABILITY.cs:245
const int TaskGoOut
Definition: ABILITY.cs:103
const int breathe_Impact
Definition: ABILITY.cs:235
const int SpTransmuteMimic
Definition: ABILITY.cs:199
const int breathe_Magic
Definition: ABILITY.cs:227
const int breathe_Acid
Definition: ABILITY.cs:231
const int General
Definition: ABILITY.cs:159
const int ActAttack
Definition: ABILITY.cs:169
const int Sleep
Definition: ABILITY.cs:153
const int TaskFarm
Definition: ABILITY.cs:97
const int ActTouchDrown
Definition: ABILITY.cs:201
const int breathe_Poison
Definition: ABILITY.cs:215
const int SongSleep
Definition: ABILITY.cs:241
const int SongValor
Definition: ABILITY.cs:179
const int ActCatHuffing
Definition: ABILITY.cs:255
const int TaskAttack
Definition: ABILITY.cs:131
const int breathe_Darkness
Definition: ABILITY.cs:211
const int breathe_Nether
Definition: ABILITY.cs:217
const int breathe_Void
Definition: ABILITY.cs:237
const int ActWombDark
Definition: ABILITY.cs:297
const int Shoot
Definition: ABILITY.cs:155
const int ActBladeStorm2
Definition: ABILITY.cs:285
const int ActGazeDim
Definition: ABILITY.cs:177
const int breathe_Sound
Definition: ABILITY.cs:219
const int breathe_Fire
Definition: ABILITY.cs:205
const int ActCrabBreathe
Definition: ABILITY.cs:85
const int SongPebble
Definition: ABILITY.cs:183
const int ActEntangle
Definition: ABILITY.cs:63
const int ActEscape
Definition: ABILITY.cs:75
const int SpTransmuteBat
Definition: ABILITY.cs:197
const int ActScream
Definition: ABILITY.cs:263
const int StTaunt
Definition: ABILITY.cs:301
const int ActNeckHunt
Definition: ABILITY.cs:273
const int ActJureHeal
Definition: ABILITY.cs:187
const int breathe_Mind
Definition: ABILITY.cs:213
const int breathe_
Definition: ABILITY.cs:195
const int StManaCost
Definition: ABILITY.cs:249
const int TaskTame
Definition: ABILITY.cs:129
const int breathe_Cut
Definition: ABILITY.cs:233
const int ActLulwyTrick
Definition: ABILITY.cs:189
const int ActInstall
Definition: ABILITY.cs:33
const int ActInsult
Definition: ABILITY.cs:261
const int ActHeadpat
Definition: ABILITY.cs:193
const int breathe_Lightning
Definition: ABILITY.cs:239
const int ActStealFood
Definition: ABILITY.cs:269
const int ActCurse
Definition: ABILITY.cs:67
const int ActManaAbsorb
Definition: ABILITY.cs:185
const int SpTransmuteHuman
Definition: ABILITY.cs:203
const int Use
Definition: ABILITY.cs:157
const int ActStealMoney
Definition: ABILITY.cs:271
const int breathe_Ether
Definition: ABILITY.cs:229
const int ActCancelTask
Definition: ABILITY.cs:123
const int ActSummonSpecial
Definition: ABILITY.cs:295
const int ActDraw
Definition: ABILITY.cs:61
const int ActGazeInsane
Definition: ABILITY.cs:247
const int Melee
Definition: ABILITY.cs:147
const int breathe_Cold
Definition: ABILITY.cs:209
const int ActThrowPotion
Definition: ABILITY.cs:277
const int ActSteal
Definition: ABILITY.cs:267
const int breathe_Nerve
Definition: ABILITY.cs:221
const int ActReleaseHeld
Definition: ABILITY.cs:113
const int ActGazeMana
Definition: ABILITY.cs:251
const int ActTouchSleep
Definition: ABILITY.cs:173
const int TaskReadBoard
Definition: ABILITY.cs:95
const int ActBurnMana
Definition: ABILITY.cs:53
const int ActDrainBlood
Definition: ABILITY.cs:253
const int SongTulip
Definition: ABILITY.cs:207
const int ActSuicide
Definition: ABILITY.cs:73
const int ActMultiHit
Definition: ABILITY.cs:281
const int TaskTrain
Definition: ABILITY.cs:99
const int ActWeaken
Definition: ABILITY.cs:49
const int SpTransmuteShadow
Definition: ABILITY.cs:243
const int breathe_Chaos
Definition: ABILITY.cs:225
Definition: AI_Eat.cs:5
override long GetSourceValue(long v, int lv, SourceValueType type)
Definition: ABILITY.cs:339
override void OnChangeValue()
Definition: ABILITY.cs:379
override bool ShowBonuses
Definition: ABILITY.cs:324
override bool CanPressRepeat
Definition: ABILITY.cs:326
override bool LocalAct
Definition: ABILITY.cs:328
override bool CanLink(ElementContainer owner)
Definition: ABILITY.cs:330
override int GetPower(Card c)
Definition: ABILITY.cs:348
Definition: ActNTR.cs:2
Definition: ActZap.cs:2
Definition: ACT.cs:62
Definition: Card.cs:11
bool IsPCFactionOrMinion
Definition: Card.cs:2342
virtual bool IsPC
Definition: Card.cs:2197
int Evalue(int ele)
Definition: Card.cs:2704
int LV
Definition: Card.cs:389
Definition: EClass.cs:6
static int curve(long _a, int start, int step, int rate=75)
Definition: EClass.cs:69
virtual Card Card
ElementContainer owner
Definition: ELEMENT.cs:275
static void SetDirty(Element a)
Definition: MathEx.cs:2
static long Max(long a, long b)
Definition: MathEx.cs:64
Definition: Song.cs:2
Definition: SPELL.cs:670
Definition: Wait.cs:2