aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/fishing
diff options
context:
space:
mode:
authorLorenz <ESs95s3P5z8Pheb>2022-07-23 12:20:59 +0200
committerLorenz <ESs95s3P5z8Pheb>2022-07-23 12:20:59 +0200
commited493ed013e30897ce08506ebec1949fa8f814db (patch)
tree0661f1894ece6768fe6f710df66f28bfdd588a69 /src/main/java/at/hannibal2/skyhanni/fishing
parentbc34ae9dd4174bd07505cff44866f9545a981769 (diff)
downloadskyhanni-ed493ed013e30897ce08506ebec1949fa8f814db.tar.gz
skyhanni-ed493ed013e30897ce08506ebec1949fa8f814db.tar.bz2
skyhanni-ed493ed013e30897ce08506ebec1949fa8f814db.zip
code cleanup
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/fishing')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/fishing/SeaCreatureManager.kt12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/fishing/SeaCreatureManager.kt b/src/main/java/at/hannibal2/skyhanni/fishing/SeaCreatureManager.kt
index d26c999bd..eec0dd781 100644
--- a/src/main/java/at/hannibal2/skyhanni/fishing/SeaCreatureManager.kt
+++ b/src/main/java/at/hannibal2/skyhanni/fishing/SeaCreatureManager.kt
@@ -16,13 +16,13 @@ class SeaCreatureManager {
for (variant in data.entrySet().map { it.value.asJsonObject }) {
val chatColor = variant["chat_color"].asString
- for ((displayName, v) in variant["sea_creatures"].asJsonObject.entrySet()) {
- val value = v.asJsonObject
- val chatMessage = value["chat_message"].asString
- val fishingExperience = value["fishing_experience"].asInt
+ for ((displayName, value) in variant["sea_creatures"].asJsonObject.entrySet()) {
+ val seaCreature = value.asJsonObject
+ val chatMessage = seaCreature["chat_message"].asString
+ val fishingExperience = seaCreature["fishing_experience"].asInt
- val rare = if (value.has("rare")) {
- value["rare"].asBoolean
+ val rare = if (seaCreature.has("rare")) {
+ seaCreature["rare"].asBoolean
} else false
seaCreatureMap[chatMessage] = SeaCreature(displayName, fishingExperience, chatColor, rare)