Updated server/servermodlauncher, added arcanite necklace
This commit is contained in:
@@ -19,7 +19,6 @@ import org.gotti.wurmunlimited.modloader.classhooks.InvocationHandlerFactory;
|
||||
import org.gotti.wurmunlimited.modsupport.actions.ModActions;
|
||||
|
||||
import com.wurmonline.server.behaviours.ActionEntry;
|
||||
import com.wurmonline.server.combat.Armour;
|
||||
import com.wurmonline.server.combat.Weapon;
|
||||
import com.wurmonline.server.creatures.Creature;
|
||||
import com.wurmonline.server.items.Item;
|
||||
@@ -107,6 +106,8 @@ public class ItemMod {
|
||||
public static StableContract STABLE_CONTRACT = new StableContract();
|
||||
public static MoreAnchors MORE_ANCHORS = new MoreAnchors();
|
||||
public static WoodEssence WOOD_ESSENCE = new WoodEssence();
|
||||
public static ArcaniteNecklace ARCANITE_NECKLACE = new ArcaniteNecklace();
|
||||
public static ArcaniteNecklaceFocus ARCANITE_NECKLACE_FOCUS = new ArcaniteNecklaceFocus();
|
||||
|
||||
public static void createItems(){
|
||||
logger.info("createItems()");
|
||||
@@ -144,6 +145,8 @@ public class ItemMod {
|
||||
PIPING_KIT.createTemplate();
|
||||
STABLE_CONTRACT.createTemplate();
|
||||
WOOD_ESSENCE.createTemplate();
|
||||
ARCANITE_NECKLACE.createTemplate();
|
||||
ARCANITE_NECKLACE_FOCUS.createTemplate();
|
||||
|
||||
|
||||
// Arena Fragments
|
||||
@@ -228,6 +231,9 @@ public class ItemMod {
|
||||
//HUGE_CRATE.initCreationEntry();
|
||||
MORE_ANCHORS.initCreationEntry();
|
||||
WOOD_ESSENCE.initCreationEntry();
|
||||
ARCANITE_NECKLACE.initCreationEntry();
|
||||
ARCANITE_NECKLACE_FOCUS.initCreationEntry();
|
||||
|
||||
|
||||
// Spectral set
|
||||
/*SPECTRAL_BOOT.initCreationEntry();
|
||||
@@ -265,12 +271,12 @@ public class ItemMod {
|
||||
ItemList.staffSteel, false, true, 0.0f, false, false, CreationCategories.BLADES);*/
|
||||
}
|
||||
|
||||
public static void createCustomArmours(){
|
||||
/**public static void createCustomArmours(){
|
||||
try {
|
||||
logger.info("Beginning custom armour creation.");
|
||||
Map<Integer, Armour> armours = ReflectionUtil.getPrivateField(null, ReflectionUtil.getField(Armour.class, "armours"));
|
||||
|
||||
armours.put(SpectralBoot.templateId, new Armour(SpectralBoot.templateId, 0.002f, 0.3f));
|
||||
armours.put(SpectralBoot.templateId, new ArmourTemplate(SpectralBoot.templateId, ArmourTemplate.ARMOUR_TYPE_LEATHER_DRAGON, 0.3f));
|
||||
armours.put(SpectralCap.templateId, new Armour(SpectralCap.templateId, 0.003f, 0.3f));
|
||||
armours.put(SpectralGlove.templateId, new Armour(SpectralGlove.templateId, 0.002f, 0.3f));
|
||||
armours.put(SpectralHose.templateId, new Armour(SpectralHose.templateId, 0.0075f, 0.3f));
|
||||
@@ -288,7 +294,7 @@ public class ItemMod {
|
||||
} catch (IllegalArgumentException | IllegalAccessException | ClassCastException | NoSuchFieldException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}**/
|
||||
|
||||
public static void createCustomWeapons(){
|
||||
try {
|
||||
@@ -479,7 +485,7 @@ public class ItemMod {
|
||||
// Still need to override the method for getting spaceLeft
|
||||
|
||||
createCustomWeapons();
|
||||
createCustomArmours();
|
||||
//createCustomArmours();
|
||||
|
||||
// Make huge crates larger
|
||||
//ItemTemplate hugeCrate = ItemTemplateFactory.getInstance().getTemplate(HUGE_CRATE.getTemplateId());
|
||||
|
||||
Reference in New Issue
Block a user