aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-01-15 07:59:12 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-01-15 07:59:12 +0100
commit12611ae443b95fe186e5784ce48fcdb381985bf5 (patch)
tree86d9e35b73abc3a3bd161c5ab3129f065bb39ef6 /src/main/java/at/hannibal2
parent92a22cbae2f2df291f5f4e863f9ef1f63960166d (diff)
downloadskyhanni-12611ae443b95fe186e5784ce48fcdb381985bf5.tar.gz
skyhanni-12611ae443b95fe186e5784ce48fcdb381985bf5.tar.bz2
skyhanni-12611ae443b95fe186e5784ce48fcdb381985bf5.zip
Removed debugs, added middle item check for quest loader, added more quests (in repo soon)
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/DailyQuestHelper.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/QuestLoader.kt18
2 files changed, 15 insertions, 5 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/DailyQuestHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/DailyQuestHelper.kt
index d8be14639..dababf56e 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/DailyQuestHelper.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/DailyQuestHelper.kt
@@ -67,8 +67,6 @@ class DailyQuestHelper(private val reputationHelper: CrimsonIsleReputationHelper
currentlyInInventory += stack.stackSize
}
}
- println("currentlyInInventory: $currentlyInInventory")
-
val diff = currentlyInInventory - latestTrophyFishInInventory
if (diff < 1) return
LorenzUtils.debug("diff: $diff")
diff --git a/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/QuestLoader.kt b/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/QuestLoader.kt
index df8c7dede..54282e21b 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/QuestLoader.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/QuestLoader.kt
@@ -80,19 +80,28 @@ class QuestLoader(val dailyQuestHelper: DailyQuestHelper) {
state: QuestState,
amount: Int
): Quest {
+
+ //TODO add repo
+
//Trophy Fish
if (name == "Lavahorse") return TrophyFishQuest(name, state, amount)
+ if (name == "Gusher") return TrophyFishQuest(name, state, amount)
+ if (name == "Volcanic Stonefish") return TrophyFishQuest(name, state, amount)
//Rescue Mission
if (name == "Rescue Mission") return RescueMissionQuest(state)
//Boss
if (name == "Magma Boss") return BossQuest(name, state, amount)
+ if (name == "Mage Outlaw") return BossQuest(name, state, amount)
+ if (name == "Barbarian Duke X") return BossQuest(name, state, amount)
//Fetch
if (name == "Magmag") return FetchQuest(name, state, amount)
+ if (name == "Spectre Dust") return FetchQuest(name, state, amount)
+ if (name == "Tentacle Meat") return FetchQuest(name, state, amount)
- if (name.startsWith("Mastery Rank ")) {
+ if (name.startsWith("Mastery Rank ") || name.startsWith("Tenacity Rank ") || name.startsWith("Stamina Rank ")) {
val split = name.split(" Rank ")
val dojoName = split[0]
val dojoRankGoal = split[1]
@@ -121,10 +130,13 @@ class QuestLoader(val dailyQuestHelper: DailyQuestHelper) {
for (slot in chest.inventorySlots) {
if (slot == null) continue
if (slot.slotNumber != slot.slotIndex) continue
+
+ // Only checking the middle slot
+ if (slot.slotNumber != 22) continue
+
val stack = slot.stack ?: continue
val completed = stack.getLore().any { it.contains("Completed!") }
- println("completed: $completed")
if (completed) {
if (quest.state != QuestState.COLLECTED) {
quest.state = QuestState.COLLECTED
@@ -132,7 +144,7 @@ class QuestLoader(val dailyQuestHelper: DailyQuestHelper) {
}
}
- val accepted = !stack.getLore().any { it.contains("not accepted") }
+ val accepted = !stack.getLore().any { it.contains("Click to start!") }
if (accepted) {
if (quest.state == QuestState.NOT_ACCEPTED) {
quest.state = QuestState.ACCEPTED