Remove fire bomb notification (added in #513)

This commit is contained in:
Infinitay
2019-06-10 16:05:29 -04:00
parent c15c93f5e5
commit 97cd5e24d5
2 changed files with 0 additions and 38 deletions

View File

@@ -1,22 +0,0 @@
package net.runelite.client.plugins.vorkath;
import net.runelite.client.config.Config;
import net.runelite.client.config.ConfigGroup;
import net.runelite.client.config.ConfigItem;
/**
* Created on 6/4/2019.
*/
@ConfigGroup("vorkath")
public interface VorkathConfig extends Config
{
@ConfigItem(
keyName = "fireBombNotification",
name = "Fire Bomb Notification",
description = "Sends a system notification when Vorkath attack with his fire bomb"
)
default boolean shouldNotifyOnFireBomb()
{
return false;
}
}

View File

@@ -25,8 +25,6 @@
package net.runelite.client.plugins.vorkath; package net.runelite.client.plugins.vorkath;
import com.google.inject.Inject; import com.google.inject.Inject;
import com.google.inject.Provides;
import java.awt.TrayIcon;
import java.awt.image.BufferedImage; import java.awt.image.BufferedImage;
import lombok.Getter; import lombok.Getter;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
@@ -38,7 +36,6 @@ import net.runelite.api.events.NpcDespawned;
import net.runelite.api.events.NpcSpawned; import net.runelite.api.events.NpcSpawned;
import net.runelite.api.events.ProjectileMoved; import net.runelite.api.events.ProjectileMoved;
import net.runelite.client.Notifier; import net.runelite.client.Notifier;
import net.runelite.client.config.ConfigManager;
import net.runelite.client.eventbus.Subscribe; import net.runelite.client.eventbus.Subscribe;
import net.runelite.client.plugins.Plugin; import net.runelite.client.plugins.Plugin;
import net.runelite.client.plugins.PluginDescriptor; import net.runelite.client.plugins.PluginDescriptor;
@@ -62,9 +59,6 @@ public class VorkathPlugin extends Plugin
@Inject @Inject
private Client client; private Client client;
@Inject
private VorkathConfig config;
@Inject @Inject
private Notifier notifier; private Notifier notifier;
@@ -108,12 +102,6 @@ public class VorkathPlugin extends Plugin
overlayManager.add(SpawnOverlay); overlayManager.add(SpawnOverlay);
} }
@Provides
VorkathConfig provideConfig(ConfigManager configManager)
{
return configManager.getConfig(VorkathConfig.class);
}
@Override @Override
protected void shutDown() protected void shutDown()
{ {
@@ -173,10 +161,6 @@ public class VorkathPlugin extends Plugin
if (VorkathAttack.isBasicAttack(vorkathAttack.getProjectileID()) && vorkath.getAttacksLeft() > 0) if (VorkathAttack.isBasicAttack(vorkathAttack.getProjectileID()) && vorkath.getAttacksLeft() > 0)
{ {
vorkath.setAttacksLeft(vorkath.getAttacksLeft() - 1); vorkath.setAttacksLeft(vorkath.getAttacksLeft() - 1);
if (config.shouldNotifyOnFireBomb() && vorkathAttack == VorkathAttack.FIRE_BOMB)
{
notifier.notify("Vorkath used it's fire bomb attack!", TrayIcon.MessageType.WARNING);
}
} }
else if (vorkathAttack == VorkathAttack.ACID) else if (vorkathAttack == VorkathAttack.ACID)
{ {