-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEncounter_Patchwerk.java
63 lines (59 loc) · 1.71 KB
/
Encounter_Patchwerk.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
//
// Decompiled by Procyon v0.5.36
//
package catus;
public class Encounter_Patchwerk extends Encounter
{
public static final String NAME = "Patchwerk";
int levelDelta;
int duration;
int variance;
long health;
boolean front;
boolean canBlock;
boolean canParry;
boolean canDodge;
int customArmor;
double earlyDeathPerc;
public Encounter_Patchwerk() {
super("Patchwerk");
}
@Override
public String getDesc() {
final StringBuilder sb = new StringBuilder();
sb.append("Standard single-target encounter with (+");
sb.append(this.levelDelta);
sb.append(") level boss");
if (this.health > 0L) {
sb.append(" with ");
sb.append(Fmt.bigNum((double)this.health));
sb.append(" health");
}
sb.append(" who dies when their health reaches ");
sb.append(String.format("%.1f%%", this.earlyDeathPerc));
if (this.health == 0L) {
sb.append(" after approximately ");
sb.append(Fmt.msDur(this.duration));
sb.append(" of combat");
}
sb.append('.');
if (this.front) {
sb.append(" The boss is attacked from the front.");
}
if (this.canBlock) {
sb.append(" The boss can block.");
}
if (this.canParry) {
sb.append(" The boss can parry.");
}
if (this.canDodge) {
sb.append(" The boss can dodge.");
}
if (this.customArmor >= 0) {
sb.append(" The boss has a custom armor value of ");
sb.append(this.customArmor);
sb.append('.');
}
return sb.toString();
}
}