-
Notifications
You must be signed in to change notification settings - Fork 2
/
Item.java
1238 lines (1218 loc) · 30.5 KB
/
Item.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
////////////////////////////
//Item Class
//Created by Justinian
//
import java.awt.Point;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Toolkit;
import java.net.URL;
public class Item extends javax.swing.JPanel
{
//Fields
public final Type type;
public Effect effect1;
public Effect effect2;
public Pocket pocket;
//If storeCost is -1 you can't buy it
public int storeCost;
public int amount;
public boolean reUsable;
public int mNo;
public String message;
public int alphabet;
//If no specific power, it is automatically 100
public int power1;
public int power2;
//Heals this status if STATUS_HEAL and if OK
//it heals all statuses
public Pokemon.Status healStatus = null;
//If tm or Hm, the Move the Pokemon learns
public Pokemon.Move moveLearned = null;
public final Point location=new Point(0,0);
public boolean found=true;
final static Image itemImg = Toolkit.getDefaultToolkit().getImage(Item.class.getResource("Sprites/item.png"));
//Enum Fields
public enum Type
{
ANTIDOTE,AWAKENING,BICYCLE,BIKE_VOUCHER,BURN_HEAL,
CALCIUM,CARD_KEY,CARBOS,COIN_CASE,DIRE_HIT,DOME_FOSSIL,
ELIXER,ESCAPE_ROPE,ETHER,EXPERIENCE_ALL,FIRE_STONE,
FRESH_WATER,FULL_HEAL,FULL_RESTORE,GOLD_TEETH,
GOOD_ROD,GREAT_BALL,GUARD_SPECIAL,HELIX_FOSSIL,
HP_UP,HYPER_POTION,ICE_HEAL,IRON,ITEM_FINDER,
LEAF_STONE,LEMONADE,LIFT_KEY,MASTER_BALL,MAX_ELIXIR,
MAX_ETHER,MAX_POTION,MAX_REPEL,MAX_REVIVE,MOON_STONE,
NUGGET,OLD_AMBER,OLD_ROD,PARALYZE_HEAL,POKE_BALL,
POKE_FLUTE,POTION,PP_UP,PROTEIN,RARE_CANDY,REPEL,
REVIVE,SS_TICKET,SAFARI_BALL,SECRET_KEY,SILPH_SCOPE,
SODA_POP,SUPER_POTION,SUPER_ROD,THUNDER_STONE,TOWN_MAP,
ULTRA_BALL,WATER_STONE,X_ACCURACY,X_ATTACK,X_DEFEND,
X_SPECIAL,X_SPEED,TM,HM,
OMEGA_BALL,MOUNTAIN_DEW,BEER,ROTTEN_APPLE,ULTIMA_REPEL,SILVER_NUGGET,REDBULL;
//Unused Items
//
//Card Key, Bike Voucher, Card Key, Coin Case, Dome Fossil, Gold Teeth, Helix Fossil,
//Itemfinder, Lift Key, Old Amber, PP Up, Poke Flute, SS Ticket, Safari Ball, Secret Key, Silph Scope,
}
public enum Effect
{
STATUS_HEAL,HP_HEAL,POKEBALL,PP_HEAL,KEY_ITEM,TM,HM,
BATTLE_BOOST,PERMA_STAT_BOOST,EVO_STONE,POKE_FLUTE,
GUARD_SPECIAL,ITEM_FINDER,REPEL,FOSSIL,RARE_CANDY,
MAP,BIKE,ELIXER,EXPERIENCE_ALL,ESCAPE_ROPE,ROD,PP_UP,NONE;
}
public enum Pocket
{
ITEM,MEDICINE,POKEBALL,TMHM,BATTLE,KEY;
}
//End of Enum Fields
//Constructors only take name
public Item(Type name, long amount2)
{
type = name;
amount = (int)amount2;
createItem();
}
//Constructors only take name
public Item(Type name, int amount2)
{
type = name;
amount = (int)amount2;
createItem();
}
//Constructor for Overworld item
public Item(Type name, Point point)
{
type = name;
amount = 1;
location.x=point.x;
location.y=point.y;
found=false;
createItem();
}
//This helps if you are creating a TM
public Item(Type name, long amount2, int tmNo)
{
type = name;
mNo = tmNo;
amount = (int)amount2;
createItem();
}
//This helps if you are creating a TM
public Item(Type name, int amount2, int tmNo)
{
type = name;
mNo = tmNo;
amount = (int)amount2;
createItem();
}
//Creates all the information from the name of the item
private void createItem()
{
switch(type)
{
case ANTIDOTE:
effect1 = Effect.STATUS_HEAL;
power1 = 100;
healStatus = Pokemon.Status.PSN;
effect2 = Effect.NONE;
power2 = 0;
storeCost = 100;
pocket = Pocket.MEDICINE;
reUsable = false;
message = "Cures poison";
alphabet = 1;
break;
case AWAKENING:
effect1 = Effect.STATUS_HEAL;
power1 = 100;
healStatus = Pokemon.Status.SLP;
effect2 = Effect.NONE;
power2 = 0;
storeCost = 250;
pocket = Pocket.MEDICINE;
reUsable = false;
message = "Wakes up your Pokemon";
alphabet = 1;
break;
case BICYCLE:
effect1 = Effect.BIKE;
power1 = 100;
effect2 = Effect.KEY_ITEM;
power2 = 100;
storeCost = 10000000;
reUsable = true;
pocket = Pocket.KEY;
amount = 1;
message = "Increases movement speed";
alphabet = 2;
break;
case BIKE_VOUCHER:
effect1 = Effect.KEY_ITEM;
power1 = 100;
effect2 = Effect.NONE;
power2 = 0;
storeCost = -1;
reUsable = false;
amount = 1;
pocket = Pocket.KEY;
message = "Use this to purchase a bike";
alphabet = 2;
break;
case CALCIUM:
effect1 = Effect.PERMA_STAT_BOOST;
power1 = 10;
effect2 = Effect.NONE;
power2 = 0;
storeCost = 9800;
reUsable = false;
pocket = Pocket.MEDICINE;
message = "Increases Special stat permanently";
alphabet = 3;
break;
case CARBOS:
effect1 = Effect.PERMA_STAT_BOOST;
power1 = 10;
effect2 = Effect.NONE;
power2 = 0;
storeCost = 9800;
reUsable = false;
pocket = Pocket.MEDICINE;
message = "Increases Speed stat permanently";
alphabet = 3;
break;
case CARD_KEY:
effect1 = Effect.KEY_ITEM;
power1 = 100;
effect2 = Effect.NONE;
power2 = 0;
storeCost = -1;
reUsable = true;
amount = 1;
pocket = Pocket.KEY;
message = "A card that unlocks a specific door";
alphabet = 3;
break;
case COIN_CASE:
effect1 = Effect.KEY_ITEM;
power1 = 100;
effect2 = Effect.NONE;
power2 = 0;
storeCost = -1;
reUsable = true;
amount = 1;
pocket = Pocket.KEY;
message = "A case that contains all of your coins";
alphabet = 3;
break;
case DIRE_HIT: //Raises Critical Chance
effect1 = Effect.BATTLE_BOOST;
power1 = 100;
effect2 = Effect.NONE;
power2 = 0;
storeCost = 650;
reUsable = false;
pocket = Pocket.BATTLE;
message = "Raises critical chance in battle";
alphabet = 4;
break;
case DOME_FOSSIL:
effect1 = Effect.FOSSIL;
power1 = 100;
effect2 = Effect.KEY_ITEM;
power2 = 0;
storeCost = -1;
reUsable = false;
pocket = Pocket.KEY;
message = "A mysterious fossil that contains the remains of an extinct Pokemon";
alphabet = 4;
break;
case ELIXER:
effect1 = Effect.ELIXER;
power1 = 10;
effect2 = Effect.NONE;
power2 = 0;
storeCost = 20000;
reUsable = false;
pocket = Pocket.MEDICINE;
message = "Restores 10PP to all moves";
alphabet = 5;
break;
case ESCAPE_ROPE:
effect1 = Effect.ESCAPE_ROPE;
power1 = 100;
effect2 = Effect.NONE;
power2 = 0;
storeCost = 550;
reUsable = false;
pocket = Pocket.ITEM;
message = "Returns you to a cave entrance. Must be in a cave";
alphabet = 5;
break;
case ETHER:
effect1 = Effect.PP_HEAL;
power1 = 10;
effect2 = Effect.NONE;
power2 = 0;
storeCost = 5000;
reUsable = false;
pocket = Pocket.MEDICINE;
message = "Restores 10PP to one move";
alphabet = 5;
break;
case EXPERIENCE_ALL:
effect1 = Effect.EXPERIENCE_ALL;
power1 = 6;
effect2 = Effect.NONE;
power2 = 0;
storeCost = 50000;
reUsable = true;
pocket = Pocket.ITEM;
message = "Splits EXP recieved in battle between all pokemon in your party";
alphabet = 5;
break;
case FIRE_STONE:
effect1 = Effect.EVO_STONE;
power1 = 100;
effect2 = Effect.NONE;
storeCost = 2100;
reUsable = false;
pocket = Pocket.ITEM;
message = "Evolves certain fire type Pokemon";
alphabet = 6;
break;
case FRESH_WATER:
effect1 = Effect.HP_HEAL;
power1 = 50;
effect2 = Effect.NONE;
storeCost = 200;
reUsable = false;
pocket = Pocket.MEDICINE;
alphabet = 6;
message = "Heals 50HP";
break;
case FULL_HEAL:
effect1 = Effect.STATUS_HEAL;
power1 = 100;
healStatus = Pokemon.Status.OK;
effect2 = Effect.NONE;
storeCost = 600;
reUsable = false;
pocket = Pocket.MEDICINE;
alphabet = 6;
message = "Cures any condition";
break;
case FULL_RESTORE:
effect1 = Effect.HP_HEAL;
power1 = 99999;
effect2 = Effect.STATUS_HEAL;
power2 = 100;
healStatus = Pokemon.Status.OK;
storeCost = 3000;
reUsable = false;
pocket = Pocket.MEDICINE;
alphabet = 6;
message = "Heals all HP and cures any condition";
break;
case GOLD_TEETH:
effect1 = Effect.KEY_ITEM;
power1 = 100;
effect2 = Effect.NONE;
storeCost = -1;
reUsable = true;
pocket = Pocket.KEY;
message = "Gold colored dentures";
alphabet = 7;
break;
case GOOD_ROD:
effect1 = Effect.ROD;
power1 =2;
effect2 = Effect.KEY_ITEM;
storeCost = -1;
reUsable = true;
pocket = Pocket.KEY;
message = "A better fishing rod";
alphabet = 7;
break;
case GREAT_BALL:
effect1 = Effect.POKEBALL;
power1 = 2;
effect2 = Effect.NONE;
storeCost = 600;
reUsable = false;
pocket = Pocket.POKEBALL;
message = "A pokeball with a higher catch rate than a pokeball";
alphabet = 7;
break;
case GUARD_SPECIAL:
effect1 = Effect.BATTLE_BOOST;
power1 = 100;
effect2 = Effect.NONE;
storeCost = 700;
reUsable = false;
pocket = Pocket.BATTLE;
message = "Protects one Pokemon in battle from special attacks";
alphabet = 7;
break;
case HELIX_FOSSIL:
effect1 = Effect.FOSSIL;
power1 = 100;
effect2 = Effect.KEY_ITEM;
storeCost = -1;
reUsable = false;
pocket = Pocket.KEY;
message = "A mysterious fossil that contains the remains of an extinct Pokemon";
alphabet = 8;
break;
case HP_UP:
effect1 = Effect.PERMA_STAT_BOOST;
power1 = 10;
effect2 = Effect.NONE;
storeCost = 9800;
reUsable = false;
pocket = Pocket.MEDICINE;
alphabet = 8;
message = "Raises Health stat permanently";
break;
case HYPER_POTION:
effect1 = Effect.HP_HEAL;
power1 = 200;
effect2 = Effect.NONE;
storeCost = 1500;
reUsable = false;
pocket = Pocket.MEDICINE;
alphabet = 8;
message = "Heals 200HP";
break;
case ICE_HEAL:
effect1 = Effect.STATUS_HEAL;
power1 = 100;
healStatus = Pokemon.Status.FRZ;
effect2 = Effect.NONE;
storeCost = 250;
reUsable = false;
pocket = Pocket.MEDICINE;
alphabet = 9;
message = "Defrosts one Pokemon";
break;
case IRON:
effect1 = Effect.PERMA_STAT_BOOST;
power1 = 10;
effect2 = Effect.NONE;
storeCost = 9800;
reUsable = false;
pocket = Pocket.MEDICINE;
message = "Raises Defense stat permanently";
alphabet = 9;
break;
case ITEM_FINDER:
effect1 = Effect.ITEM_FINDER;
power1 = 100;
effect2 = Effect.KEY_ITEM;
storeCost = -1;
reUsable = true;
pocket = Pocket.KEY;
message = "Reveals hidden items";
alphabet = 9;
break;
case LEAF_STONE:
effect1 = Effect.EVO_STONE;
power1 = 100;
effect2 = Effect.NONE;
storeCost = 2100;
reUsable = false;
pocket = Pocket.ITEM;
alphabet = 12;
message = "Evolves certain grass type Pokemon";
break;
case LEMONADE:
effect1 = Effect.HP_HEAL;
power1 = 80;
effect2 = Effect.NONE;
storeCost = 350;
reUsable = false;
pocket = Pocket.MEDICINE;
alphabet = 12;
message = "Heals 80HP";
break;
case LIFT_KEY:
effect1 = Effect.KEY_ITEM;
effect2 = Effect.NONE;
storeCost = -1;
reUsable = true;
pocket = Pocket.KEY;
alphabet = 12;
message = "Unlocks a certain elevator";
break;
case MASTER_BALL:
effect1 = Effect.POKEBALL;
power1 = 255;
effect2 = Effect.NONE;
storeCost = 9999999;
reUsable = false;
pocket = Pocket.POKEBALL;
alphabet = 13;
message = "A pokeball that wont fail";
break;
case MAX_ELIXIR:
effect1 = Effect.ELIXER;
power1 = 255;
effect2 = Effect.NONE;
storeCost = 40000;
reUsable = false;
pocket = Pocket.MEDICINE;
alphabet = 13;
message = "Resores max PP to all moves";
break;
case MAX_ETHER:
effect1 = Effect.PP_HEAL;
power1 = 255;
effect2 = Effect.NONE;
storeCost = 10000;
reUsable = false;
pocket = Pocket.MEDICINE;
alphabet = 13;
message = "Restores max PP to one move";
break;
case MAX_POTION:
effect1 = Effect.HP_HEAL;
power1 = 99999;
effect2 = Effect.NONE;
storeCost = 2500;
reUsable = false;
pocket = Pocket.MEDICINE;
alphabet = 13;
message = "Restores max HP";
break;
case MAX_REPEL:
effect1 = Effect.REPEL;
power1 = 250;
effect2 = Effect.NONE;
storeCost = 700;
reUsable = false;
pocket = Pocket.ITEM;
alphabet = 13;
message = "Repels for 250 steps";
break;
case MAX_REVIVE:
effect1 = Effect.STATUS_HEAL;
power1 = 100;
healStatus = Pokemon.Status.FNT;
effect2 = Effect.NONE;
power2 = 0;
storeCost = 5000;
reUsable = false;
pocket = Pocket.MEDICINE;
alphabet = 13;
message = "Revives one Pokemon to full health";
break;
case NUGGET:
effect1 = Effect.NONE;
effect2 = Effect.NONE;
storeCost = 10000;
reUsable = true;
pocket = Pocket.ITEM;
alphabet = 14;
message = "A valuable item";
break;
case OLD_AMBER:
effect1 = Effect.FOSSIL;
effect2 = Effect.KEY_ITEM;
storeCost = -1;
reUsable = false;
pocket = Pocket.KEY;
alphabet = 15;
message = "An amber containing Pokemon DNA";
break;
case OLD_ROD:
effect1 = Effect.ROD;
power1 = 1;
effect2 = Effect.KEY_ITEM;
storeCost = -1;
reUsable = true;
pocket = Pocket.KEY;
alphabet = 15;
message = "A basic rod";
break;
case PARALYZE_HEAL:
effect1 = Effect.STATUS_HEAL;
power1 = 100;
healStatus = Pokemon.Status.PAR;
effect2 = Effect.NONE;
storeCost = 200;
reUsable = false;
pocket = Pocket.MEDICINE;
alphabet = 16;
message = "Cures paralysis";
break;
case POKE_BALL:
effect1 = Effect.POKEBALL;
power1 = 1;
effect2 = Effect.NONE;
storeCost = 200;
reUsable = false;
pocket = Pocket.POKEBALL;
alphabet = 16;
message = "A basic pokeball";
break;
case POKE_FLUTE:
effect1 = Effect.POKE_FLUTE;
effect2 = Effect.KEY_ITEM;
storeCost = -1;
reUsable = true;
pocket = Pocket.KEY;
alphabet = 16;
message = "A mysterious flute";
break;
case POTION:
effect1 = Effect.HP_HEAL;
power1 = 20;
effect2 = Effect.NONE;
storeCost = 300;
reUsable = false;
pocket = Pocket.MEDICINE;
alphabet = 16;
message = "Heals 20HP";
break;
case PP_UP:
effect1 = Effect.PP_UP;
power1 = 20;
effect2 = Effect.NONE;
storeCost = 20000;
reUsable = false;
pocket = Pocket.MEDICINE;
alphabet = 16;
message = "Raises PP by 20% for one move";
break;
case PROTEIN:
effect1 = Effect.PERMA_STAT_BOOST;
power1 = 10;
effect2 = Effect.NONE;
storeCost = 9800;
reUsable = false;
pocket = Pocket.MEDICINE;
alphabet = 16;
message = "Raises Attack stat permanently";
break;
case RARE_CANDY:
effect1 = Effect.RARE_CANDY;
effect2 = Effect.NONE;
storeCost = 8000;
reUsable = false;
pocket = Pocket.ITEM;
alphabet = 18;
message = "Raises one level";
break;
case REPEL:
effect1 = Effect.REPEL;
power1 = 100;
effect2 = Effect.NONE;
storeCost = 350;
reUsable = false;
pocket = Pocket.ITEM;
alphabet = 18;
message = "Repels for 100 steps";
break;
case REVIVE:
effect1 = Effect.STATUS_HEAL;
power1 = 100;
healStatus = Pokemon.Status.FNT;
effect2 = Effect.NONE;
storeCost = 1500;
reUsable = false;
pocket = Pocket.MEDICINE;
alphabet = 18;
message = "Revives one pokemon to half health";
break;
case SS_TICKET:
effect1 = Effect.KEY_ITEM;
effect2 = Effect.NONE;
storeCost = -1;
reUsable = true;
pocket = Pocket.KEY;
alphabet = 19;
message = "A ticket to get on the S.S. Anne";
break;
case SAFARI_BALL:
effect1 = Effect.POKEBALL;
power1 = 2;
effect2 = Effect.NONE;
storeCost = 0;
reUsable = false;
pocket = Pocket.POKEBALL;
alphabet = 19;
message = "A pokeball used in the Safari Zone";
break;
case SECRET_KEY:
effect1 = Effect.KEY_ITEM;
effect2 = Effect.NONE;
storeCost = -1;
reUsable = true;
pocket = Pocket.KEY;
alphabet = 19;
message = "A secretive key";
break;
case SILPH_SCOPE:
effect1 = Effect.KEY_ITEM;
effect2 = Effect.NONE;
storeCost = -1;
reUsable = true;
pocket = Pocket.KEY;
alphabet = 19;
message = "Allows you to see ghosts";
break;
case SODA_POP:
effect1 = Effect.HP_HEAL;
power1 = 60;
effect2 = Effect.NONE;
storeCost= 300;
reUsable = false;
pocket = Pocket.MEDICINE;
alphabet = 19;
message = "Heals 60HP";
break;
case SUPER_POTION:
effect1 = Effect.HP_HEAL;
power1 = 70;
effect2 = Effect.NONE;
storeCost = 700;
reUsable = false;
pocket = Pocket.MEDICINE;
alphabet = 19;
message = "Heals 70HP";
break;
case SUPER_ROD:
effect1 = Effect.ROD;
power1 = 3;
effect2 = Effect.KEY_ITEM;
storeCost = 7500;
reUsable = true;
pocket = Pocket.KEY;
alphabet = 19;
message = "The best rod";
break;
case THUNDER_STONE:
effect1 = Effect.EVO_STONE;
effect2 = Effect.NONE;
storeCost = 2100;
reUsable = false;
pocket = Pocket.ITEM;
alphabet = 20;
message = "Evolves certain thunder type Pokemon";
break;
case TOWN_MAP:
effect1 = Effect.MAP;
effect2 = Effect.KEY_ITEM;
storeCost = -1;
reUsable = true;
pocket = Pocket.KEY;
alphabet = 20;
message = "Map of the entire region";
break;
case ULTRA_BALL:
effect1 = Effect.POKEBALL;
power1 = 3;
effect2 = Effect.NONE;
storeCost = 1500;
reUsable = false;
pocket = Pocket.POKEBALL;
alphabet = 21;
message = "A stronger pokeball than great ball";
break;
case WATER_STONE:
effect1 = Effect.EVO_STONE;
effect2 = Effect.NONE;
storeCost = 2100;
reUsable = false;
pocket = Pocket.ITEM;
alphabet = 22;
message = "Evolves certain water type Pokemon";
break;
case X_ACCURACY:
effect1 = Effect.BATTLE_BOOST;
power1 = 100;
effect2 = Effect.NONE;
storeCost = 950;
reUsable = false;
pocket = Pocket.BATTLE;
alphabet = 23;
message = "Temporarily raises accuracy in battle";
break;
case X_ATTACK:
effect1 = Effect.BATTLE_BOOST;
power1 = 100;
effect2 = Effect.NONE;
storeCost = 500;
reUsable = false;
pocket = Pocket.BATTLE;
alphabet = 23;
message = "Temporarily raises attack in battle";
break;
case X_DEFEND:
effect1 = Effect.BATTLE_BOOST;
power1 = 100;
effect2 = Effect.NONE;
storeCost = 550;
reUsable = false;
pocket = Pocket.BATTLE;
alphabet = 23;
message = "Temporarily raises defense in battle";
break;
case X_SPECIAL:
effect1 = Effect.BATTLE_BOOST;
power1 = 100;
effect2 = Effect.NONE;
storeCost = 550;
reUsable = false;
pocket = Pocket.BATTLE;
alphabet = 23;
message = "Temporarily raises special in battle";
break;
case X_SPEED:
effect1 = Effect.BATTLE_BOOST;
power1 = 100;
effect2 = Effect.NONE;
storeCost = 550;
reUsable = false;
pocket = Pocket.BATTLE;
alphabet = 23;
message = "Temporarily raises speed in battle";
break;
//For both Tm and Hm their messages and
//their move learned is depends on machine number
case TM:
{
effect1 = Effect.TM;
effect2 = Effect.NONE;
reUsable = true;
alphabet = 20;
pocket = Pocket.TMHM;
switch (mNo)
{
case 1:
moveLearned = Pokemon.Move.MEGA_PUNCH;
message = "Teaches one Pokemon Mega Punch";
storeCost = 3000;
break;
case 2:
moveLearned = Pokemon.Move.RAZOR_WIND;
message = "Teaches one Pokemon Razor Wind";
storeCost = 1000;
break;
case 3:
moveLearned = Pokemon.Move.SWORDS_DANCE;
message = "Teaches one Pokemon Sword's Dance";
storeCost = 4000;
break;
case 4:
moveLearned = Pokemon.Move.WHIRLWIND;
message = "Teaches one Pokemon Whirlwind";
storeCost = 1000;
break;
case 5:
moveLearned = Pokemon.Move.MEGA_KICK;
message = "Teaches one Pokemon Mega Kick";
storeCost = 2000;
break;
case 6:
moveLearned = Pokemon.Move.TOXIC;
message = "Teaches one Pokemon Toxic";
storeCost = 5000;
break;
case 7:
moveLearned = Pokemon.Move.HORN_DRILL;
message = "Teaches one Pokemon Horn Drill";
storeCost = 3000;
break;
case 8:
moveLearned = Pokemon.Move.BODY_SLAM;
message = "Teaches one Pokemon Body Slam";
storeCost = 4000;
break;
case 9:
moveLearned = Pokemon.Move.TAKE_DOWN;
message = "Teaches one Pokemon Take Down";
storeCost = 3000;
break;
case 10:
moveLearned = Pokemon.Move.DOUBLE_EDGE;
message = "Teaches one Pokemon Double Edge";
storeCost = 3000;
break;
case 11:
moveLearned = Pokemon.Move.BUBBLEBEAM;
message = "Teaches one Pokemon Bubblebeam";
storeCost = 3000;
break;
case 12:
moveLearned = Pokemon.Move.WATER_GUN;
message = "Teaches one Pokemon Water Gun";
storeCost = 1500;
break;
case 13:
moveLearned = Pokemon.Move.ICE_BEAM;
message = "Teaches one Pokemon Ice Beam";
storeCost = 5000;
break;
case 14:
moveLearned = Pokemon.Move.BLIZZARD;
message = "Teaches one Pokemon Blizzard";
storeCost = 5000;
break;
case 15:
moveLearned = Pokemon.Move.HYPER_BEAM;
message = "Teaches one Pokemon Hyper Beam";
storeCost = 5000;
break;
case 16:
moveLearned = Pokemon.Move.PAY_DAY;
message = "Teaches one Pokemon Pay Day";
storeCost = 1000;
break;
case 17:
moveLearned = Pokemon.Move.SUBMISSION;
message = "Teaches one Pokemon Submission";
storeCost = 5000;
break;
case 18:
moveLearned = Pokemon.Move.COUNTER;
message = "Teaches one Pokemon Counter";
storeCost = 3500;
break;
case 19:
moveLearned = Pokemon.Move.SEISMIC_TOSS;
message = "Teaches one Pokemon Seismic Toss";
storeCost = 4000;
break;
case 20:
moveLearned = Pokemon.Move.RAGE;
message = "Teaches one Pokemon Rage";
storeCost = 2500;
break;
case 21:
moveLearned = Pokemon.Move.MEGA_DRAIN;
message = "Teaches one Pokemon Mega Drain";
storeCost = 4000;
break;
case 22:
moveLearned = Pokemon.Move.SOLARBEAM;
message = "Teaches one Pokemon Solarbeam";
storeCost = 5000;
break;
case 23:
moveLearned = Pokemon.Move.DRAGON_RAGE;
message = "Teaches one Pokemon Dragon Rage";
storeCost = 5000;
break;
case 24:
moveLearned = Pokemon.Move.THUNDERBOLT;
message = "Teaches one Pokemon Thunderbolt";
storeCost = 5000;
break;
case 25:
moveLearned = Pokemon.Move.THUNDER;
message = "Teaches one Pokemon Thunder";
storeCost = 5000;
break;
case 26:
moveLearned = Pokemon.Move.EARTHQUAKE;
message = "Teaches one Pokemon Earthquake";
storeCost = 10000;
break;
case 27:
moveLearned = Pokemon.Move.FISSURE;
message = "Teaches one Pokemon Fissure";
storeCost = 2500;
break;
case 28:
moveLearned = Pokemon.Move.DIG;
message = "Teaches one Pokemon Dig";
storeCost = 3000;
break;
case 29:
moveLearned = Pokemon.Move.PSYCHIC;
message = "Teaches one Pokemon Psychic";
storeCost = 5000;
break;
case 30:
moveLearned = Pokemon.Move.TELEPORT;
message = "Teaches one Pokemon Teleport";
storeCost = 500;
break;
case 31:
moveLearned = Pokemon.Move.MIMIC;
message = "Teaches one Pokemon Mimic";
storeCost = 5000;
break;
case 32:
moveLearned = Pokemon.Move.DOUBLE_TEAM;
message = "Teaches one Pokemon Double Team";
storeCost = 2000;
break;
case 33:
moveLearned = Pokemon.Move.REFLECT;
message = "Teaches one Pokemon Reflect";
storeCost = 2000;
break;
case 34:
moveLearned = Pokemon.Move.BIDE;
message = "Teaches one Pokemon Bide";
storeCost = 1500;
break;
case 35:
moveLearned = Pokemon.Move.METRONOME;
message = "Teaches one Pokemon Metronome";
storeCost = 7500;
break;
case 36:
moveLearned = Pokemon.Move.SELFDESTRUCT;
message = "Teaches one Pokemon Self Destruct";
storeCost = 2000;
break;
case 37:
moveLearned = Pokemon.Move.EGG_BOMB;
message = "Teaches one Pokemon Egg Bomb";
storeCost = 1500;
break;
case 38:
moveLearned = Pokemon.Move.FIRE_BLAST;
message = "Teaches one Pokemon Fire Blast";
storeCost = 5000;
break;
case 39:
moveLearned = Pokemon.Move.SWIFT;
message = "Teaches one Pokemon Swift";
storeCost = 3500;
break;
case 40:
moveLearned = Pokemon.Move.SKULL_BASH;