Skip to content

Commit

Permalink
Added SAM/WAR self-buffs
Browse files Browse the repository at this point in the history
  • Loading branch information
xpdota committed Dec 7, 2021
1 parent 07e0ba2 commit dc4b632
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 7 deletions.
10 changes: 6 additions & 4 deletions reevent/src/main/java/gg/xp/reevent/scan/AutoHandlerScan.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@

import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream;

import static org.reflections.scanners.Scanners.MethodsAnnotated;
Expand All @@ -37,8 +39,8 @@ public AutoHandlerScan(AutoHandlerInstanceProvider instanceProvider, AutoHandler
public List<AutoHandler> build() {
log.info("Scanning packages");
List<AutoHandler> out = new ArrayList<>();
ClassLoader loader = new ForceReloadClassLoader();
ClassLoader oldLoader = Thread.currentThread().getContextClassLoader();
// ClassLoader loader = new ForceReloadClassLoader();
// ClassLoader oldLoader = Thread.currentThread().getContextClassLoader();
try {
// TODO: Reload of existing classes is broken because reloading basic classes such as 'Event'
// in a new classloader causes the JVM to no longer see it as the same class, causing signature
Expand Down Expand Up @@ -114,7 +116,7 @@ public List<AutoHandler> build() {
return out;
}
finally {
Thread.currentThread().setContextClassLoader(oldLoader);
// Thread.currentThread().setContextClassLoader(oldLoader);
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public DotRefreshReminderGui(DotRefreshReminders backend) {

@Override
public String getTabName() {
return "DoT Tracker";
return "DoT/Buff Tracker";
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,13 @@ private void getAndSort() {
}))
.forEach((k, v) -> {
if (v.size() == 1) {
out.add(new VisualDotInfo(v.get(0)));
BuffApplied thisBuff = v.get(0);
if (thisBuff.getTarget().isThePlayer()) {
out.add(new VisualDotInfo(thisBuff, thisBuff.getBuff().getName()));
}
else {
out.add(new VisualDotInfo(thisBuff));
}
}
else {
out.add(new VisualDotInfo(v.get(0), String.format("%s Targets", v.size())));
Expand Down
10 changes: 9 additions & 1 deletion xivdata/src/main/java/gg/xp/xivdata/jobs/Cooldown.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,18 @@ public enum Cooldown {
Tactician(MCH, 120.0, "Tactician", CooldownType.PARTY_TODO_CATEGORIZE_ME, 0x41f9, -1),



FOO(JobType.TANK, 30.0d, "Foo Buff", CooldownType.DEFENSIVE, 0x123, 0x456);

public enum CooldownType {
// TODO: change these to:
/*
Personal Mit,
Party Mit,
Personal Burst (both buff and damage CD),
Party Buff,
Personal Utility (lucid, etc),
Party utility (rescue, scholoton)
*/
DEFENSIVE,
OFFENSIVE,
PERSONAL,
Expand Down
4 changes: 4 additions & 0 deletions xivdata/src/main/java/gg/xp/xivdata/jobs/DotBuff.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ public enum DotBuff {
MNK_Demolish(MNK, "Demolish", 0xf6L),
NIN_ShadowFang(NIN, "Shadow Fang", 0x1fcL),
PLD_GoringBlade(PLD, "Goring Blade", 0x2d5L),
WAR_StormsEye(WAR, "Storm's Eye", 0x5AL),
SAM_Higanbana(SAM, "Higanbana", 0x4ccL),
// TODO: this isn't really a dot, but it's something you'd want 100% uptime on
SAM_Fugetsu(SAM, "Fugetsu", 0x512L),
SAM_Fuka(SAM, "Fuka", 0x513L),
SCH_Bio(SCH, "Bio/II/Biolysis", 0xb3L, 0xbdL, 0x767L),
// SMN_Bio(SMN, "Bio/II/III", 0xb3L, 0xbdL, 0x4beL),
// SMN_Miasma(SMN, "Miasma/II/III", 0xb4L, 0xbcL, 0x4bfL),
Expand Down

0 comments on commit dc4b632

Please sign in to comment.