pokemon-io-core 0.0.125 → 0.0.126
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/ids.d.ts +18 -6
- package/dist/core/ids.js +10 -1
- package/dist/core/index.d.ts +2 -1
- package/dist/core/index.js +2 -1
- package/dist/core/randomEvents.d.ts +21 -5
- package/dist/core/randomEvents.js +4 -4
- package/dist/core/randomEventsList.d.ts +10 -4
- package/dist/core/randomEventsList.js +24 -163
- package/dist/core/status.d.ts +1 -0
- package/dist/core/validation.d.ts +21 -0
- package/dist/core/validation.js +183 -0
- package/dist/engine/combat/damage.js +2 -1
- package/dist/engine/events/applyRandomEvent.js +13 -6
- package/dist/engine/turn/resolveTurn.js +3 -2
- package/dist/skins/CombatSkin.d.ts +1 -0
- package/dist/skins/cliches/clicheSkin.d.ts +2 -1
- package/dist/skins/cliches/clicheSkin.js +3 -0
- package/dist/skins/cliches/constants.d.ts +135 -0
- package/dist/skins/cliches/constants.js +136 -0
- package/dist/skins/cliches/fighters.d.ts +1 -1
- package/dist/skins/cliches/fighters.js +165 -165
- package/dist/skins/cliches/items.js +45 -44
- package/dist/skins/cliches/moves.js +74 -69
- package/dist/skins/cliches/randomEvents.d.ts +7 -0
- package/dist/skins/cliches/randomEvents.js +1167 -0
- package/dist/skins/cliches/statuses.js +63 -36
- package/dist/skins/cliches/types.d.ts +12 -12
- package/dist/skins/cliches/types.js +12 -11
- package/dist/skins/pokemon/constants.d.ts +83 -0
- package/dist/skins/pokemon/constants.js +84 -0
- package/dist/skins/pokemon/fighters.js +55 -55
- package/dist/skins/pokemon/items.js +23 -22
- package/dist/skins/pokemon/moves.js +59 -58
- package/dist/skins/pokemon/pokemonSkin.d.ts +2 -1
- package/dist/skins/pokemon/pokemonSkin.js +3 -0
- package/dist/skins/pokemon/randomEvents.d.ts +6 -0
- package/dist/skins/pokemon/randomEvents.js +165 -0
- package/dist/skins/pokemon/statuses.js +5 -4
- package/dist/skins/pokemon/types.d.ts +6 -6
- package/dist/skins/pokemon/types.js +7 -6
- package/package.json +1 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { TRIBE_MOVE_IDS, TRIBE_TYPE_IDS, TRIBE_FIGHTER_IDS, TRIBE_STATUS_IDS } from "./constants.js";
|
|
1
2
|
export const TRIBE_MOVES = [
|
|
2
3
|
{
|
|
3
|
-
id:
|
|
4
|
+
id: TRIBE_MOVE_IDS.TORTAZO,
|
|
4
5
|
name: "Tortazo",
|
|
5
|
-
typeId:
|
|
6
|
+
typeId: TRIBE_TYPE_IDS.TYPELESS,
|
|
6
7
|
accuracy: 100,
|
|
7
8
|
maxPP: 6,
|
|
8
9
|
priority: 0,
|
|
@@ -11,9 +12,9 @@ export const TRIBE_MOVES = [
|
|
|
11
12
|
]
|
|
12
13
|
},
|
|
13
14
|
{
|
|
14
|
-
id:
|
|
15
|
+
id: TRIBE_MOVE_IDS.PUÑETAZO,
|
|
15
16
|
name: "Puñetazo",
|
|
16
|
-
typeId:
|
|
17
|
+
typeId: TRIBE_TYPE_IDS.TYPELESS,
|
|
17
18
|
accuracy: 85,
|
|
18
19
|
maxPP: 3,
|
|
19
20
|
priority: 0,
|
|
@@ -23,9 +24,9 @@ export const TRIBE_MOVES = [
|
|
|
23
24
|
]
|
|
24
25
|
},
|
|
25
26
|
{
|
|
26
|
-
id:
|
|
27
|
+
id: TRIBE_MOVE_IDS.DEPORTE,
|
|
27
28
|
name: "Deporte",
|
|
28
|
-
typeId:
|
|
29
|
+
typeId: TRIBE_TYPE_IDS.TYPELESS,
|
|
29
30
|
accuracy: 100,
|
|
30
31
|
maxPP: 6,
|
|
31
32
|
priority: 0,
|
|
@@ -35,9 +36,9 @@ export const TRIBE_MOVES = [
|
|
|
35
36
|
]
|
|
36
37
|
},
|
|
37
38
|
{
|
|
38
|
-
id:
|
|
39
|
+
id: TRIBE_MOVE_IDS.MASTURBACION,
|
|
39
40
|
name: "Masturbación",
|
|
40
|
-
typeId:
|
|
41
|
+
typeId: TRIBE_TYPE_IDS.TYPELESS,
|
|
41
42
|
accuracy: 90,
|
|
42
43
|
maxPP: 3,
|
|
43
44
|
priority: 0,
|
|
@@ -47,9 +48,9 @@ export const TRIBE_MOVES = [
|
|
|
47
48
|
]
|
|
48
49
|
},
|
|
49
50
|
{
|
|
50
|
-
id:
|
|
51
|
+
id: TRIBE_MOVE_IDS.CAGAR,
|
|
51
52
|
name: "Cagar",
|
|
52
|
-
typeId:
|
|
53
|
+
typeId: TRIBE_TYPE_IDS.TYPELESS,
|
|
53
54
|
accuracy: 100,
|
|
54
55
|
maxPP: 3,
|
|
55
56
|
priority: 0,
|
|
@@ -60,9 +61,9 @@ export const TRIBE_MOVES = [
|
|
|
60
61
|
]
|
|
61
62
|
},
|
|
62
63
|
{
|
|
63
|
-
id:
|
|
64
|
+
id: TRIBE_MOVE_IDS.CIGARRITO,
|
|
64
65
|
name: "Cigarrito",
|
|
65
|
-
typeId:
|
|
66
|
+
typeId: TRIBE_TYPE_IDS.TYPELESS,
|
|
66
67
|
accuracy: 100,
|
|
67
68
|
maxPP: 3,
|
|
68
69
|
priority: 0,
|
|
@@ -72,57 +73,58 @@ export const TRIBE_MOVES = [
|
|
|
72
73
|
]
|
|
73
74
|
},
|
|
74
75
|
{
|
|
75
|
-
id:
|
|
76
|
+
id: TRIBE_MOVE_IDS.ESTUDIAR,
|
|
76
77
|
name: "Estudiar",
|
|
77
|
-
typeId:
|
|
78
|
+
typeId: TRIBE_TYPE_IDS.NERD,
|
|
78
79
|
accuracy: 100,
|
|
79
80
|
maxPP: 3,
|
|
80
81
|
priority: 0,
|
|
81
82
|
effects: [
|
|
82
83
|
{ kind: "damage", basePower: 40 },
|
|
83
|
-
{ kind: "damage", flatAmount: 10, target: "self" }
|
|
84
|
+
{ kind: "damage", flatAmount: 10, target: "self" },
|
|
85
|
+
{ kind: "apply_status", statusId: TRIBE_STATUS_IDS.ESTUDIAR, target: "self", chance: 0.5 },
|
|
84
86
|
]
|
|
85
87
|
},
|
|
86
88
|
{
|
|
87
|
-
id:
|
|
89
|
+
id: TRIBE_MOVE_IDS.DATO_CIENTIFICO,
|
|
88
90
|
name: "Dato científico",
|
|
89
|
-
typeId:
|
|
91
|
+
typeId: TRIBE_TYPE_IDS.NERD,
|
|
90
92
|
accuracy: 100,
|
|
91
93
|
maxPP: 3,
|
|
92
94
|
priority: 0,
|
|
93
95
|
effects: [
|
|
94
96
|
{ kind: "damage", basePower: 40 },
|
|
95
|
-
{ kind: "damage", flatAmount: 10, target: "self" }
|
|
97
|
+
{ kind: "damage", flatAmount: 10, target: "self" }
|
|
96
98
|
]
|
|
97
99
|
},
|
|
98
100
|
{
|
|
99
|
-
id:
|
|
101
|
+
id: TRIBE_MOVE_IDS.MANCUERNAZO,
|
|
100
102
|
name: "Mancuernazo",
|
|
101
|
-
typeId:
|
|
103
|
+
typeId: TRIBE_TYPE_IDS.GYMBRO,
|
|
102
104
|
accuracy: 100,
|
|
103
105
|
maxPP: 3,
|
|
104
106
|
priority: 0,
|
|
105
107
|
effects: [
|
|
106
108
|
{ kind: "damage", basePower: 40 },
|
|
107
|
-
{ kind: "damage", flatAmount: 10, target: "self" }
|
|
109
|
+
{ kind: "damage", flatAmount: 10, target: "self" }
|
|
108
110
|
]
|
|
109
111
|
},
|
|
110
112
|
{
|
|
111
|
-
id:
|
|
113
|
+
id: TRIBE_MOVE_IDS.PRESSBANCA,
|
|
112
114
|
name: "Pressbanca",
|
|
113
|
-
typeId:
|
|
115
|
+
typeId: TRIBE_TYPE_IDS.GYMBRO,
|
|
114
116
|
accuracy: 100,
|
|
115
117
|
maxPP: 3,
|
|
116
118
|
priority: 0,
|
|
117
119
|
effects: [
|
|
118
120
|
{ kind: "damage", basePower: 40 },
|
|
119
|
-
{ kind: "damage", flatAmount: 10, target: "self" }
|
|
121
|
+
{ kind: "damage", flatAmount: 10, target: "self" }
|
|
120
122
|
]
|
|
121
123
|
},
|
|
122
124
|
{
|
|
123
|
-
id:
|
|
125
|
+
id: TRIBE_MOVE_IDS.KEBAB_MATUTINO,
|
|
124
126
|
name: "Kebab matutino",
|
|
125
|
-
typeId:
|
|
127
|
+
typeId: TRIBE_TYPE_IDS.FIESTERO,
|
|
126
128
|
accuracy: 100,
|
|
127
129
|
maxPP: 3,
|
|
128
130
|
priority: 0,
|
|
@@ -131,21 +133,22 @@ export const TRIBE_MOVES = [
|
|
|
131
133
|
]
|
|
132
134
|
},
|
|
133
135
|
{
|
|
134
|
-
id:
|
|
136
|
+
id: TRIBE_MOVE_IDS.HIDALGO,
|
|
135
137
|
name: "Hidalgo",
|
|
136
|
-
typeId:
|
|
138
|
+
typeId: TRIBE_TYPE_IDS.FIESTERO,
|
|
137
139
|
accuracy: 100,
|
|
138
140
|
maxPP: 3,
|
|
139
141
|
priority: 0,
|
|
140
142
|
effects: [
|
|
141
143
|
{ kind: "damage", basePower: 20 },
|
|
142
144
|
{ kind: "heal", amount: 20 },
|
|
145
|
+
{ kind: 'apply_status', statusId: TRIBE_STATUS_IDS.RESACA, target: 'self', chance: 0.5 }
|
|
143
146
|
]
|
|
144
147
|
},
|
|
145
148
|
{
|
|
146
|
-
id:
|
|
149
|
+
id: TRIBE_MOVE_IDS.POLVOS_MAGICOS,
|
|
147
150
|
name: "Polvos mágicos",
|
|
148
|
-
typeId:
|
|
151
|
+
typeId: TRIBE_TYPE_IDS.FIESTERO,
|
|
149
152
|
accuracy: 100,
|
|
150
153
|
maxPP: 3,
|
|
151
154
|
priority: 0,
|
|
@@ -155,9 +158,9 @@ export const TRIBE_MOVES = [
|
|
|
155
158
|
]
|
|
156
159
|
},
|
|
157
160
|
{
|
|
158
|
-
id:
|
|
161
|
+
id: TRIBE_MOVE_IDS.HOROSCOPO,
|
|
159
162
|
name: "Lectura horoscopo",
|
|
160
|
-
typeId:
|
|
163
|
+
typeId: TRIBE_TYPE_IDS.MISTICO,
|
|
161
164
|
accuracy: 100,
|
|
162
165
|
maxPP: 3,
|
|
163
166
|
priority: 0,
|
|
@@ -167,9 +170,9 @@ export const TRIBE_MOVES = [
|
|
|
167
170
|
]
|
|
168
171
|
},
|
|
169
172
|
{
|
|
170
|
-
id:
|
|
173
|
+
id: TRIBE_MOVE_IDS.INCIENSO,
|
|
171
174
|
name: "Encender incienso",
|
|
172
|
-
typeId:
|
|
175
|
+
typeId: TRIBE_TYPE_IDS.MISTICO,
|
|
173
176
|
accuracy: 100,
|
|
174
177
|
maxPP: 6,
|
|
175
178
|
priority: 0,
|
|
@@ -179,45 +182,46 @@ export const TRIBE_MOVES = [
|
|
|
179
182
|
]
|
|
180
183
|
},
|
|
181
184
|
{
|
|
182
|
-
id:
|
|
185
|
+
id: TRIBE_MOVE_IDS.CARA_AL_SOL,
|
|
183
186
|
name: "Cara al sol",
|
|
184
|
-
typeId:
|
|
187
|
+
typeId: TRIBE_TYPE_IDS.PIJO,
|
|
185
188
|
accuracy: 100,
|
|
186
189
|
maxPP: 3,
|
|
187
190
|
priority: 0,
|
|
188
191
|
effects: [
|
|
189
192
|
{ kind: "damage", basePower: 40 },
|
|
190
|
-
{ kind: "damage", flatAmount: 10, target: "self" }
|
|
193
|
+
{ kind: "damage", flatAmount: 10, target: "self" }
|
|
191
194
|
]
|
|
192
|
-
},
|
|
193
|
-
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
id: TRIBE_MOVE_IDS.OKUPAR,
|
|
194
198
|
name: "Okupar",
|
|
195
|
-
typeId:
|
|
199
|
+
typeId: TRIBE_TYPE_IDS.KINKI,
|
|
196
200
|
accuracy: 100,
|
|
197
201
|
maxPP: 3,
|
|
198
202
|
priority: 0,
|
|
199
203
|
effects: [
|
|
200
204
|
{ kind: "damage", basePower: 40 },
|
|
201
|
-
{ kind: "damage", flatAmount: 10, target: "self" }
|
|
205
|
+
{ kind: "damage", flatAmount: 10, target: "self" }
|
|
202
206
|
]
|
|
203
207
|
},
|
|
204
208
|
{
|
|
205
|
-
id:
|
|
209
|
+
id: TRIBE_MOVE_IDS.PUÑO_ANAL,
|
|
206
210
|
name: "Puño anal",
|
|
207
|
-
typeId:
|
|
211
|
+
typeId: TRIBE_TYPE_IDS.MISTICO,
|
|
208
212
|
accuracy: 100,
|
|
209
213
|
maxPP: 3,
|
|
210
214
|
priority: 0,
|
|
211
|
-
onlyForFighterIds: [
|
|
215
|
+
onlyForFighterIds: [TRIBE_FIGHTER_IDS.VELAS],
|
|
212
216
|
effects: [
|
|
213
217
|
{ kind: "damage", basePower: 40 },
|
|
214
|
-
{ kind: "damage", flatAmount: 10, target: "self" }
|
|
218
|
+
{ kind: "damage", flatAmount: 10, target: "self" }
|
|
215
219
|
]
|
|
216
220
|
},
|
|
217
221
|
{
|
|
218
|
-
id:
|
|
222
|
+
id: TRIBE_MOVE_IDS.AUTOTUNE,
|
|
219
223
|
name: "Autotune mal puesto",
|
|
220
|
-
typeId:
|
|
224
|
+
typeId: TRIBE_TYPE_IDS.ARTISTA,
|
|
221
225
|
accuracy: 100,
|
|
222
226
|
maxPP: 6,
|
|
223
227
|
priority: 0,
|
|
@@ -227,9 +231,9 @@ export const TRIBE_MOVES = [
|
|
|
227
231
|
]
|
|
228
232
|
},
|
|
229
233
|
{
|
|
230
|
-
id:
|
|
234
|
+
id: TRIBE_MOVE_IDS.RISITAS,
|
|
231
235
|
name: "Risitas",
|
|
232
|
-
typeId:
|
|
236
|
+
typeId: TRIBE_TYPE_IDS.CHULETA,
|
|
233
237
|
accuracy: 100,
|
|
234
238
|
maxPP: 6,
|
|
235
239
|
priority: 0,
|
|
@@ -239,9 +243,9 @@ export const TRIBE_MOVES = [
|
|
|
239
243
|
]
|
|
240
244
|
},
|
|
241
245
|
{
|
|
242
|
-
id:
|
|
246
|
+
id: TRIBE_MOVE_IDS.LLAMAR_A_PAPA,
|
|
243
247
|
name: "Llamar a papá",
|
|
244
|
-
typeId:
|
|
248
|
+
typeId: TRIBE_TYPE_IDS.FORMAL,
|
|
245
249
|
accuracy: 100,
|
|
246
250
|
maxPP: 3,
|
|
247
251
|
priority: 0,
|
|
@@ -250,9 +254,9 @@ export const TRIBE_MOVES = [
|
|
|
250
254
|
]
|
|
251
255
|
},
|
|
252
256
|
{
|
|
253
|
-
id:
|
|
257
|
+
id: TRIBE_MOVE_IDS.CHAPA_INTELIGIBLE,
|
|
254
258
|
name: "Chapa inteligible",
|
|
255
|
-
typeId:
|
|
259
|
+
typeId: TRIBE_TYPE_IDS.LOCO,
|
|
256
260
|
accuracy: 100,
|
|
257
261
|
maxPP: 3,
|
|
258
262
|
priority: 0,
|
|
@@ -263,26 +267,26 @@ export const TRIBE_MOVES = [
|
|
|
263
267
|
]
|
|
264
268
|
},
|
|
265
269
|
{
|
|
266
|
-
id:
|
|
270
|
+
id: TRIBE_MOVE_IDS.QUIEBRO_RODILLAS,
|
|
267
271
|
name: "Quiebro de rodillas",
|
|
268
|
-
typeId:
|
|
272
|
+
typeId: TRIBE_TYPE_IDS.DEPORTISTA,
|
|
269
273
|
accuracy: 50,
|
|
270
274
|
maxPP: 3,
|
|
271
275
|
priority: 0,
|
|
272
|
-
onlyForFighterIds: [
|
|
276
|
+
onlyForFighterIds: [TRIBE_FIGHTER_IDS.CURRITO],
|
|
273
277
|
effects: [
|
|
274
278
|
{ kind: "damage", basePower: 50 },
|
|
275
279
|
{ kind: 'modify_stats', offenseDelta: 2, target: 'self' }
|
|
276
280
|
]
|
|
277
281
|
},
|
|
278
282
|
{
|
|
279
|
-
id:
|
|
283
|
+
id: TRIBE_MOVE_IDS.MEDITAR,
|
|
280
284
|
name: "Meditar",
|
|
281
|
-
typeId:
|
|
285
|
+
typeId: TRIBE_TYPE_IDS.MISTICO,
|
|
282
286
|
accuracy: 100,
|
|
283
287
|
maxPP: 3,
|
|
284
288
|
priority: 0,
|
|
285
|
-
onlyForFighterIds: [
|
|
289
|
+
onlyForFighterIds: [TRIBE_FIGHTER_IDS.SELENE],
|
|
286
290
|
effects: [
|
|
287
291
|
{ kind: "heal", amount: 40 },
|
|
288
292
|
{ kind: 'modify_stats', offenseDelta: 1, defenseDelta: 1, target: 'self' },
|
|
@@ -290,34 +294,35 @@ export const TRIBE_MOVES = [
|
|
|
290
294
|
]
|
|
291
295
|
},
|
|
292
296
|
{
|
|
293
|
-
id:
|
|
297
|
+
id: TRIBE_MOVE_IDS.HACHAZO_TOBILLERO,
|
|
294
298
|
name: "Hachazo tobillero",
|
|
295
|
-
typeId:
|
|
299
|
+
typeId: TRIBE_TYPE_IDS.LOCO,
|
|
296
300
|
accuracy: 60,
|
|
297
301
|
maxPP: 3,
|
|
298
302
|
priority: 0,
|
|
299
|
-
onlyForFighterIds: [
|
|
303
|
+
onlyForFighterIds: [TRIBE_FIGHTER_IDS.ED_GEIN],
|
|
300
304
|
effects: [
|
|
301
305
|
{ kind: "damage", basePower: 40 },
|
|
302
306
|
{ kind: 'modify_stats', offenseDelta: -1, target: 'enemy' }
|
|
303
307
|
]
|
|
304
308
|
},
|
|
305
309
|
{
|
|
306
|
-
id:
|
|
310
|
+
id: TRIBE_MOVE_IDS.MANCUERNAZO_DEPORTISTA,
|
|
307
311
|
name: "Mancuernazo",
|
|
308
|
-
typeId:
|
|
312
|
+
typeId: TRIBE_TYPE_IDS.DEPORTISTA,
|
|
309
313
|
accuracy: 90,
|
|
310
314
|
maxPP: 3,
|
|
311
315
|
priority: 0,
|
|
312
316
|
effects: [
|
|
313
317
|
{ kind: "damage", basePower: 40 },
|
|
314
|
-
{ kind: 'modify_stats', offenseDelta: -1, target: 'enemy' }
|
|
318
|
+
{ kind: 'modify_stats', offenseDelta: -1, target: 'enemy' },
|
|
319
|
+
{ kind: 'apply_status', statusId: TRIBE_STATUS_IDS.AGUJETAS, target: 'self', chance: 0.5 }
|
|
315
320
|
]
|
|
316
321
|
},
|
|
317
322
|
{
|
|
318
|
-
id:
|
|
323
|
+
id: TRIBE_MOVE_IDS.CHARLA_BUENISTA,
|
|
319
324
|
name: "Charla pacifista",
|
|
320
|
-
typeId:
|
|
325
|
+
typeId: TRIBE_TYPE_IDS.HIPPIE,
|
|
321
326
|
accuracy: 90,
|
|
322
327
|
maxPP: 6,
|
|
323
328
|
priority: 0,
|
|
@@ -327,9 +332,9 @@ export const TRIBE_MOVES = [
|
|
|
327
332
|
]
|
|
328
333
|
},
|
|
329
334
|
{
|
|
330
|
-
id:
|
|
335
|
+
id: TRIBE_MOVE_IDS.GUITARRITA,
|
|
331
336
|
name: "Guitarrita",
|
|
332
|
-
typeId:
|
|
337
|
+
typeId: TRIBE_TYPE_IDS.HIPPIE,
|
|
333
338
|
accuracy: 100,
|
|
334
339
|
maxPP: 3,
|
|
335
340
|
priority: 0,
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { RandomEventDefinition } from "../../core/randomEvents.js";
|
|
2
|
+
/**
|
|
3
|
+
* TRIBES-SPECIFIC Random Events
|
|
4
|
+
* These only appear when using the Tribes skin
|
|
5
|
+
* Eventos picantes y temáticos para la skin de Tribes
|
|
6
|
+
*/
|
|
7
|
+
export declare const TRIBES_RANDOM_EVENTS: RandomEventDefinition[];
|