aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java
diff options
context:
space:
mode:
authorLulonaut <67191924+Lulonaut@users.noreply.github.com>2022-02-12 15:51:37 +0100
committerGitHub <noreply@github.com>2022-02-13 01:51:37 +1100
commit93a1cb847bda30d976057954a408c615e0b08119 (patch)
treef77b9feb5047af85086fb760626c52946735a376 /src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java
parentf11f6953a207606ae920ede9e713467a47cfc018 (diff)
downloadnotenoughupdates-93a1cb847bda30d976057954a408c615e0b08119.tar.gz
notenoughupdates-93a1cb847bda30d976057954a408c615e0b08119.tar.bz2
notenoughupdates-93a1cb847bda30d976057954a408c615e0b08119.zip
Hide SlayerOverlay when not at a suitable location, made pet in inv force disabled and made new option to hide tooltip of pet (#79)
Co-authored-by: jani270 <jani270@gmx.de> Co-authored-by: nopo <noahogno@gmail.com>
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java
index 698cfad4..7a144d56 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java
@@ -62,7 +62,7 @@ public class PetInfoOverlay extends TextOverlay {
RARE(11, 2, 3, EnumChatFormatting.BLUE),
EPIC(16, 3, 4, EnumChatFormatting.DARK_PURPLE),
LEGENDARY(20, 4, 5, EnumChatFormatting.GOLD),
- MYTHIC(20, 4, 5, EnumChatFormatting.LIGHT_PURPLE);
+ MYTHIC(20, 5, 5, EnumChatFormatting.LIGHT_PURPLE);
public int petOffset;
public EnumChatFormatting chatFormatting;
@@ -833,8 +833,11 @@ public class PetInfoOverlay extends TextOverlay {
}
if (!NotEnoughUpdates.INSTANCE.config.petOverlay.petOverlayIcon) return;
-
- JsonObject petItem = NotEnoughUpdates.INSTANCE.manager.getItemInformation().get(currentPet.petType + ";" + currentPet.rarity.petId);
+ int mythicRarity = currentPet.rarity.petId;
+ if (currentPet.rarity.petId == 5) {
+ mythicRarity = 4;
+ }
+ JsonObject petItem = NotEnoughUpdates.INSTANCE.manager.getItemInformation().get(currentPet.petType + ";" + mythicRarity);
if (petItem != null) {
Vector2f position = getPosition(overlayWidth, overlayHeight);
int x = (int) position.x;