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
|
package com.thatgravyboat.skyblockhud.location;
//setting down groundwork in case this ever gets used-based on gravy's past work, EndIslandHandler.java
public class CrimsonIsleHandler {
public enum bosses {
BLADESOUL("Bladesoul", 50000000),
MAGMABOSS("Old Dragon", 200000000),
MAGEOUTLAW("Wise Dragon", 70000000),
BARBARIANDUKEX("Unstable Dragon", 70000000),
ASHFANG("Young Dragon", 50000000),
// KUUDRABASIC("Strong Dragon", 9000000),
// KUUDRAHOT("Superior Dragon", 12000000),
// KUUDRABURNING("Superior Dragon", 12000000),
// KUUDRAFIERY("Superior Dragon", 12000000),
// KUUDRAINFERNAL("Superior Dragon", 12000000),
NOBOSS("", 0);
private final String displayName;
private final int maxHealth;
bosses(String displayName, int maxHealth) {
this.displayName = displayName;
this.maxHealth = maxHealth;
}
public String getDisplayName() {
return this.displayName;
}
public int getMaxHealth() {
return this.maxHealth;
}
public static bosses findBoss(String input) {
if (input.contains(" ")) {
try {
return bosses.valueOf(input.toLowerCase().replace(" ", "").toUpperCase());
} catch (IllegalArgumentException ignored) {
return NOBOSS;
}
} else {
try {
return bosses.valueOf(input);
} catch (IllegalArgumentException ignored) {
return NOBOSS;
}
}
}
}
private static bosses currentBoss = bosses.NOBOSS;
public static void setCurrentBoss(bosses boss) {
currentBoss = boss;
}
}
|