Resource icon

Portable Anvil, Forge and Soul Forge 1.0

Author
Iomega0318
Downloads
55
Views
2,430
First release
Last update

Ratings

0.00 star(s) 0 ratings
No permission to download Join the discussion Get support

More resources from Iomega0318

As this one is relatively simple I decided to release this here rather than point back to my site for download.

This is a portable anvil, forge and soul forge. All three items are copies of the distro versions of the item just set to movable true and renamed.

The files are drag and drop but there are 2 distro edits required for this to function, one for the forge and anvil and one for the soul forge.

For the forge and anvil in DefBlacksmithy.cs find:
C#:
Expand Collapse Copy
            if (anvil && forge)
            {
                return 0;
            }
add this below that:
C#:
Expand Collapse Copy
            if (from.Backpack.FindItemByType(typeof(PortableAnvil)) != null && from.Backpack.FindItemByType(typeof(PortableForge)) != null)
            {
                return 0;
            }

For the soul forge in BaseRunicTool.cs find:
C#:
Expand Collapse Copy
            foreach (Item item in eable)
            {
                if ((item.ItemID >= 0x4263 && item.ItemID <= 0x4272) || (item.ItemID >= 0x4277 && item.ItemID <= 0x4286) || (item.ItemID >= 17607 && item.ItemID <= 17610))
                {
                    if (!hasSkill)
                    {
                        from.SendLocalizedMessage(1152333); // You do not have enough Imbuing skill to re-forge items. Using standard Runic Crafting instead.
                        break;
                    }

                    from.Target = new RunicReforgingTarget(this);
                    from.SendLocalizedMessage(1152112); // Target the item to reforge.
                    eable.Free();
                    return;
                }
            }
add this below that:
C#:
Expand Collapse Copy
            if (from.Backpack.FindItemByType(typeof(PortableSoulForge)) != null)
            {
                if (!hasSkill)
                {
                    from.SendLocalizedMessage(1152333); // You do not have enough Imbuing skill to re-forge items. Using standard Runic Crafting instead.
                }
                else
                {
                    from.Target = new RunicReforgingTarget(this);
                    from.SendLocalizedMessage(1152112); // Target the item to reforge.
                    return;
                }
            }

This seems to work okay.
Let me know if you have any issues, thank you.

Donations

Total amount
$130.00
Goal
$500.00

Shards

Back