Added demonic gorilla AoE warnings

This commit is contained in:
Unknown
2019-06-09 13:09:09 +02:00
parent e4d6e9fe13
commit 6e602b9466
3 changed files with 46 additions and 2 deletions

View File

@@ -114,7 +114,12 @@ public enum AoeProjectileInfo
/**
* Cerbs fire
*/
CERB_FIRE(ProjectileID.CERB_FIRE, 2);
CERB_FIRE(ProjectileID.CERB_FIRE, 2),
/**
* Demonic gorilla
*/
DEMONIC_GORILLA_BOULDER(ProjectileID.DEMONIC_GORILLA_BOULDER, 1);
private static final Map<Integer, AoeProjectileInfo> map = new HashMap<>();

View File

@@ -818,4 +818,41 @@ public interface AoeWarningConfig extends Config
{
return false;
}
}
@ConfigItem(
keyName = "demonicGorillaStub",
name = "Demonic Gorilla",
description = "",
position = 64,
parent = "npcStub"
)
default Stub demonicGorillaStub()
{
return new Stub();
}
@ConfigItem(
keyName = "demonicGorilla",
name = "Demonic Gorilla",
description = "Configures if Demonic Gorilla boulder tile markers are displayed",
parent = "demonicGorillaStub",
position = 65
)
default boolean isDemonicGorillaEnabled()
{
return true;
}
@ConfigItem(
keyName = "demonicGorillaNotify",
name = "Demonic Gorilla Notify",
description = "Configures whether or not AoE Projectile Warnings for Demonic Gorilla boulders should trigger a notification",
parent = "demonicGorillaStub",
position = 66,
hide = "aoeNotifyAll"
)
default boolean isDemonicGorillaNotifyEnabled()
{
return false;
}
}

View File

@@ -330,6 +330,8 @@ public class AoeWarningPlugin extends Plugin
return notify ? config.isDrakeNotifyEnabled() : config.isDrakeEnabled();
case CERB_FIRE:
return notify ? config.isCerbFireNotifyEnabled() : config.isCerbFireEnabled();
case DEMONIC_GORILLA_BOULDER:
return notify ? config.isDemonicGorillaNotifyEnabled() : config.isDemonicGorillaEnabled();
}
return false;