-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSnorlax.java
80 lines (74 loc) · 1.5 KB
/
Snorlax.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
import cs1.Keyboard;
public class Snorlax extends Pokemon {
public Snorlax(){
_hp = 160;
_atk = 110;
_spatk = 65;
_def = 65;
_spdef = 110;
_spd = 30;
acc = 100;
_type = "normal";
type = "normal";
_type2 = "";
name = "Snorlax";
updateStats();
heal();
allMoves = new String[] {"Headbutt","Amnesia","Body Slam","Harden","Double-Edge","Hyper Beam"};
levelLearn = new int[] {1,1,35,41,48,56};
}
public Snorlax(int level){
this();
lvl = level;
updateStats();
heal();
giveMoves(level);
}
public void name(int level) throws InterruptedException {
}
public void moves(int pick, Pokemon enemy) {
String move = moveSet[pick - 1];
if (move.equals("Headbutt")){
normal = true;
setType("normal");
power = 70;
acc = 100;
}
if (move.equals("Amnesia")){
buff = true;
buffStat = "spdef";
buffNum = 2;
acc = 100;
}
if (move.equals("Body Slam")){
normal = true;
setType("normal");
power = 85;
acc = 100;
if (Math.random()*101 <= 30) {
status = true;
statusName = "paralysis";
}
}
if (move.equals("Harden")) {
buff = true;
buffStat = "def";
buffNum = 1;
acc = 100;
}
if (move.equals("Double-Edge")) {
normal = true;
setType("normal");
power = 100;
acc = 100;
lowerHp(10);
System.out.println(name + " has taken 10 damage from recoil!");
}
if (move.equals("Hyper Beam")) {
special = true;
setType("normal");
power = 150;
acc = 50;
}
}
}