impling plugin: add Crystal implings

This commit is contained in:
David
2019-07-29 13:52:37 +01:00
committed by Adam
parent c2fe4c6d14
commit 9009e187de
4 changed files with 51 additions and 6 deletions

View File

@@ -61,6 +61,24 @@ enum Impling
NINJA(ImplingType.NINJA, NpcID.NINJA_IMPLING),
NINJA_2(ImplingType.NINJA, NpcID.NINJA_IMPLING_1653),
CRYSTAL(ImplingType.CRYSTAL, NpcID.CRYSTAL_IMPLING),
CRYSTAL_2(ImplingType.CRYSTAL, NpcID.CRYSTAL_IMPLING_8742),
CRYSTAL_3(ImplingType.CRYSTAL, NpcID.CRYSTAL_IMPLING_8743),
CRYSTAL_4(ImplingType.CRYSTAL, NpcID.CRYSTAL_IMPLING_8744),
CRYSTAL_5(ImplingType.CRYSTAL, NpcID.CRYSTAL_IMPLING_8745),
CRYSTAL_6(ImplingType.CRYSTAL, NpcID.CRYSTAL_IMPLING_8746),
CRYSTAL_7(ImplingType.CRYSTAL, NpcID.CRYSTAL_IMPLING_8747),
CRYSTAL_8(ImplingType.CRYSTAL, NpcID.CRYSTAL_IMPLING_8748),
CRYSTAL_9(ImplingType.CRYSTAL, NpcID.CRYSTAL_IMPLING_8749),
CRYSTAL_10(ImplingType.CRYSTAL, NpcID.CRYSTAL_IMPLING_8750),
CRYSTAL_11(ImplingType.CRYSTAL, NpcID.CRYSTAL_IMPLING_8751),
CRYSTAL_12(ImplingType.CRYSTAL, NpcID.CRYSTAL_IMPLING_8752),
CRYSTAL_13(ImplingType.CRYSTAL, NpcID.CRYSTAL_IMPLING_8753),
CRYSTAL_14(ImplingType.CRYSTAL, NpcID.CRYSTAL_IMPLING_8754),
CRYSTAL_15(ImplingType.CRYSTAL, NpcID.CRYSTAL_IMPLING_8755),
CRYSTAL_16(ImplingType.CRYSTAL, NpcID.CRYSTAL_IMPLING_8756),
CRYSTAL_17(ImplingType.CRYSTAL, NpcID.CRYSTAL_IMPLING_8757),
DRAGON(ImplingType.DRAGON, NpcID.DRAGON_IMPLING),
DRAGON_2(ImplingType.DRAGON, NpcID.DRAGON_IMPLING_1654),

View File

@@ -40,6 +40,7 @@ enum ImplingType
NATURE("Nature"),
MAGPIE("Magpie"),
NINJA("Ninja"),
CRYSTAL("Crystal"),
DRAGON("Dragon"),
LUCKY("Lucky");

View File

@@ -236,6 +236,28 @@ public interface ImplingsConfig extends Config
@ConfigItem(
position = 19,
keyName = "showCrystal",
name = "Show Crystal implings",
description = "Configures whether or not Crystal implings are displayed"
)
default boolean showCrystal()
{
return false;
}
@ConfigItem(
position = 20,
keyName = "crystalColor",
name = "Crystal impling color",
description = "Text color for Crystal implings"
)
default Color getCrystalColor()
{
return new Color(93, 188, 210);
}
@ConfigItem(
position = 21,
keyName = "showdragon",
name = "Show Dragon implings",
description = "Configures whether or not Dragon impling tags are displayed"
@@ -246,7 +268,7 @@ public interface ImplingsConfig extends Config
}
@ConfigItem(
position = 20,
position = 22,
keyName = "dragonColor",
name = "Dragon impling color",
description = "Text color for Dragon implings"
@@ -257,7 +279,7 @@ public interface ImplingsConfig extends Config
}
@ConfigItem(
position = 21,
position = 23,
keyName = "showlucky",
name = "Show Lucky implings",
description = "Configures whether or not Lucky impling tags are displayed"
@@ -268,7 +290,7 @@ public interface ImplingsConfig extends Config
}
@ConfigItem(
position = 22,
position = 24,
keyName = "luckyColor",
name = "Lucky impling color",
description = "Text color for Lucky implings"
@@ -279,7 +301,7 @@ public interface ImplingsConfig extends Config
}
@ConfigItem(
position = 23,
position = 25,
keyName = "showspawn",
name = "Show Spawn locations",
description = "Configures whether or not spawn locations are displayed in Puro Puro"
@@ -290,7 +312,7 @@ public interface ImplingsConfig extends Config
}
@ConfigItem(
position = 24,
position = 26,
keyName = "spawnColor",
name = "Impling spawn color",
description = "Text color for impling spawns in Puro Puro"
@@ -301,7 +323,7 @@ public interface ImplingsConfig extends Config
}
@ConfigItem(
position = 25,
position = 27,
keyName = "showname",
name = "Show name on minimap",
description = "Configures whether or not impling names are displayed on minimap"

View File

@@ -164,6 +164,8 @@ public class ImplingsPlugin extends Plugin
return config.showMagpie();
case NINJA:
return config.showNinja();
case CRYSTAL:
return config.showCrystal();
case DRAGON:
return config.showDragon();
case LUCKY:
@@ -202,6 +204,8 @@ public class ImplingsPlugin extends Plugin
return config.getMagpieColor();
case NINJA:
return config.getNinjaColor();
case CRYSTAL:
return config.getCrystalColor();
case DRAGON:
return config.getDragonColor();
case LUCKY: