Schematics basics finished, schematics are added in the item creation entry part, schematics are auto-created and assigned afterwards.
This commit is contained in:
@@ -11,6 +11,8 @@ import java.util.logging.Logger;
|
||||
|
||||
import com.wurmonline.server.Servers;
|
||||
import com.wurmonline.server.behaviours.Action;
|
||||
import com.wurmonline.server.combat.ArmourTemplate;
|
||||
import mod.sin.items.schematicitems.SchematicItems;
|
||||
import mod.sin.lib.Util;
|
||||
import mod.sin.items.caches.*;
|
||||
import org.gotti.wurmunlimited.modloader.ReflectionUtil;
|
||||
@@ -111,6 +113,7 @@ public class ItemMod {
|
||||
public static HolidaySpirit HOLIDAY_SPIRIT = new HolidaySpirit();
|
||||
public static WandPermaFrost WAND_PERMA_FROST = new WandPermaFrost();
|
||||
public static CrystalPermaFrost CRYSTAL_PERMA_FROST = new CrystalPermaFrost();
|
||||
public static SchematicItems SCHEMATIC_ITEMS = new SchematicItems();
|
||||
|
||||
public static void createItems(){
|
||||
logger.info("createItems()");
|
||||
@@ -154,6 +157,9 @@ public class ItemMod {
|
||||
CRYSTAL_PERMA_FROST.createTemplate();
|
||||
WAND_PERMA_FROST.createTemplate();
|
||||
|
||||
// This must come after any schematic based items have already been created.
|
||||
SCHEMATIC_ITEMS.createTemplate();
|
||||
|
||||
|
||||
// Arena Fragments
|
||||
KEY_FRAGMENT.createTemplate();
|
||||
@@ -214,6 +220,7 @@ public class ItemMod {
|
||||
ModActions.registerAction(new StableContractAction());
|
||||
ModActions.registerAction(new WoodEssenceAction());
|
||||
ModActions.registerAction(new ItemBonusRechargeAction());
|
||||
ModActions.registerAction(new ReadSchematicAction());
|
||||
}
|
||||
|
||||
public static void initCreationEntries(){
|
||||
@@ -285,7 +292,7 @@ public class ItemMod {
|
||||
logger.info("Beginning custom armour creation.");
|
||||
Map<Integer, Armour> armours = ReflectionUtil.getPrivateField(null, ReflectionUtil.getField(Armour.class, "armours"));
|
||||
|
||||
armours.put(SpectralBoot.templateId, new ArmourTemplate(SpectralBoot.templateId, ArmourTemplate.ARMOUR_TYPE_LEATHER_DRAGON, 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));
|
||||
|
||||
Reference in New Issue
Block a user