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.
Files changed (41) hide show
  1. package/dist/core/ids.d.ts +18 -6
  2. package/dist/core/ids.js +10 -1
  3. package/dist/core/index.d.ts +2 -1
  4. package/dist/core/index.js +2 -1
  5. package/dist/core/randomEvents.d.ts +21 -5
  6. package/dist/core/randomEvents.js +4 -4
  7. package/dist/core/randomEventsList.d.ts +10 -4
  8. package/dist/core/randomEventsList.js +24 -163
  9. package/dist/core/status.d.ts +1 -0
  10. package/dist/core/validation.d.ts +21 -0
  11. package/dist/core/validation.js +183 -0
  12. package/dist/engine/combat/damage.js +2 -1
  13. package/dist/engine/events/applyRandomEvent.js +13 -6
  14. package/dist/engine/turn/resolveTurn.js +3 -2
  15. package/dist/skins/CombatSkin.d.ts +1 -0
  16. package/dist/skins/cliches/clicheSkin.d.ts +2 -1
  17. package/dist/skins/cliches/clicheSkin.js +3 -0
  18. package/dist/skins/cliches/constants.d.ts +135 -0
  19. package/dist/skins/cliches/constants.js +136 -0
  20. package/dist/skins/cliches/fighters.d.ts +1 -1
  21. package/dist/skins/cliches/fighters.js +165 -165
  22. package/dist/skins/cliches/items.js +45 -44
  23. package/dist/skins/cliches/moves.js +74 -69
  24. package/dist/skins/cliches/randomEvents.d.ts +7 -0
  25. package/dist/skins/cliches/randomEvents.js +1167 -0
  26. package/dist/skins/cliches/statuses.js +63 -36
  27. package/dist/skins/cliches/types.d.ts +12 -12
  28. package/dist/skins/cliches/types.js +12 -11
  29. package/dist/skins/pokemon/constants.d.ts +83 -0
  30. package/dist/skins/pokemon/constants.js +84 -0
  31. package/dist/skins/pokemon/fighters.js +55 -55
  32. package/dist/skins/pokemon/items.js +23 -22
  33. package/dist/skins/pokemon/moves.js +59 -58
  34. package/dist/skins/pokemon/pokemonSkin.d.ts +2 -1
  35. package/dist/skins/pokemon/pokemonSkin.js +3 -0
  36. package/dist/skins/pokemon/randomEvents.d.ts +6 -0
  37. package/dist/skins/pokemon/randomEvents.js +165 -0
  38. package/dist/skins/pokemon/statuses.js +5 -4
  39. package/dist/skins/pokemon/types.d.ts +6 -6
  40. package/dist/skins/pokemon/types.js +7 -6
  41. 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: "tortazo", // overheat
4
+ id: TRIBE_MOVE_IDS.TORTAZO,
4
5
  name: "Tortazo",
5
- typeId: "typeless",
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: "puñetazo", // overheat
15
+ id: TRIBE_MOVE_IDS.PUÑETAZO,
15
16
  name: "Puñetazo",
16
- typeId: "typeless",
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: "deporte", // overheat
27
+ id: TRIBE_MOVE_IDS.DEPORTE,
27
28
  name: "Deporte",
28
- typeId: "typeless",
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: "masturbacion", // overheat
39
+ id: TRIBE_MOVE_IDS.MASTURBACION,
39
40
  name: "Masturbación",
40
- typeId: "typeless",
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: "cagar", // overheat
51
+ id: TRIBE_MOVE_IDS.CAGAR,
51
52
  name: "Cagar",
52
- typeId: "typeless",
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: "cigarrito", // overheat
64
+ id: TRIBE_MOVE_IDS.CIGARRITO,
64
65
  name: "Cigarrito",
65
- typeId: "typeless",
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: "estudiar", // overheat
76
+ id: TRIBE_MOVE_IDS.ESTUDIAR,
76
77
  name: "Estudiar",
77
- typeId: "nerd",
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" } // Te hace daño al hígado
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: "dato_cientifico", // overheat
89
+ id: TRIBE_MOVE_IDS.DATO_CIENTIFICO,
88
90
  name: "Dato científico",
89
- typeId: "nerd",
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" } // Te hace daño al hígado
97
+ { kind: "damage", flatAmount: 10, target: "self" }
96
98
  ]
97
99
  },
98
100
  {
99
- id: "mancuernazo", // overheat
101
+ id: TRIBE_MOVE_IDS.MANCUERNAZO,
100
102
  name: "Mancuernazo",
101
- typeId: "gymbro",
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" } // Te hace daño al hígado
109
+ { kind: "damage", flatAmount: 10, target: "self" }
108
110
  ]
109
111
  },
110
112
  {
111
- id: "pressbanca", // overheat
113
+ id: TRIBE_MOVE_IDS.PRESSBANCA,
112
114
  name: "Pressbanca",
113
- typeId: "gymbro",
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" } // Te hace daño al hígado
121
+ { kind: "damage", flatAmount: 10, target: "self" }
120
122
  ]
121
123
  },
122
124
  {
123
- id: "kebab_matutino", // overheat
125
+ id: TRIBE_MOVE_IDS.KEBAB_MATUTINO,
124
126
  name: "Kebab matutino",
125
- typeId: "fiestero",
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: "hidalgo", // overheat
136
+ id: TRIBE_MOVE_IDS.HIDALGO,
135
137
  name: "Hidalgo",
136
- typeId: "fiestero",
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: "polvos_magicos", // overheat
149
+ id: TRIBE_MOVE_IDS.POLVOS_MAGICOS,
147
150
  name: "Polvos mágicos",
148
- typeId: "fiestero",
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: "horoscopo", // overheat
161
+ id: TRIBE_MOVE_IDS.HOROSCOPO,
159
162
  name: "Lectura horoscopo",
160
- typeId: "mistico",
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: "incienso", // overheat
173
+ id: TRIBE_MOVE_IDS.INCIENSO,
171
174
  name: "Encender incienso",
172
- typeId: "mistico",
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: "cara_al_sol", // overheat
185
+ id: TRIBE_MOVE_IDS.CARA_AL_SOL,
183
186
  name: "Cara al sol",
184
- typeId: "pijo",
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" } // Te hace daño al hígado
193
+ { kind: "damage", flatAmount: 10, target: "self" }
191
194
  ]
192
- }, {
193
- id: "okupar", // overheat
195
+ },
196
+ {
197
+ id: TRIBE_MOVE_IDS.OKUPAR,
194
198
  name: "Okupar",
195
- typeId: "kinki",
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" } // Te hace daño al hígado
205
+ { kind: "damage", flatAmount: 10, target: "self" }
202
206
  ]
203
207
  },
204
208
  {
205
- id: "puño_anal", // overheat
209
+ id: TRIBE_MOVE_IDS.PUÑO_ANAL,
206
210
  name: "Puño anal",
207
- typeId: "mistico",
211
+ typeId: TRIBE_TYPE_IDS.MISTICO,
208
212
  accuracy: 100,
209
213
  maxPP: 3,
210
214
  priority: 0,
211
- onlyForFighterIds: ['velas'],
215
+ onlyForFighterIds: [TRIBE_FIGHTER_IDS.VELAS],
212
216
  effects: [
213
217
  { kind: "damage", basePower: 40 },
214
- { kind: "damage", flatAmount: 10, target: "self" } // Te hace daño al hígado
218
+ { kind: "damage", flatAmount: 10, target: "self" }
215
219
  ]
216
220
  },
217
221
  {
218
- id: "autotune", // overheat
222
+ id: TRIBE_MOVE_IDS.AUTOTUNE,
219
223
  name: "Autotune mal puesto",
220
- typeId: "artista",
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: "risitas",
234
+ id: TRIBE_MOVE_IDS.RISITAS,
231
235
  name: "Risitas",
232
- typeId: "chuleta",
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: "llamar_a_papa",
246
+ id: TRIBE_MOVE_IDS.LLAMAR_A_PAPA,
243
247
  name: "Llamar a papá",
244
- typeId: "formal",
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: "chapa_inteligible",
257
+ id: TRIBE_MOVE_IDS.CHAPA_INTELIGIBLE,
254
258
  name: "Chapa inteligible",
255
- typeId: "loco",
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: "quiebro_rodillas",
270
+ id: TRIBE_MOVE_IDS.QUIEBRO_RODILLAS,
267
271
  name: "Quiebro de rodillas",
268
- typeId: "deportista",
272
+ typeId: TRIBE_TYPE_IDS.DEPORTISTA,
269
273
  accuracy: 50,
270
274
  maxPP: 3,
271
275
  priority: 0,
272
- onlyForFighterIds: ['currito'],
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: "meditar",
283
+ id: TRIBE_MOVE_IDS.MEDITAR,
280
284
  name: "Meditar",
281
- typeId: "mistico",
285
+ typeId: TRIBE_TYPE_IDS.MISTICO,
282
286
  accuracy: 100,
283
287
  maxPP: 3,
284
288
  priority: 0,
285
- onlyForFighterIds: ['selene'],
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: "hachazo_tobillero",
297
+ id: TRIBE_MOVE_IDS.HACHAZO_TOBILLERO,
294
298
  name: "Hachazo tobillero",
295
- typeId: "loco",
299
+ typeId: TRIBE_TYPE_IDS.LOCO,
296
300
  accuracy: 60,
297
301
  maxPP: 3,
298
302
  priority: 0,
299
- onlyForFighterIds: ['ed_gein'],
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: "mancuernazo",
310
+ id: TRIBE_MOVE_IDS.MANCUERNAZO_DEPORTISTA,
307
311
  name: "Mancuernazo",
308
- typeId: "deportista",
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: "charla_buenista",
323
+ id: TRIBE_MOVE_IDS.CHARLA_BUENISTA,
319
324
  name: "Charla pacifista",
320
- typeId: "hippie",
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: "guitarrita",
335
+ id: TRIBE_MOVE_IDS.GUITARRITA,
331
336
  name: "Guitarrita",
332
- typeId: "hippie",
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[];