pokemon-io-core 0.0.131 → 0.0.134

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.
@@ -14,4 +14,5 @@ export * from "./battleRuntime.js";
14
14
  export * from "./battleState.js";
15
15
  export * from "./amulets.js";
16
16
  export * from "./types.js";
17
+ export * from "./stages.js";
17
18
  export * from "./validation.js";
@@ -14,4 +14,5 @@ export * from "./battleRuntime.js";
14
14
  export * from "./battleState.js";
15
15
  export * from "./amulets.js";
16
16
  export * from "./types.js";
17
+ export * from "./stages.js";
17
18
  export * from "./validation.js";
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Stage (escenario/fondo) definitions for battles
3
+ */
4
+ export interface StageDefinition {
5
+ /** Unique identifier for the stage */
6
+ id: string;
7
+ /** Display name for the stage */
8
+ label: string;
9
+ /** Path to the background image/gif */
10
+ backgroundSrc: string;
11
+ /** Alternative text for accessibility */
12
+ alt: string;
13
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Stage (escenario/fondo) definitions for battles
3
+ */
4
+ export {};
@@ -1,339 +1,349 @@
1
- import { TRIBE_ITEM_IDS, TRIBE_STATUS_IDS } from "./constants.js";
1
+ import { TRIBE_FIGHTER_IDS, TRIBE_ITEM_IDS, TRIBE_STATUS_IDS, TRIBE_TYPE_IDS } from "./constants.js";
2
2
  export const TRIBE_ITEMS = [
3
- {
4
- id: TRIBE_ITEM_IDS.BURGUER,
5
- name: "Hamburguesa",
6
- target: "self",
7
- maxUses: 1,
8
- effects: [{ kind: "heal", amount: 50 }],
9
- image: "burguer",
10
- },
11
- {
12
- id: TRIBE_ITEM_IDS.KIT_INVESTIGACION,
13
- name: "Kit Investigacion",
14
- target: "self",
15
- maxUses: 1,
16
- effects: [{ kind: "heal", amount: 50 }],
17
- image: "kitInvestigacion",
18
- },
19
3
  {
20
4
  id: TRIBE_ITEM_IDS.PISTOLITA,
21
5
  name: "Pistolita",
22
6
  target: "self",
23
- maxUses: 1,
24
- effects: [{ kind: "heal", amount: 50 }],
7
+ maxUses: 2,
8
+ effects: [{ kind: "heal", amount: 40 }],
25
9
  image: "pistolita",
26
10
  },
27
11
  {
28
12
  id: TRIBE_ITEM_IDS.PATINETE,
29
13
  name: "Patinete",
30
14
  target: "self",
31
- maxUses: 1,
32
- effects: [{ kind: "heal", amount: 50 }],
15
+ maxUses: 2,
16
+ effects: [{ kind: "heal", amount: 40 }],
33
17
  image: "patinete",
18
+ type: [TRIBE_TYPE_IDS.DEPORTISTA]
34
19
  },
35
20
  {
36
21
  id: TRIBE_ITEM_IDS.COLACAO,
37
22
  name: "Colacao",
38
23
  target: "self",
39
- maxUses: 1,
40
- effects: [{ kind: "heal", amount: 50 }],
24
+ maxUses: 2,
25
+ effects: [{ kind: "heal", amount: 40 }],
41
26
  image: "colacao",
42
27
  },
43
28
  {
44
29
  id: TRIBE_ITEM_IDS.CHOCOLATE,
45
30
  name: "Chocolate",
46
31
  target: "self",
47
- maxUses: 1,
48
- effects: [{ kind: "heal", amount: 50 }],
32
+ maxUses: 2,
33
+ effects: [{ kind: "heal", amount: 40 }],
49
34
  image: "chocolate",
50
35
  },
51
36
  {
52
37
  id: TRIBE_ITEM_IDS.GATO,
53
38
  name: "Gato",
54
39
  target: "self",
55
- maxUses: 1,
56
- effects: [{ kind: "heal", amount: 50 }],
40
+ maxUses: 2,
41
+ effects: [{ kind: "heal", amount: 40 }],
57
42
  image: "gato",
58
43
  },
59
44
  {
60
45
  id: TRIBE_ITEM_IDS.DEPORTIVO,
61
46
  name: "Deportivo",
62
47
  target: "self",
63
- maxUses: 1,
64
- effects: [{ kind: "heal", amount: 50 }],
48
+ maxUses: 2,
49
+ effects: [{ kind: "heal", amount: 40 }],
65
50
  image: "deportivo",
51
+ type: [TRIBE_TYPE_IDS.CHULETA, TRIBE_TYPE_IDS.DEPORTISTA]
66
52
  },
67
53
  {
68
54
  id: TRIBE_ITEM_IDS.PORRA,
69
55
  name: "Porra",
70
56
  target: "self",
71
- maxUses: 1,
72
- effects: [{ kind: "heal", amount: 50 }],
57
+ maxUses: 4,
58
+ effects: [{ kind: "damage", flatAmount: 20 }],
73
59
  image: "porra",
74
60
  },
75
61
  {
76
62
  id: TRIBE_ITEM_IDS.PELOTA,
77
63
  name: "Pelota",
78
64
  target: "self",
79
- maxUses: 1,
80
- effects: [{ kind: "heal", amount: 50 }],
65
+ maxUses: 4,
66
+ effects: [{ kind: "damage", flatAmount: 20 }],
81
67
  image: "pelota",
68
+ type: [TRIBE_TYPE_IDS.DEPORTISTA]
82
69
  },
83
70
  {
84
71
  id: TRIBE_ITEM_IDS.CHUPETE,
85
72
  name: "Chupete",
86
73
  target: "self",
87
- maxUses: 1,
88
- effects: [{ kind: "heal", amount: 50 }],
74
+ maxUses: 2,
75
+ effects: [{ kind: "heal", amount: 40 }],
89
76
  image: "chupete",
90
77
  },
91
78
  {
92
79
  id: TRIBE_ITEM_IDS.AUTICASCOS,
93
80
  name: "Auticascos",
94
81
  target: "self",
95
- maxUses: 1,
96
- effects: [{ kind: "heal", amount: 50 }],
82
+ maxUses: 2,
83
+ effects: [{ kind: "heal", amount: 40 }],
97
84
  image: "auticascos",
98
85
  },
99
86
  {
100
87
  id: TRIBE_ITEM_IDS.SCOOTER_ROJA,
101
88
  name: "Scooter Roja",
102
89
  target: "self",
103
- maxUses: 1,
104
- effects: [{ kind: "heal", amount: 50 }],
90
+ maxUses: 2,
91
+ effects: [{ kind: "heal", amount: 40 }],
105
92
  image: "scooterRoja",
106
93
  },
107
94
  {
108
95
  id: TRIBE_ITEM_IDS.TELEFONO_ROJO,
109
96
  name: "Telefono Rojo",
110
97
  target: "self",
111
- maxUses: 1,
112
- effects: [{ kind: "heal", amount: 50 }],
98
+ maxUses: 2,
99
+ effects: [{ kind: "heal", amount: 40 }],
113
100
  image: "telefonoRojo",
114
101
  },
115
102
  {
116
103
  id: TRIBE_ITEM_IDS.PILDORA,
117
104
  name: "Pildora",
118
105
  target: "self",
119
- maxUses: 1,
120
- effects: [{ kind: "heal", amount: 50 }],
106
+ maxUses: 2,
107
+ effects: [{ kind: "heal", amount: 40 }],
121
108
  image: "pildora",
109
+ type: [TRIBE_TYPE_IDS.FIESTERO]
122
110
  },
123
111
  {
124
112
  id: TRIBE_ITEM_IDS.CANA,
125
113
  name: "Caña",
126
114
  target: "self",
127
- maxUses: 1,
128
- effects: [{ kind: "heal", amount: 50 }],
115
+ maxUses: 2,
116
+ effects: [{ kind: "heal", amount: 40 }],
129
117
  image: "caña",
118
+ type: [TRIBE_TYPE_IDS.DEPORTISTA]
130
119
  },
131
120
  {
132
121
  id: TRIBE_ITEM_IDS.FANTA,
133
122
  name: "Fanta",
134
123
  target: "self",
135
- maxUses: 1,
136
- effects: [{ kind: "heal", amount: 50 }],
124
+ maxUses: 2,
125
+ effects: [{ kind: "heal", amount: 40 }],
137
126
  image: "fanta",
138
127
  },
139
128
  {
140
129
  id: TRIBE_ITEM_IDS.AGUA,
141
130
  name: "Agua",
142
131
  target: "self",
143
- maxUses: 1,
144
- effects: [{ kind: "heal", amount: 50 }],
132
+ maxUses: 2,
133
+ effects: [{ kind: "heal", amount: 40 }],
145
134
  image: "agua",
135
+ type: [TRIBE_TYPE_IDS.DEPORTISTA]
146
136
  },
147
137
  {
148
138
  id: TRIBE_ITEM_IDS.GUITARRA,
149
139
  name: "Guitarra",
150
140
  target: "self",
151
- maxUses: 1,
152
- effects: [{ kind: "heal", amount: 50 }],
141
+ maxUses: 2,
142
+ effects: [{ kind: "heal", amount: 40 }],
153
143
  image: "guitarra",
144
+ type: [TRIBE_TYPE_IDS.HIPPIE]
154
145
  },
155
146
  {
156
147
  id: TRIBE_ITEM_IDS.PATINES,
157
148
  name: "Patines",
158
149
  target: "self",
159
- maxUses: 1,
160
- effects: [{ kind: "heal", amount: 50 }],
150
+ maxUses: 2,
151
+ effects: [{ kind: "heal", amount: 40 }],
161
152
  image: "patines",
153
+ type: [TRIBE_TYPE_IDS.DEPORTISTA]
162
154
  },
163
155
  {
164
156
  id: TRIBE_ITEM_IDS.BLACKBERRY,
165
157
  name: "Blackberry",
166
158
  target: "self",
167
- maxUses: 1,
168
- effects: [{ kind: "heal", amount: 50 }],
159
+ maxUses: 2,
160
+ effects: [{ kind: "heal", amount: 40 }],
169
161
  image: "blackberry",
170
162
  },
171
163
  {
172
164
  id: TRIBE_ITEM_IDS.CERVEZA,
173
165
  name: "Cerveza",
174
166
  target: "self",
175
- maxUses: 1,
176
- effects: [{ kind: "heal", amount: 50 }],
167
+ maxUses: 2,
168
+ effects: [{ kind: "heal", amount: 40 }],
177
169
  image: "cerveza",
170
+ type: [TRIBE_TYPE_IDS.FIESTERO]
178
171
  },
179
172
  {
180
173
  id: TRIBE_ITEM_IDS.NAVAJA,
181
174
  name: "Navaja",
182
175
  target: "self",
183
- maxUses: 1,
184
- effects: [{ kind: "heal", amount: 50 }],
176
+ maxUses: 3,
177
+ effects: [{ kind: "damage", flatAmount: 30 }],
185
178
  image: "navaja",
179
+ type: [TRIBE_TYPE_IDS.KINKI]
186
180
  },
187
181
  {
188
182
  id: TRIBE_ITEM_IDS.ORDENADOR,
189
183
  name: "Ordenador",
190
184
  target: "self",
191
- maxUses: 1,
192
- effects: [{ kind: "heal", amount: 50 }],
185
+ maxUses: 2,
186
+ effects: [{ kind: "heal", amount: 40 }],
193
187
  image: "ordenador",
188
+ type: [TRIBE_TYPE_IDS.NERD]
194
189
  },
195
190
  {
196
191
  id: TRIBE_ITEM_IDS.CONSOLA,
197
192
  name: "Consola",
198
193
  target: "self",
199
- maxUses: 1,
200
- effects: [{ kind: "heal", amount: 50 }],
194
+ maxUses: 2,
195
+ effects: [{ kind: "heal", amount: 40 }],
201
196
  image: "consola",
197
+ type: [TRIBE_TYPE_IDS.NERD]
202
198
  },
203
199
  {
204
200
  id: TRIBE_ITEM_IDS.COLEGA_HACKER,
205
201
  name: "Colega Hacker",
206
202
  target: "self",
207
- maxUses: 1,
208
- effects: [{ kind: "heal", amount: 50 }],
203
+ maxUses: 2,
204
+ effects: [{ kind: "heal", amount: 40 }],
209
205
  image: "colegaHacker",
206
+ type: [TRIBE_TYPE_IDS.NERD]
210
207
  },
211
208
  {
212
209
  id: TRIBE_ITEM_IDS.ENSALADA,
213
210
  name: "Ensalada",
214
211
  target: "self",
215
- maxUses: 1,
216
- effects: [{ kind: "heal", amount: 50 }],
212
+ maxUses: 2,
213
+ effects: [{ kind: "heal", amount: 40 }],
217
214
  image: "ensalada",
215
+ type: [TRIBE_TYPE_IDS.FORMAL]
218
216
  },
219
217
  {
220
218
  id: TRIBE_ITEM_IDS.CUBO_RUBIK,
221
219
  name: "Cubo Rubik",
222
220
  target: "self",
223
- maxUses: 1,
224
- effects: [{ kind: "heal", amount: 50 }],
221
+ maxUses: 2,
222
+ effects: [{ kind: "heal", amount: 40 }],
225
223
  image: "cuboRubik",
224
+ onlyForFighterIds: [TRIBE_FIGHTER_IDS.LORENA, TRIBE_FIGHTER_IDS.RUPER]
226
225
  },
227
226
  {
228
227
  id: TRIBE_ITEM_IDS.TUERCA,
229
228
  name: "Tuerca",
230
229
  target: "self",
231
- maxUses: 1,
232
- effects: [{ kind: "heal", amount: 50 }],
230
+ maxUses: 2,
231
+ effects: [{ kind: "heal", amount: 40 }],
233
232
  image: "tuerca",
233
+ type: [TRIBE_TYPE_IDS.NERD]
234
234
  },
235
235
  {
236
236
  id: TRIBE_ITEM_IDS.CACHIMBA,
237
237
  name: "Cachimba",
238
238
  target: "self",
239
- maxUses: 1,
240
- effects: [{ kind: "heal", amount: 50 }],
239
+ maxUses: 2,
240
+ effects: [{ kind: "heal", amount: 40 }],
241
241
  image: "cachimba",
242
+ type: [TRIBE_TYPE_IDS.FIESTERO, TRIBE_TYPE_IDS.HIPPIE]
242
243
  },
243
244
  {
244
245
  id: TRIBE_ITEM_IDS.INCIENSO,
245
246
  name: "Incienso",
246
247
  target: "self",
247
- maxUses: 1,
248
+ maxUses: 2,
248
249
  effects: [{ kind: "heal", amount: 50 }, { kind: 'apply_status', statusId: TRIBE_STATUS_IDS.MEDITAR, target: 'self', chance: 1 }],
249
250
  image: "incienso",
251
+ type: [TRIBE_TYPE_IDS.HIPPIE, TRIBE_TYPE_IDS.MISTICO]
250
252
  },
251
253
  {
252
254
  id: TRIBE_ITEM_IDS.PLATANO,
253
255
  name: "Platano",
254
256
  target: "self",
255
- maxUses: 1,
256
- effects: [{ kind: "heal", amount: 50 }],
257
+ maxUses: 2,
258
+ effects: [{ kind: "heal", amount: 40 }],
257
259
  image: "platano",
260
+ type: [TRIBE_TYPE_IDS.FORMAL]
258
261
  },
259
262
  {
260
263
  id: TRIBE_ITEM_IDS.BUDHA,
261
264
  name: "Budha",
262
265
  target: "self",
263
- maxUses: 1,
266
+ maxUses: 2,
264
267
  effects: [{ kind: "heal", amount: 50 }, { kind: 'apply_status', statusId: TRIBE_STATUS_IDS.MEDITAR, target: 'self', chance: 1 }],
265
268
  image: "budha",
269
+ type: [TRIBE_TYPE_IDS.HIPPIE, TRIBE_TYPE_IDS.MISTICO]
266
270
  },
267
271
  {
268
272
  id: TRIBE_ITEM_IDS.RATA_MUERTA,
269
273
  name: "Rata Muerta",
270
274
  target: "self",
271
- maxUses: 1,
272
- effects: [{ kind: "heal", amount: 50 }],
275
+ maxUses: 2,
276
+ effects: [{ kind: "heal", amount: 40 }],
273
277
  image: "rataMuerta",
278
+ type: [TRIBE_TYPE_IDS.LOCO]
274
279
  },
275
280
  {
276
281
  id: TRIBE_ITEM_IDS.SETA,
277
282
  name: "Seta",
278
283
  target: "self",
279
- maxUses: 1,
280
- effects: [{ kind: "heal", amount: 50 }],
284
+ maxUses: 2,
285
+ effects: [{ kind: "heal", amount: 40 }],
281
286
  image: "seta",
287
+ type: [TRIBE_TYPE_IDS.HIPPIE, TRIBE_TYPE_IDS.MISTICO, TRIBE_TYPE_IDS.FIESTERO]
282
288
  },
283
289
  {
284
290
  id: TRIBE_ITEM_IDS.CAFE,
285
291
  name: "Cafe",
286
292
  target: "self",
287
- maxUses: 1,
288
- effects: [{ kind: "heal", amount: 50 }],
293
+ maxUses: 2,
294
+ effects: [{ kind: "heal", amount: 40 }],
289
295
  image: "cafe",
290
296
  },
291
297
  {
292
298
  id: TRIBE_ITEM_IDS.PERIDICO,
293
299
  name: "Peridico",
294
300
  target: "self",
295
- maxUses: 1,
296
- effects: [{ kind: "heal", amount: 50 }],
301
+ maxUses: 2,
302
+ effects: [{ kind: "heal", amount: 40 }],
297
303
  image: "peridico",
304
+ type: [TRIBE_TYPE_IDS.NERD]
298
305
  },
299
306
  {
300
307
  id: TRIBE_ITEM_IDS.MC_EXTREME,
301
308
  name: "Mc Extreme",
302
309
  target: "self",
303
- maxUses: 1,
304
- effects: [{ kind: "heal", amount: 50 }],
310
+ maxUses: 2,
311
+ effects: [{ kind: "heal", amount: 40 }],
305
312
  image: "mcExtreme",
306
313
  },
307
314
  {
308
315
  id: TRIBE_ITEM_IDS.FOGATA,
309
316
  name: "Fogata",
310
317
  target: "self",
311
- maxUses: 1,
312
- effects: [{ kind: "heal", amount: 50 }],
318
+ maxUses: 2,
319
+ effects: [{ kind: "heal", amount: 40 }],
313
320
  image: "fogata",
321
+ onlyForFighterIds: [TRIBE_FIGHTER_IDS.JOSE_BRETON]
314
322
  },
315
323
  {
316
324
  id: TRIBE_ITEM_IDS.LLAVERAZO,
317
325
  name: "Llaverazo",
318
326
  target: "self",
319
- maxUses: 1,
320
- effects: [{ kind: "heal", amount: 50 }],
327
+ maxUses: 2,
328
+ effects: [{ kind: "heal", amount: 40 }],
321
329
  image: "llaverazo",
330
+ type: [TRIBE_TYPE_IDS.FIESTERO]
322
331
  },
323
332
  {
324
333
  id: TRIBE_ITEM_IDS.LORO,
325
334
  name: "Loro",
326
335
  target: "self",
327
- maxUses: 1,
328
- effects: [{ kind: "heal", amount: 50 }],
336
+ maxUses: 2,
337
+ effects: [{ kind: "heal", amount: 40 }],
329
338
  image: "loro",
339
+ onlyForFighterIds: [TRIBE_FIGHTER_IDS.RUPER]
330
340
  },
331
341
  {
332
342
  id: TRIBE_ITEM_IDS.GUITARRA_ELECTRICA,
333
343
  name: "Guitarra Electrica",
334
344
  target: "self",
335
- maxUses: 1,
336
- effects: [{ kind: "heal", amount: 50 }],
345
+ maxUses: 2,
346
+ effects: [{ kind: "heal", amount: 40 }],
337
347
  image: "guitarraElectrica",
338
348
  },
339
349
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pokemon-io-core",
3
- "version": "0.0.131",
3
+ "version": "0.0.134",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",