Esempio n. 1
0
        public override void patch()
        {
            if (!Main.config.mk2Enabled)
            {
                return;
            }

            TechType = register(L10n.ids_GravTrapMK2, L10n.ids_GravTrapMK2Description, TechType.Gravsphere);

            addToGroup(TechGroup.Workbench, TechCategory.Workbench);

            CraftNodesCustomOrder.addNode(CraftTree.Type.Workbench, "GravTrap", L10n.ids_GravTrapMenu, "", "FinsMenu", TechType.Gravsphere);
            addCraftingNodeTo(CraftTree.Type.Workbench, "GravTrap", TechType.None);

            setItemSize(2, 2);
            setCraftingTime(5f);
            setEquipmentType(EquipmentType.Hand);

            if (Main.config.mk2FragmentCountToUnlock > 0)
            {
                setFragmentToUnlock(TechType.GravSphereFragment, Main.config.mk2FragmentCountToUnlock, 5f);
            }
            else
            {
                setTechTypeForUnlock(TechType.Gravsphere);
            }
        }
Esempio n. 2
0
 protected void addCraftingNodeTo(CraftTree.Type craftTree, string craftPath, TechType after) =>
 CraftNodesCustomOrder.addNode(craftTree, TechType, craftPath, after);