Elin Decompiled Documentation EA 23.153 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_Drink = 5045;
6
7 public const int ActKick = 5042;
8
9 public const int AI_TendAnimal = 5043;
10
11 public const int ActChat = 5044;
12
13 public const int ActInstall = 5046;
14
15 public const int ActPick = 5047;
16
17 public const int ActItem = 5048;
18
19 public const int AI_OpenLock = 5049;
20
21 public const int AI_Sleep = 5050;
22
23 public const int ActZap = 5051;
24
25 public const int ActBash = 5052;
26
27 public const int TaskHarvest = 5053;
28
29 public const int AI_Bladder = 5054;
30
31 public const int ActRestrain = 5055;
32
33 public const int AI_PlayMusic = 6001;
34
35 public const int AI_Read = 5041;
36
37 public const int AI_Meditate = 6003;
38
39 public const int ActQuickCraft = 6012;
40
41 public const int AI_PassTime = 6013;
42
43 public const int AI_SelfHarm = 6015;
44
45 public const int ActRide = 6018;
46
47 public const int ActParasite = 6019;
48
49 public const int ActDreamBug = 6020;
50
51 public const int ActPray = 6050;
52
53 public const int ActEscape = 6400;
54
55 public const int ActSuicide = 6410;
56
57 public const int ActDuplicate = 6420;
58
59 public const int ActCrabBreathe = 6500;
60
61 public const int ActCurse = 6600;
62
63 public const int ActEntangle = 6601;
64
65 public const int ActDraw = 6602;
66
67 public const int AI_Steal = 6011;
68
69 public const int ActNTR = 6603;
70
71 public const int ActRanged = 5040;
72
73 public const int ActThrow = 5038;
74
75 public const int General = 5008;
76
77 public const int TaskMine = 5009;
78
79 public const int TaskDig = 5010;
80
81 public const int TaskCut = 5011;
82
83 public const int AI_Goto = 5012;
84
85 public const int ActAttack = 5013;
86
87 public const int TaskPlow = 5014;
88
89 public const int TaskAttack = 5015;
90
91 public const int TaskTame = 5016;
92
93 public const int TaskTalk = 5017;
94
95 public const int TaskPick = 5018;
96
97 public const int TaskReadBoard = 5019;
98
99 public const int TaskFarm = 5020;
100
101 public const int TaskTrain = 5021;
102
103 public const int AI_Fish = 5039;
104
105 public const int TaskSleepOnBed = 5022;
106
107 public const int AI_Eat = 5024;
108
109 public const int AI_Grab = 5025;
110
111 public const int AI_Haul = 5026;
112
113 public const int GoalSleep = 5027;
114
115 public const int ActReleaseHeld = 5028;
116
117 public const int AI_Offer = 5029;
118
119 public const int AI_ReleaseHeld = 5030;
120
121 public const int AI_Deconstruct = 5031;
122
123 public const int AI_Equip = 5032;
124
125 public const int ActCancelTask = 5033;
126
127 public const int GoalIdle = 5034;
128
129 public const int TaskBuild = 5035;
130
131 public const int TaskMoveInstalled = 5036;
132
133 public const int ActNoItem = 5037;
134
135 public const int TaskGoOut = 5023;
136
137 public const int ActCryRage = 6604;
138
139 public const int ActRush = 6450;
140
141 public const int ActFear = 6611;
142
143 public const int breathe_Cold = 50201;
144
145 public const int breathe_Lightning = 50202;
146
147 public const int breathe_Darkness = 50203;
148
149 public const int breathe_Mind = 50204;
150
151 public const int breathe_Poison = 50205;
152
153 public const int breathe_Nether = 50206;
154
155 public const int breathe_Sound = 50207;
156
157 public const int breathe_Nerve = 50208;
158
159 public const int breathe_Holy = 50209;
160
161 public const int ActWeaken = 6610;
162
163 public const int breathe_Magic = 50211;
164
165 public const int breathe_Fire = 50200;
166
167 public const int breathe_Ether = 50212;
168
169 public const int breathe_Cut = 50214;
170
171 public const int breathe_Impact = 50215;
172
173 public const int breathe_Void = 50216;
174
175 public const int ActWait = 5000;
176
177 public const int ActMelee = 5001;
178
179 public const int Melee = 5002;
180
181 public const int Ranged = 5003;
182
183 public const int Sleep = 5004;
184
185 public const int Wait = 5005;
186
187 public const int Shoot = 5006;
188
189 public const int Use = 5007;
190
191 public const int breathe_Acid = 50213;
192
193 public const int breathe_ = 7000;
194
195 public const int breathe_Chaos = 50210;
196
197 public const int ActKizuamiTrick = 6903;
198
199 public const int ActGazeMutation = 6622;
200
201 public const int ActGazeMana = 6623;
202
203 public const int ActTouchDrown = 6613;
204
205 public const int ActTouchSleep = 6612;
206
207 public const int ActHeadpat = 6904;
208
209 public const int ActDrainBlood = 6626;
210
211 public const int ActGazeDim = 6620;
212
213 public const int ActScream = 6631;
214
215 public const int ActSteal = 6640;
216
217 public const int ActStealFood = 6641;
218
219 public const int ActStealMoney = 6642;
220
221 public const int ActInsult = 6630;
222
223 public const int ActDropMine = 6660;
224
225 public const int ActLulwyTrick = 6902;
226
227 public const int ActJureHeal = 6901;
228
229 public const int ActManaAbsorb = 6900;
230
231 public const int StManaCost = 6720;
232
233 public const int ActNeckHunt = 6650;
234
235 public const int ActGazeInsane = 6621;
236
237 public const int StTaunt = 6700;
238
239 public const int ActBladeStorm = 6664;
240
241 public const int ActMultiHit = 6663;
242
243 public const int ActSwarm = 6662;
244
245 public const int ActThrowPotion = 6661;
246
247 public static readonly int[] IDS = new int[121]
248 {
249 5045, 5042, 5043, 5044, 5046, 5047, 5048, 5049, 5050, 5051,
250 5052, 5053, 5054, 5055, 6001, 5041, 6003, 6012, 6013, 6015,
251 6018, 6019, 6020, 6050, 6400, 6410, 6420, 6500, 6600, 6601,
252 6602, 6011, 6603, 5040, 5038, 5008, 5009, 5010, 5011, 5012,
253 5013, 5014, 5015, 5016, 5017, 5018, 5019, 5020, 5021, 5039,
254 5022, 5024, 5025, 5026, 5027, 5028, 5029, 5030, 5031, 5032,
255 5033, 5034, 5035, 5036, 5037, 5023, 6604, 6450, 6611, 50201,
256 50202, 50203, 50204, 50205, 50206, 50207, 50208, 50209, 6610, 50211,
257 50200, 50212, 50214, 50215, 50216, 5000, 5001, 5002, 5003, 5004,
258 5005, 5006, 5007, 50213, 7000, 50210, 6903, 6622, 6623, 6613,
259 6612, 6904, 6626, 6620, 6631, 6640, 6641, 6642, 6630, 6660,
260 6902, 6901, 6900, 6720, 6650, 6621, 6700, 6664, 6663, 6662,
261 6661
262 };
263}
264public class Ability : Act
265{
266 public override bool ShowBonuses => false;
267
268 public override bool CanPressRepeat => base.source.tag.Contains("repeat");
269
270 public override bool CanLink(ElementContainer owner)
271 {
272 if (owner.Card == null)
273 {
274 return !base.IsGlobalElement;
275 }
276 return false;
277 }
278
279 public override int GetSourceValue(int v, int lv, SourceValueType type)
280 {
281 if (type != 0)
282 {
283 return base.GetSourceValue(v, lv, type);
284 }
285 return 10 * (100 + (lv - 1) * base.source.lvFactor / 10) / 100;
286 }
287
288 public override int GetPower(Card c)
289 {
290 int a = base.Value * 8 + 50;
291 if (!c.IsPC)
292 {
293 a = Mathf.Max(a, c.LV * 6 + 30);
294 if (c.IsPCFactionOrMinion && !base.source.aliasParent.IsEmpty())
295 {
296 a = Mathf.Max(a, c.Evalue(base.source.aliasParent) * 4 + 30);
297 }
298 }
299 a = EClass.curve(a, 400, 100);
300 if (this is Spell)
301 {
302 a = a * Mathf.Max(100 + c.Evalue(411) - c.Evalue(93), 1) / 100;
303 }
304 return a;
305 }
306
307 public override void OnChangeValue()
308 {
310 if (card != null && card._IsPC)
311 {
313 }
314 }
315}
SourceValueType
const int Ranged
Definition: ABILITY.cs:181
const int breathe_Holy
Definition: ABILITY.cs:159
const int ActGazeMutation
Definition: ABILITY.cs:199
const int TaskPick
Definition: ABILITY.cs:95
const int ActFear
Definition: ABILITY.cs:141
const int ActBladeStorm
Definition: ABILITY.cs:239
static readonly int[] IDS
Definition: ABILITY.cs:247
const int ActDuplicate
Definition: ABILITY.cs:57
const int ActKizuamiTrick
Definition: ABILITY.cs:197
const int TaskTalk
Definition: ABILITY.cs:93
const int TaskSleepOnBed
Definition: ABILITY.cs:105
const int ActDropMine
Definition: ABILITY.cs:223
const int TaskGoOut
Definition: ABILITY.cs:135
const int breathe_Impact
Definition: ABILITY.cs:171
const int breathe_Magic
Definition: ABILITY.cs:163
const int breathe_Acid
Definition: ABILITY.cs:191
const int General
Definition: ABILITY.cs:75
const int ActAttack
Definition: ABILITY.cs:85
const int Sleep
Definition: ABILITY.cs:183
const int TaskFarm
Definition: ABILITY.cs:99
const int ActTouchDrown
Definition: ABILITY.cs:203
const int breathe_Poison
Definition: ABILITY.cs:151
const int TaskAttack
Definition: ABILITY.cs:89
const int breathe_Darkness
Definition: ABILITY.cs:147
const int breathe_Nether
Definition: ABILITY.cs:153
const int breathe_Void
Definition: ABILITY.cs:173
const int Shoot
Definition: ABILITY.cs:187
const int ActGazeDim
Definition: ABILITY.cs:211
const int breathe_Sound
Definition: ABILITY.cs:155
const int breathe_Fire
Definition: ABILITY.cs:165
const int ActCrabBreathe
Definition: ABILITY.cs:59
const int ActEntangle
Definition: ABILITY.cs:63
const int ActEscape
Definition: ABILITY.cs:53
const int ActScream
Definition: ABILITY.cs:213
const int StTaunt
Definition: ABILITY.cs:237
const int ActNeckHunt
Definition: ABILITY.cs:233
const int ActJureHeal
Definition: ABILITY.cs:227
const int breathe_Mind
Definition: ABILITY.cs:149
const int breathe_
Definition: ABILITY.cs:193
const int StManaCost
Definition: ABILITY.cs:231
const int TaskTame
Definition: ABILITY.cs:91
const int breathe_Cut
Definition: ABILITY.cs:169
const int ActLulwyTrick
Definition: ABILITY.cs:225
const int ActInstall
Definition: ABILITY.cs:13
const int ActInsult
Definition: ABILITY.cs:221
const int ActHeadpat
Definition: ABILITY.cs:207
const int breathe_Lightning
Definition: ABILITY.cs:145
const int ActStealFood
Definition: ABILITY.cs:217
const int ActCurse
Definition: ABILITY.cs:61
const int ActManaAbsorb
Definition: ABILITY.cs:229
const int Use
Definition: ABILITY.cs:189
const int ActStealMoney
Definition: ABILITY.cs:219
const int breathe_Ether
Definition: ABILITY.cs:167
const int ActCancelTask
Definition: ABILITY.cs:125
const int ActDraw
Definition: ABILITY.cs:65
const int ActGazeInsane
Definition: ABILITY.cs:235
const int Melee
Definition: ABILITY.cs:179
const int breathe_Cold
Definition: ABILITY.cs:143
const int ActThrowPotion
Definition: ABILITY.cs:245
const int ActSteal
Definition: ABILITY.cs:215
const int breathe_Nerve
Definition: ABILITY.cs:157
const int ActReleaseHeld
Definition: ABILITY.cs:115
const int ActGazeMana
Definition: ABILITY.cs:201
const int ActTouchSleep
Definition: ABILITY.cs:205
const int TaskReadBoard
Definition: ABILITY.cs:97
const int ActDrainBlood
Definition: ABILITY.cs:209
const int ActSuicide
Definition: ABILITY.cs:55
const int ActMultiHit
Definition: ABILITY.cs:241
const int TaskTrain
Definition: ABILITY.cs:101
const int ActWeaken
Definition: ABILITY.cs:161
const int breathe_Chaos
Definition: ABILITY.cs:195
Definition: AI_Eat.cs:5
override void OnChangeValue()
Definition: ABILITY.cs:307
override int GetSourceValue(int v, int lv, SourceValueType type)
Definition: ABILITY.cs:279
override bool ShowBonuses
Definition: ABILITY.cs:266
override bool CanPressRepeat
Definition: ABILITY.cs:268
override bool CanLink(ElementContainer owner)
Definition: ABILITY.cs:270
override int GetPower(Card c)
Definition: ABILITY.cs:288
Definition: ActNTR.cs:2
Definition: ActZap.cs:2
Definition: ACT.cs:62
Definition: Card.cs:11
bool IsPCFactionOrMinion
Definition: Card.cs:2208
virtual bool IsPC
Definition: Card.cs:2079
int Evalue(int ele)
Definition: Card.cs:2507
int LV
Definition: Card.cs:370
Definition: EClass.cs:5
static int curve(int a, int start, int step, int rate=75)
Definition: EClass.cs:63
virtual Card Card
ElementContainer owner
Definition: ELEMENT.cs:264
static void SetDirty(Element a)
Definition: SPELL.cs:527
Definition: Wait.cs:2