Remove fire bomb notification (added in #513)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -25,8 +25,6 @@
|
||||
package net.runelite.client.plugins.vorkath;
|
||||
|
||||
import com.google.inject.Inject;
|
||||
import com.google.inject.Provides;
|
||||
import java.awt.TrayIcon;
|
||||
import java.awt.image.BufferedImage;
|
||||
import lombok.Getter;
|
||||
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.ProjectileMoved;
|
||||
import net.runelite.client.Notifier;
|
||||
import net.runelite.client.config.ConfigManager;
|
||||
import net.runelite.client.eventbus.Subscribe;
|
||||
import net.runelite.client.plugins.Plugin;
|
||||
import net.runelite.client.plugins.PluginDescriptor;
|
||||
@@ -62,9 +59,6 @@ public class VorkathPlugin extends Plugin
|
||||
@Inject
|
||||
private Client client;
|
||||
|
||||
@Inject
|
||||
private VorkathConfig config;
|
||||
|
||||
@Inject
|
||||
private Notifier notifier;
|
||||
|
||||
@@ -108,12 +102,6 @@ public class VorkathPlugin extends Plugin
|
||||
overlayManager.add(SpawnOverlay);
|
||||
}
|
||||
|
||||
@Provides
|
||||
VorkathConfig provideConfig(ConfigManager configManager)
|
||||
{
|
||||
return configManager.getConfig(VorkathConfig.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void shutDown()
|
||||
{
|
||||
@@ -173,10 +161,6 @@ public class VorkathPlugin extends Plugin
|
||||
if (VorkathAttack.isBasicAttack(vorkathAttack.getProjectileID()) && vorkath.getAttacksLeft() > 0)
|
||||
{
|
||||
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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user