pokemon-io-core 0.0.37 → 0.0.38

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.
@@ -3,61 +3,106 @@ const makeStats = (offense, defense, speed, crit) => ({
3
3
  offense,
4
4
  defense,
5
5
  speed,
6
- crit
6
+ crit,
7
7
  });
8
8
  export const POKEMON_FIGHTERS = [
9
9
  {
10
10
  id: "pikachu",
11
11
  name: "Pikachu",
12
12
  description: "Rápido y agresivo, castiga con críticos frecuentes.",
13
- img: 'pikachu',
13
+ img: "pikachu",
14
14
  classId: POKEMON_TYPE_IDS.electric,
15
15
  baseStats: makeStats(55, 40, 90, 15),
16
- recommendedMoves: ["tackle", "thunder_shock"]
16
+ recommendedMoves: ["tackle", "thunder_shock"],
17
17
  },
18
18
  {
19
19
  id: "charizard",
20
20
  name: "Charizard",
21
21
  description: "Burst de fuego muy alto, algo frágil.",
22
- img: 'charizard',
22
+ img: "charizard",
23
23
  classId: POKEMON_TYPE_IDS.fire,
24
24
  baseStats: makeStats(84, 78, 100, 10),
25
- recommendedMoves: ["tackle", "ember"]
25
+ recommendedMoves: ["tackle", "ember"],
26
26
  },
27
27
  {
28
28
  id: "blastoise",
29
29
  name: "Blastoise",
30
30
  description: "Tanque defensivo con presión constante de agua.",
31
- img: 'blastoise',
31
+ img: "blastoise",
32
32
  classId: POKEMON_TYPE_IDS.water,
33
33
  baseStats: makeStats(83, 100, 78, 8),
34
- recommendedMoves: ["tackle", "water_gun"]
34
+ recommendedMoves: ["tackle", "water_gun"],
35
35
  },
36
36
  {
37
37
  id: "venusaur",
38
38
  name: "Venusaur",
39
39
  description: "Juego de desgaste con grandes golpes de hierba.",
40
- img: 'venusaur',
40
+ img: "venusaur",
41
41
  classId: POKEMON_TYPE_IDS.grass,
42
42
  baseStats: makeStats(82, 83, 80, 8),
43
- recommendedMoves: ["tackle", "vine_whip"]
43
+ recommendedMoves: ["tackle", "vine_whip"],
44
44
  },
45
45
  {
46
46
  id: "mew",
47
47
  name: "Mew",
48
48
  description: "Juego de desgaste con grandes golpes de hierba.",
49
- img: 'mew',
49
+ img: "mew",
50
50
  classId: POKEMON_TYPE_IDS.psychic,
51
51
  baseStats: makeStats(82, 83, 80, 8),
52
- recommendedMoves: ["tackle", "vine_whip"]
52
+ recommendedMoves: ["tackle", "vine_whip"],
53
53
  },
54
54
  {
55
55
  id: "groudon",
56
56
  name: "Groudon",
57
57
  description: "Juego de desgaste con grandes golpes de hierba.",
58
- img: 'groudon',
58
+ img: "groudon",
59
59
  classId: POKEMON_TYPE_IDS.rock,
60
60
  baseStats: makeStats(82, 83, 80, 8),
61
- recommendedMoves: ["tackle", "vine_whip"]
61
+ recommendedMoves: ["tackle", "vine_whip"],
62
+ },
63
+ {
64
+ id: "zapdos",
65
+ name: "Zapdos",
66
+ description: "Legendario equilibrado, pega fuerte y aguanta bien.",
67
+ img: "zapdos",
68
+ classId: POKEMON_TYPE_IDS.electric,
69
+ baseStats: makeStats(100, 90, 100, 10),
70
+ recommendedMoves: ["peck", "thunderbolt"],
71
+ },
72
+ {
73
+ id: "magmortar",
74
+ name: "Magmortar",
75
+ description: "Cañón de fuego puro, ofensiva especial brutal.",
76
+ img: "magmortar",
77
+ classId: POKEMON_TYPE_IDS.fire,
78
+ baseStats: makeStats(120, 80, 83, 10),
79
+ recommendedMoves: ["tackle", "ember"],
80
+ },
81
+ {
82
+ id: "kyogre",
83
+ name: "Kyogre",
84
+ description: "Legendario de agua descomunal, daño especial absurdo.",
85
+ img: "kyogre",
86
+ classId: POKEMON_TYPE_IDS.water,
87
+ baseStats: makeStats(150, 90, 90, 8),
88
+ recommendedMoves: ["tackle", "water_gun"],
89
+ },
90
+ {
91
+ id: "sceptile",
92
+ name: "Sceptile",
93
+ description: "Rapidísimo y ofensivo, castiga antes de que toques.",
94
+ img: "sceptile",
95
+ classId: POKEMON_TYPE_IDS.grass,
96
+ baseStats: makeStats(110, 70, 120, 12),
97
+ recommendedMoves: ["tackle", "vine_whip"],
98
+ },
99
+ {
100
+ id: "deoxys",
101
+ name: "Deoxys",
102
+ description: "Entidad espacial con ofensiva y velocidad absurdas, pero muy frágil.",
103
+ img: "deoxys",
104
+ classId: POKEMON_TYPE_IDS.psychic,
105
+ baseStats: makeStats(150, 50, 150, 15),
106
+ recommendedMoves: ["tackle", "confusion"],
62
107
  },
63
108
  ];
@@ -13,7 +13,7 @@ export const POKEMON_MOVES = [
13
13
  priority: 0,
14
14
  effects: [
15
15
  { kind: "damage", basePower: 130 },
16
- { kind: "modify_stats", offenseDelta: -20 }, // se quema a sí mismo el ataque
16
+ { kind: "damage", flatAmount: 10, target: "self" }, // se quema a sí mismo el ataque
17
17
  ],
18
18
  },
19
19
  // 2) Golpe estable fuego
@@ -24,9 +24,7 @@ export const POKEMON_MOVES = [
24
24
  accuracy: 100,
25
25
  maxPP: 15,
26
26
  priority: 0,
27
- effects: [
28
- { kind: "damage", basePower: 90 },
29
- ],
27
+ effects: [{ kind: "damage", basePower: 90 }],
30
28
  },
31
29
  // 3) Daño bajo + quemar
32
30
  {
@@ -66,9 +64,7 @@ export const POKEMON_MOVES = [
66
64
  accuracy: 100,
67
65
  maxPP: 20,
68
66
  priority: 0,
69
- effects: [
70
- { kind: "damage", basePower: 70 },
71
- ],
67
+ effects: [{ kind: "damage", basePower: 70 }],
72
68
  },
73
69
  // 6) Cura simple
74
70
  {
@@ -78,9 +74,7 @@ export const POKEMON_MOVES = [
78
74
  accuracy: 100,
79
75
  maxPP: 15,
80
76
  priority: 0,
81
- effects: [
82
- { kind: "heal", target: "self", amount: 25 },
83
- ],
77
+ effects: [{ kind: "heal", target: "self", amount: 25 }],
84
78
  },
85
79
  // =====================================================
86
80
  // AGUA
@@ -106,9 +100,7 @@ export const POKEMON_MOVES = [
106
100
  accuracy: 100,
107
101
  maxPP: 15,
108
102
  priority: 0,
109
- effects: [
110
- { kind: "damage", basePower: 90 },
111
- ],
103
+ effects: [{ kind: "damage", basePower: 90 }],
112
104
  },
113
105
  // 3) Daño bajo + escaldado
114
106
  {
@@ -148,9 +140,7 @@ export const POKEMON_MOVES = [
148
140
  accuracy: 100,
149
141
  maxPP: 20,
150
142
  priority: 0,
151
- effects: [
152
- { kind: "damage", basePower: 75 },
153
- ],
143
+ effects: [{ kind: "damage", basePower: 75 }],
154
144
  },
155
145
  // 6) Curación simple
156
146
  {
@@ -160,9 +150,7 @@ export const POKEMON_MOVES = [
160
150
  accuracy: 100,
161
151
  maxPP: 15,
162
152
  priority: 0,
163
- effects: [
164
- { kind: "heal", target: "self", amount: 25 },
165
- ],
153
+ effects: [{ kind: "heal", target: "self", amount: 25 }],
166
154
  },
167
155
  // =====================================================
168
156
  // PLANTA
@@ -188,9 +176,7 @@ export const POKEMON_MOVES = [
188
176
  accuracy: 100,
189
177
  maxPP: 15,
190
178
  priority: 0,
191
- effects: [
192
- { kind: "damage", basePower: 90 },
193
- ],
179
+ effects: [{ kind: "damage", basePower: 90 }],
194
180
  },
195
181
  // 3) Daño bajo + enredado (leeches)
196
182
  {
@@ -230,9 +216,7 @@ export const POKEMON_MOVES = [
230
216
  accuracy: 100,
231
217
  maxPP: 20,
232
218
  priority: 0,
233
- effects: [
234
- { kind: "damage", basePower: 80 },
235
- ],
219
+ effects: [{ kind: "damage", basePower: 80 }],
236
220
  },
237
221
  // 6) Curación simple
238
222
  {
@@ -242,9 +226,7 @@ export const POKEMON_MOVES = [
242
226
  accuracy: 100,
243
227
  maxPP: 15,
244
228
  priority: 0,
245
- effects: [
246
- { kind: "heal", target: "self", amount: 25 },
247
- ],
229
+ effects: [{ kind: "heal", target: "self", amount: 25 }],
248
230
  },
249
231
  // =====================================================
250
232
  // PSIQUICO
@@ -270,9 +252,7 @@ export const POKEMON_MOVES = [
270
252
  accuracy: 100,
271
253
  maxPP: 15,
272
254
  priority: 0,
273
- effects: [
274
- { kind: "damage", basePower: 90 },
275
- ],
255
+ effects: [{ kind: "damage", basePower: 90 }],
276
256
  },
277
257
  // 3) Daño bajo + bloqueo mental (hard CC)
278
258
  {
@@ -312,9 +292,7 @@ export const POKEMON_MOVES = [
312
292
  accuracy: 100,
313
293
  maxPP: 20,
314
294
  priority: 0,
315
- effects: [
316
- { kind: "damage", basePower: 80 },
317
- ],
295
+ effects: [{ kind: "damage", basePower: 80 }],
318
296
  },
319
297
  // 6) Curación simple
320
298
  {
@@ -324,9 +302,7 @@ export const POKEMON_MOVES = [
324
302
  accuracy: 100,
325
303
  maxPP: 15,
326
304
  priority: 0,
327
- effects: [
328
- { kind: "heal", target: "self", amount: 25 },
329
- ],
305
+ effects: [{ kind: "heal", target: "self", amount: 25 }],
330
306
  },
331
307
  // =====================================================
332
308
  // ROCA
@@ -352,9 +328,7 @@ export const POKEMON_MOVES = [
352
328
  accuracy: 90,
353
329
  maxPP: 10,
354
330
  priority: 0,
355
- effects: [
356
- { kind: "damage", basePower: 100 },
357
- ],
331
+ effects: [{ kind: "damage", basePower: 100 }],
358
332
  },
359
333
  // 3) Daño bajo + petrificado
360
334
  {
@@ -394,9 +368,7 @@ export const POKEMON_MOVES = [
394
368
  accuracy: 100,
395
369
  maxPP: 20,
396
370
  priority: 0,
397
- effects: [
398
- { kind: "damage", basePower: 80 },
399
- ],
371
+ effects: [{ kind: "damage", basePower: 80 }],
400
372
  },
401
373
  // 6) Curación simple
402
374
  {
@@ -406,9 +378,7 @@ export const POKEMON_MOVES = [
406
378
  accuracy: 100,
407
379
  maxPP: 15,
408
380
  priority: 0,
409
- effects: [
410
- { kind: "heal", target: "self", amount: 25 },
411
- ],
381
+ effects: [{ kind: "heal", target: "self", amount: 25 }],
412
382
  },
413
383
  // =====================================================
414
384
  // ELÉCTRICO
@@ -434,9 +404,7 @@ export const POKEMON_MOVES = [
434
404
  accuracy: 100,
435
405
  maxPP: 15,
436
406
  priority: 0,
437
- effects: [
438
- { kind: "damage", basePower: 90 },
439
- ],
407
+ effects: [{ kind: "damage", basePower: 90 }],
440
408
  },
441
409
  // 3) Daño bajo + electrocutado
442
410
  {
@@ -476,9 +444,7 @@ export const POKEMON_MOVES = [
476
444
  accuracy: 100,
477
445
  maxPP: 20,
478
446
  priority: 0,
479
- effects: [
480
- { kind: "damage", basePower: 80 },
481
- ],
447
+ effects: [{ kind: "damage", basePower: 80 }],
482
448
  },
483
449
  // 6) Curación simple
484
450
  {
@@ -488,8 +454,6 @@ export const POKEMON_MOVES = [
488
454
  accuracy: 100,
489
455
  maxPP: 15,
490
456
  priority: 0,
491
- effects: [
492
- { kind: "heal", target: "self", amount: 25 },
493
- ],
457
+ effects: [{ kind: "heal", target: "self", amount: 25 }],
494
458
  },
495
459
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pokemon-io-core",
3
- "version": "0.0.37",
3
+ "version": "0.0.38",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",