Impling: crystal impling (#1139)
* Impling: add crystal impling Impling: add crystal impling * Update Impling.java * Update ImplingsConfig.java * Update ImplingsPlugin.java * Update Impling.java * Update Impling.java
This commit is contained in:
@@ -60,12 +60,33 @@ enum Impling
|
|||||||
|
|
||||||
NINJA(ImplingType.NINJA, NpcID.NINJA_IMPLING),
|
NINJA(ImplingType.NINJA, NpcID.NINJA_IMPLING),
|
||||||
NINJA_2(ImplingType.NINJA, NpcID.NINJA_IMPLING_1653),
|
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(ImplingType.DRAGON, NpcID.DRAGON_IMPLING),
|
||||||
DRAGON_2(ImplingType.DRAGON, NpcID.DRAGON_IMPLING_1654),
|
DRAGON_2(ImplingType.DRAGON, NpcID.DRAGON_IMPLING_1654),
|
||||||
|
|
||||||
LUCKY(ImplingType.LUCKY, NpcID.LUCKY_IMPLING),
|
LUCKY(ImplingType.LUCKY, NpcID.LUCKY_IMPLING),
|
||||||
LUCKY_2(ImplingType.LUCKY, NpcID.LUCKY_IMPLING_7302);
|
LUCKY_2(ImplingType.LUCKY, NpcID.LUCKY_IMPLING_7302);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private ImplingType implingType;
|
private ImplingType implingType;
|
||||||
private final int npcId;
|
private final int npcId;
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ enum ImplingType
|
|||||||
NATURE("Nature"),
|
NATURE("Nature"),
|
||||||
MAGPIE("Magpie"),
|
MAGPIE("Magpie"),
|
||||||
NINJA("Ninja"),
|
NINJA("Ninja"),
|
||||||
|
CRYSTAL("Crystal"),
|
||||||
DRAGON("Dragon"),
|
DRAGON("Dragon"),
|
||||||
LUCKY("Lucky");
|
LUCKY("Lucky");
|
||||||
|
|
||||||
|
|||||||
@@ -232,9 +232,31 @@ public interface ImplingsConfig extends Config
|
|||||||
{
|
{
|
||||||
return new Color(71, 70, 75);
|
return new Color(71, 70, 75);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
position = 19,
|
position = 19,
|
||||||
|
keyName = "showcrystal",
|
||||||
|
name = "Show Crystal implings",
|
||||||
|
description = "Configures whether or not Crystal impling tags 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(2, 255, 251);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ConfigItem(
|
||||||
|
position = 21,
|
||||||
keyName = "showdragon",
|
keyName = "showdragon",
|
||||||
name = "Show Dragon implings",
|
name = "Show Dragon implings",
|
||||||
description = "Configures whether or not Dragon impling tags are displayed"
|
description = "Configures whether or not Dragon impling tags are displayed"
|
||||||
@@ -245,7 +267,7 @@ public interface ImplingsConfig extends Config
|
|||||||
}
|
}
|
||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
position = 20,
|
position = 22,
|
||||||
keyName = "dragonColor",
|
keyName = "dragonColor",
|
||||||
name = "Dragon impling color",
|
name = "Dragon impling color",
|
||||||
description = "Text color for Dragon implings"
|
description = "Text color for Dragon implings"
|
||||||
@@ -256,7 +278,7 @@ public interface ImplingsConfig extends Config
|
|||||||
}
|
}
|
||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
position = 21,
|
position = 23,
|
||||||
keyName = "showlucky",
|
keyName = "showlucky",
|
||||||
name = "Show Lucky implings",
|
name = "Show Lucky implings",
|
||||||
description = "Configures whether or not Lucky impling tags are displayed"
|
description = "Configures whether or not Lucky impling tags are displayed"
|
||||||
@@ -267,7 +289,7 @@ public interface ImplingsConfig extends Config
|
|||||||
}
|
}
|
||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
position = 22,
|
position = 24,
|
||||||
keyName = "luckyColor",
|
keyName = "luckyColor",
|
||||||
name = "Lucky impling color",
|
name = "Lucky impling color",
|
||||||
description = "Text color for Lucky implings"
|
description = "Text color for Lucky implings"
|
||||||
@@ -278,7 +300,7 @@ public interface ImplingsConfig extends Config
|
|||||||
}
|
}
|
||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
position = 23,
|
position = 25,
|
||||||
keyName = "showspawn",
|
keyName = "showspawn",
|
||||||
name = "Show Spawn locations",
|
name = "Show Spawn locations",
|
||||||
description = "Configures whether or not spawn locations are displayed in Puro Puro"
|
description = "Configures whether or not spawn locations are displayed in Puro Puro"
|
||||||
@@ -289,7 +311,7 @@ public interface ImplingsConfig extends Config
|
|||||||
}
|
}
|
||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
position = 24,
|
position = 26,
|
||||||
keyName = "spawnColor",
|
keyName = "spawnColor",
|
||||||
name = "Impling spawn color",
|
name = "Impling spawn color",
|
||||||
description = "Text color for impling spawns in Puro Puro"
|
description = "Text color for impling spawns in Puro Puro"
|
||||||
@@ -300,7 +322,7 @@ public interface ImplingsConfig extends Config
|
|||||||
}
|
}
|
||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
position = 25,
|
position = 27,
|
||||||
keyName = "showname",
|
keyName = "showname",
|
||||||
name = "Show name on minimap",
|
name = "Show name on minimap",
|
||||||
description = "Configures whether or not impling names are displayed on minimap"
|
description = "Configures whether or not impling names are displayed on minimap"
|
||||||
@@ -311,7 +333,7 @@ public interface ImplingsConfig extends Config
|
|||||||
}
|
}
|
||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
position = 26,
|
position = 28,
|
||||||
keyName = "spawnColorDynamic",
|
keyName = "spawnColorDynamic",
|
||||||
name = "Impling dynamic spawn color",
|
name = "Impling dynamic spawn color",
|
||||||
description = "Text color for dynamic impling spawns in Puro Puro"
|
description = "Text color for dynamic impling spawns in Puro Puro"
|
||||||
|
|||||||
@@ -105,6 +105,8 @@ public class ImplingsPlugin extends Plugin
|
|||||||
private Color getMagpieColor;
|
private Color getMagpieColor;
|
||||||
private boolean showNinja;
|
private boolean showNinja;
|
||||||
private Color getNinjaColor;
|
private Color getNinjaColor;
|
||||||
|
private boolean showCrystal;
|
||||||
|
private Color getCrystalColor;
|
||||||
private boolean showDragon;
|
private boolean showDragon;
|
||||||
private Color getDragonColor;
|
private Color getDragonColor;
|
||||||
private boolean showLucky;
|
private boolean showLucky;
|
||||||
@@ -260,6 +262,8 @@ public class ImplingsPlugin extends Plugin
|
|||||||
return this.showMagpie;
|
return this.showMagpie;
|
||||||
case NINJA:
|
case NINJA:
|
||||||
return this.showNinja;
|
return this.showNinja;
|
||||||
|
case CRYSTAL:
|
||||||
|
return this.showCrystal;
|
||||||
case DRAGON:
|
case DRAGON:
|
||||||
return this.showDragon;
|
return this.showDragon;
|
||||||
case LUCKY:
|
case LUCKY:
|
||||||
@@ -303,6 +307,8 @@ public class ImplingsPlugin extends Plugin
|
|||||||
return this.getMagpieColor;
|
return this.getMagpieColor;
|
||||||
case NINJA:
|
case NINJA:
|
||||||
return this.getNinjaColor;
|
return this.getNinjaColor;
|
||||||
|
case CRYSTAL:
|
||||||
|
return this.getCrystalColor;
|
||||||
case DRAGON:
|
case DRAGON:
|
||||||
return this.getDragonColor;
|
return this.getDragonColor;
|
||||||
case LUCKY:
|
case LUCKY:
|
||||||
@@ -342,6 +348,8 @@ public class ImplingsPlugin extends Plugin
|
|||||||
this.getMagpieColor = config.getMagpieColor();
|
this.getMagpieColor = config.getMagpieColor();
|
||||||
this.showNinja = config.showNinja();
|
this.showNinja = config.showNinja();
|
||||||
this.getNinjaColor = config.getNinjaColor();
|
this.getNinjaColor = config.getNinjaColor();
|
||||||
|
this.showCrystal = config.showCrystal();
|
||||||
|
this.getCrystalColor = config.getCrystalColor();
|
||||||
this.showDragon = config.showDragon();
|
this.showDragon = config.showDragon();
|
||||||
this.getDragonColor = config.getDragonColor();
|
this.getDragonColor = config.getDragonColor();
|
||||||
this.showLucky = config.showLucky();
|
this.showLucky = config.showLucky();
|
||||||
|
|||||||
Reference in New Issue
Block a user