fixed suits

This commit is contained in:
Cheese 2015-12-11 21:11:35 +11:00
parent d7f39bdfd8
commit 40c2fdc3fc
7 changed files with 16 additions and 7 deletions

View File

@ -52,7 +52,8 @@ public class CostumePage extends GadgetPage
if (gadget instanceof OutfitRaveSuit) offset = 0;
else if (gadget instanceof OutfitSpaceSuit) offset = 1;
else offset = 2;
slot = offset + 1 + 18; //1 buffer to left, 18 = 2 lines down
if (outfitGadget.GetSlot() == OutfitGadget.ArmorSlot.Chest)

View File

@ -12,8 +12,10 @@ import org.bukkit.event.player.PlayerQuitEvent;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.LeatherArmorMeta;
import mineplex.core.common.util.LineFormat;
import mineplex.core.common.util.UtilGear;
import mineplex.core.common.util.UtilServer;
import mineplex.core.common.util.UtilText;
import mineplex.core.gadget.GadgetManager;
import mineplex.core.gadget.types.OutfitGadget;
import mineplex.core.updater.UpdateType;
@ -27,7 +29,9 @@ public class OutfitRaveSuit extends OutfitGadget
public OutfitRaveSuit(GadgetManager manager, String name,
int cost, ArmorSlot slot, Material mat, byte data)
{
super(manager, name, new String[] {ChatColor.RESET + "Wear the complete set for",ChatColor.RESET + "awesome bonus effects!", ChatColor.RESET + "Bonus coming soon..."}, cost, slot, mat, data);
super(manager, name,
UtilText.splitLineToArray("There's nothing more suitable for celebration than this high tech flashing outfit!", LineFormat.LORE),
cost, slot, mat, data);
}
@Override

View File

@ -4,6 +4,8 @@ import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import mineplex.core.common.util.LineFormat;
import mineplex.core.common.util.UtilText;
import mineplex.core.gadget.GadgetManager;
import mineplex.core.gadget.types.OutfitGadget;
@ -12,7 +14,9 @@ public class OutfitSpaceSuit extends OutfitGadget
public OutfitSpaceSuit(GadgetManager manager, String name,
int cost, ArmorSlot slot, Material mat, byte data)
{
super(manager, name, new String[] {ChatColor.RESET + "Wear the complete set for",ChatColor.RESET + "awesome bonus effects!", ChatColor.RESET + "Bonus coming soon..."}, cost, slot, mat, data);
super(manager, name,
UtilText.splitLineToArray("Designed specifically for combat in space for a sport known as \'Gravity\'", LineFormat.LORE),
cost, slot, mat, data);
}
@Override

View File

@ -4,7 +4,7 @@ import mineplex.core.gadget.GadgetManager;
import org.bukkit.Material;
public class OutfitSpaceSuitBoots extends OutfitRaveSuit
public class OutfitSpaceSuitBoots extends OutfitSpaceSuit
{
public OutfitSpaceSuitBoots(GadgetManager manager)

View File

@ -4,7 +4,7 @@ import mineplex.core.gadget.GadgetManager;
import org.bukkit.Material;
public class OutfitSpaceSuitChestplate extends OutfitRaveSuit
public class OutfitSpaceSuitChestplate extends OutfitSpaceSuit
{
public OutfitSpaceSuitChestplate(GadgetManager manager)

View File

@ -4,7 +4,7 @@ import mineplex.core.gadget.GadgetManager;
import org.bukkit.Material;
public class OutfitSpaceSuitHelmet extends OutfitRaveSuit
public class OutfitSpaceSuitHelmet extends OutfitSpaceSuit
{
public OutfitSpaceSuitHelmet(GadgetManager manager)

View File

@ -4,7 +4,7 @@ import mineplex.core.gadget.GadgetManager;
import org.bukkit.Material;
public class OutfitSpaceSuitLeggings extends OutfitRaveSuit
public class OutfitSpaceSuitLeggings extends OutfitSpaceSuit
{
public OutfitSpaceSuitLeggings(GadgetManager manager)