aoewarnings: Re-Added Superior Gargoyle avoidable ranged projectile. (#1079)

This commit is contained in:
Ian William O'Neill
2019-07-22 08:38:00 +01:00
committed by Kyleeld
parent 289038d9db
commit 512d53d04b
2 changed files with 43 additions and 0 deletions

View File

@@ -948,4 +948,41 @@ public interface AoeWarningConfig extends Config
{
return false;
}
@ConfigItem(
keyName = "marbleGargoyleStub",
name = "Marble Gargoyle",
description = "",
position = 72,
parent = "npcStub"
)
default Stub marbleGarboyleStub()
{
return new Stub();
}
@ConfigItem(
keyName = "marbleGargoyle",
name = "MarbleGargoyle",
description = "Configures if Marble Gargoyle ranged attack tile markers are displayed",
parent = "marbleGargoyleStub",
position = 73
)
default boolean isMarbleGargoyleEnabled()
{
return true;
}
@ConfigItem(
keyName = "marbleGargoyleNotify",
name = "Marble Gargoyle Notify",
description = "Configures whether or not AoE Projectile Warnings for Marble Gargoyle range attack should trigger a notification",
parent = "marbleGargoyleStub",
position = 73,
hide = "aoeNotifyAll"
)
default boolean isMarbleGargoyleNotifyEnabled()
{
return false;
}
}

View File

@@ -167,6 +167,8 @@ public class AoeWarningPlugin extends Plugin
private boolean configCerbFireNotifyEnabled;
private boolean configDemonicGorillaEnabled;
private boolean configDemonicGorillaNotifyEnabled;
private boolean configMarbleGargoyleEnabled;
private boolean configMarbleGargoyleNotifyEnabled;
@Override
protected void startUp() throws Exception
@@ -454,6 +456,8 @@ public class AoeWarningPlugin extends Plugin
return notify ? this.configCerbFireNotifyEnabled : this.configCerbFireEnabled;
case DEMONIC_GORILLA_BOULDER:
return notify ? this.configDemonicGorillaNotifyEnabled : this.configDemonicGorillaEnabled;
case MARBLE_GARGOYLE_AOE:
return notify ? this.configMarbleGargoyleNotifyEnabled : this.configMarbleGargoyleEnabled;
}
return false;
@@ -510,6 +514,8 @@ public class AoeWarningPlugin extends Plugin
this.configCerbFireNotifyEnabled = config.isCerbFireNotifyEnabled();
this.configDemonicGorillaEnabled = config.isDemonicGorillaEnabled();
this.configDemonicGorillaNotifyEnabled = config.isDemonicGorillaNotifyEnabled();
this.configMarbleGargoyleEnabled = config.isMarbleGargoyleEnabled();
this.configMarbleGargoyleNotifyEnabled = config.isMarbleGargoyleNotifyEnabled();
}
private void reset()