added xarpus to aoe warnings (#136)

This commit is contained in:
gazivodag
2019-04-26 10:51:22 -04:00
committed by Kyleeld
parent 1c654aa995
commit f24b668364
4 changed files with 18 additions and 1 deletions

View File

@@ -71,6 +71,8 @@ public class ProjectileID
public static final int DEMONIC_GORILLA_MAGIC = 1304;
public static final int DEMONIC_GORILLA_BOULDER = 856;
public static final int XARPUS_ACID = 1555;
/**
* missing: marble gargoyle, superior dark beast
*/

View File

@@ -27,6 +27,8 @@ package net.runelite.client.plugins.aoewarnings;
import java.time.Duration;
import java.util.HashMap;
import java.util.Map;
import net.runelite.api.Projectile;
import net.runelite.api.ProjectileID;
public enum AoeProjectileInfo
@@ -92,8 +94,12 @@ public enum AoeProjectileInfo
/**
* the AOE of the Wintertodt snow that falls
*/
WINTERTODT_SNOW_FALL(1310, 4000, 3);
WINTERTODT_SNOW_FALL(1310, 4000, 3),
/**
* AOE of Xarpus throwing poison
*/
XARPUS_POISON_AOE(ProjectileID.XARPUS_ACID, 4000, 3);
/**
* The id of the projectile to trigger this AoE warning

View File

@@ -194,6 +194,13 @@ public interface AoeWarningConfig extends Config
return true;
}
@ConfigItem(
keyName = "isXarpusEnabled",
name = "Xarpus",
description = "Configures whether or not AOE Projectile Warnings for Xarpus are displayed"
)
default boolean isXarpusEnabled() { return true; }
@ConfigItem(
keyName = "outline",
name = "Display Outline",

View File

@@ -302,6 +302,8 @@ public class AoeWarningPlugin extends Plugin
return config.isCorpEnabled();
case WINTERTODT_SNOW_FALL:
return config.isWintertodtEnabled();
case XARPUS_POISON_AOE:
return config.isXarpusEnabled();
}
return false;