Add a group of Chrismtas/Winter Flags

This commit is contained in:
Sam 2017-11-15 15:52:28 +00:00 committed by Alexander Meech
parent f91c1d245f
commit 3a4bee2bcd
4 changed files with 58 additions and 3 deletions

View File

@ -27,6 +27,46 @@ public enum CountryFlag
new Pattern(BLACK, BORDER),
new Pattern(BLACK, STRIPE_BOTTOM)),
RUDOLPH("Rudolph", "Rudolph", SILVER,
new Pattern(BROWN, HALF_HORIZONTAL_MIRROR),
new Pattern(RED, TRIANGLES_BOTTOM),
new Pattern(BROWN, SQUARE_BOTTOM_RIGHT),
new Pattern(GREEN, CURLY_BORDER),
new Pattern(GREEN, CIRCLE_MIDDLE),
new Pattern(GREEN, TRIANGLE_TOP)),
CHRISTMAS_TREE("Christmas Tree", "Christmas Tree", GREEN,
new Pattern(LIGHT_BLUE, BRICKS),
new Pattern(BLUE, BRICKS),
new Pattern(LIME, GRADIENT),
new Pattern(BROWN, TRIANGLES_BOTTOM),
new Pattern(YELLOW, TRIANGLES_TOP),
new Pattern(RED, CURLY_BORDER)),
PRESENT("Present", "Present", WHITE,
new Pattern(BLACK, HALF_HORIZONTAL_MIRROR),
new Pattern(BLACK, HALF_HORIZONTAL),
new Pattern(WHITE, CREEPER),
new Pattern(SILVER, STRIPE_MIDDLE),
new Pattern(SILVER, STRAIGHT_CROSS),
new Pattern(GRAY, FLOWER)),
WREATH("Wreath", "Wreath", BROWN,
new Pattern(BLACK, BORDER),
new Pattern(BROWN, BORDER),
new Pattern(YELLOW, CREEPER),
new Pattern(RED, SKULL),
new Pattern(GREEN, FLOWER),
new Pattern(BROWN, CIRCLE_MIDDLE)),
SNOW_FLAKE("Snow Flake", "Snow Flake", BLUE,
new Pattern(WHITE, STRAIGHT_CROSS),
new Pattern(PINK, CROSS),
new Pattern(WHITE, CROSS),
new Pattern(BLUE, BORDER),
new Pattern(WHITE, FLOWER)),
// Country
AFGHANISTAN("Afghanistan", "Afghanistani", RED,
new Pattern(BLACK, STRIPE_TOP),
new Pattern(GREEN, STRIPE_BOTTOM),

View File

@ -753,7 +753,12 @@ public class GadgetManager extends MiniPlugin
// Flags
addGadget(new FlagGadget(this, FlagType.CANADA));
addGadget(new FlagGadget(this, FlagType.USA));
addGadget(new FlagGadget(this, FlagType.MINEPLEX));
addGadget(new FlagGadget(this, FlagType.RUDOLPH));
addGadget(new FlagGadget(this, FlagType.CHRISTMAS_TREE));
addGadget(new FlagGadget(this, FlagType.PRESENT));
addGadget(new FlagGadget(this, FlagType.WREATH));
addGadget(new FlagGadget(this, FlagType.SNOW_FLAKE));
// Kit Selectors
addGadget(new WaterWingsKitSelector(this));

View File

@ -1,12 +1,22 @@
package mineplex.core.gadget.gadgets.flag;
import mineplex.core.common.util.banner.CountryFlag;
import mineplex.core.gadget.util.CostConstants;
/**
* Cosmetic flags representing countries.
* Cosmetic flags represented using banners.
*/
public enum FlagType
{
MINEPLEX(CountryFlag.MINEPLEX, CostConstants.FOUND_IN_GINGERBREAD_CHESTS),
RUDOLPH(CountryFlag.RUDOLPH, CostConstants.FOUND_IN_GINGERBREAD_CHESTS),
CHRISTMAS_TREE(CountryFlag.CHRISTMAS_TREE, CostConstants.FOUND_IN_GINGERBREAD_CHESTS),
PRESENT(CountryFlag.PRESENT, CostConstants.FOUND_IN_GINGERBREAD_CHESTS),
WREATH(CountryFlag.WREATH, CostConstants.FOUND_IN_GINGERBREAD_CHESTS),
SNOW_FLAKE(CountryFlag.SNOW_FLAKE, CostConstants.FOUND_IN_GINGERBREAD_CHESTS),
// Country
AFGHANISTAN(CountryFlag.AFGHANISTAN, -1),
ALBANIA(CountryFlag.ALBANIA, -1),
ALGERIA(CountryFlag.ALGERIA, -1),

View File

@ -5,7 +5,7 @@ import mineplex.core.treasure.reward.RewardRarity;
public enum RewardType
{
//% Chances Mythic Legend Rare Uncommon Common
GAME_LOOT( 0.000001, 0.00001, 0.0001, 3, 0),
GAME_LOOT( 0.000001, 0.00001, 0.0001, 3, 30),
OLD_CHEST( 20, 0.06, 0.8, 16, 40),
ANCIENT_CHEST( 0, 2, 8, 32, 0),