ModernUO/Projects/UOContent/Engines/Craft/DefTailoring.cs
Kamron Batman 16bf3016fb
feat: Pre-Publish 14 Crafting (supersedes #2181, #2381) (#2476)
## Summary

Adds authentic **T2A-era (pre-UO:Third-Dawn) packet-based crafting menus**, enabled via the **`t2aCraftMenus` server setting** (read once at startup; default **`!Core.UOTD`**, so a pre-UO:TD shard gets them automatically). When enabled, double-clicking a crafting tool opens the classic `0x7C`/`0x7D` item-list menu — skill- and material-filtered — instead of the modern gump, covering all 8 tool/skill crafts (blacksmithy, tailoring, tinkering, carpentry, alchemy, bowcraft/fletching, inscription, cartography). It is **not** a runtime/admin-flippable feature flag.

This is the **definitive, reconciled** branch and **supersedes**:
- **#2181** (Delphi — `T2A_CraftingMenus`): the original effort.
- **#2381** (Jack/UOLL — `t2a_crafting_menus`): the research-grounded superset (Delphi's base + 12 corrections), rebased onto current `main`.

Original authorship is preserved across the cherry-picked history: foundation commit **@Delphi79**, mechanic fixes **@jackuoll (Jack Ward)**, reconciliation/fixes/docs mine.

## How it was built

1. Cherry-picked Jack's 13 commits onto current `main` (superset of Delphi's; only 2 trivial FeatureFlags conflicts).
2. Applied targeted fixes (below) with tests.
3. Full convention audit, build, and test pass.

Grounded in independent historical research plus Jack's deep dive. Maintainer reference: `dev-docs/t2a-crafting.md`.

## Mechanics (highlights)

- Double-click tool → target resource → skill/material-filtered menu → craft. Resource pre-selection per skill; make-last by targeting the tool.
- **Stacked-gem jewelry:** target a gem stack → the **full stack** is consumed and the piece is named by count ("a 1000 diamond ring"); count persists (`BaseJewel` serialization **v4 → v5**, new `_gemCount`).
- **Tool-less inscription & cartography** (skill-list invoked; no pen/sextant); inscription consumes reagents+scroll on success and failure, mana only on success.
- **Tailoring matching-hue consumption:** targeting hued cloth/leather consumes only that hue. Crafted items take color from their **`CraftResource`** (not the dyed hue), so dyed leather/cloth don't tint the product; in T2A only colored ingots/ore color items (metal armor/shields).
- **Half-resources on failed non-scroll crafts** (pre-UO:TD).
- **Maker's mark** always prompted for exceptional items, via the shared `QueryMakersMarkGump`.
- Server-side menu infra changes are additive (`ItemListEntry.CraftIndex`, `Entries` setter, `HasSent`).

## Notable changes on top of the cherry-pick

- **Toggle is a startup server setting, not a feature flag.** Removed `ContentFeatureFlags.T2ACraftMenus` (and its admin-flippable plumbing); the value is read once via `ServerConfiguration.GetSetting("t2aCraftMenus", !Core.UOTD)` into `T2ACraftSystem.Enabled`. Since the default tracks the era and it can't be flipped at runtime, there's no incoherent "menus-on / UO:TD-era" state.
- **Stacked-gem consumption (B3a/B3):** consume the full `PendingGemCount` (was deliberately consuming 1 while naming by the stack), null-safe gem type, plain-piece fallback + message. New `T2AJewelGemCraftTests`.
- **Convention audit:** `new List<Item>()` → `PooledRefList<Item>` on the hue-aware consume path; removed dead code.

## Decisions & deviations

- `make-last` kept as **QoL** (post-T2A gump-era feature).
- `half-on-failure` (non-scroll) kept as a **reconstruction** (not OSI-confirmed).
- **Stacked-gem** behavior set per shard authority (overrides the "single gem" reconstruction).
- **Cooking** out of scope (no T2A crafting menu existed for it).
- **No colored items from dyed materials:** crafted color comes from the `CraftResource` type. Pre-AOS leather has no colored variant, so leather is always uncolored; weapons retain resource color only in AOS+ (unchanged, intended).

## Test plan

- Automated: `dotnet build ModernUO.slnx -c Debug` clean; `dotnet test Projects/UOContent.Tests` → **421 passed** (incl. 3 new jewelry tests).
- Manual (needs a running T2A shard + client):
  - [ ] Each of the 8 skills opens the correct menu; empty-menu guard fires.
  - [ ] Make-last repeats the last craft (jewelry re-prompts gem).
  - [ ] Jewelry consumes the full targeted gem stack and names by count.
  - [ ] Cartography consumes blank maps only with T2A enabled / maps+scrolls when disabled.
  - [ ] Tailoring consumes only the targeted-hue material; crafted items are not tinted by dyed cloth/leather.
  - [ ] Maker's-mark prompt on exceptional.
  - [ ] Failed non-scroll craft consumes half resources.
  - [ ] Inscription: reagents+scroll on success/failure, mana only on success.
  - [ ] T2A disabled: gump crafting unchanged.

## Credits

Co-authored-by: @Delphi79
Co-authored-by: @jackuoll
2026-06-07 20:27:22 -07:00

678 lines
27 KiB
C#

using System;
using Server.Items;
namespace Server.Engines.Craft;
public class DefTailoring : CraftSystem
{
private static readonly Type[] tailorColorables =
{
typeof(GozaMatEastDeed), typeof(GozaMatSouthDeed),
typeof(SquareGozaMatEastDeed), typeof(SquareGozaMatSouthDeed),
typeof(BrocadeGozaMatEastDeed), typeof(BrocadeGozaMatSouthDeed),
typeof(BrocadeSquareGozaMatEastDeed), typeof(BrocadeSquareGozaMatSouthDeed)
};
public static void Initialize()
{
CraftSystem = new DefTailoring();
}
private DefTailoring() : base(1, 1, 1.25)
{
}
public override SkillName MainSkill => SkillName.Tailoring;
public override TextDefinition GumpTitle { get; } = 1044005; // Tailoring Menu
public static CraftSystem CraftSystem { get; private set; }
public override CraftECA ECA => CraftECA.ChanceMinusSixtyToFortyFive;
public override double GetChanceAtMin(CraftItem item) => 0.5;
public override int CanCraft(Mobile from, BaseTool tool, Type itemType)
{
if (tool?.Deleted != false || tool.UsesRemaining < 0)
{
return 1044038; // You have worn out your tool!
}
if (!BaseTool.CheckAccessible(tool, from))
{
return 1044263; // The tool must be on your person to use.
}
return 0;
}
public override bool RetainsColorFrom(CraftItem item, Type type)
{
if (type != typeof(Cloth) && type != typeof(UncutCloth))
{
return false;
}
type = item.ItemType;
var contains = false;
for (var i = 0; !contains && i < tailorColorables.Length; ++i)
{
contains = tailorColorables[i] == type;
}
return contains;
}
public override void PlayCraftEffect(Mobile from)
{
from.PlaySound(0x248);
}
public override int PlayEndingEffect(
Mobile from, bool failed, bool lostMaterial, bool toolBroken, int quality,
bool makersMark, CraftItem item
)
{
if (toolBroken)
{
from.SendLocalizedMessage(1044038); // You have worn out your tool
}
if (failed)
{
if (lostMaterial)
{
return 1044043; // You failed to create the item, and some of your materials are lost.
}
return 1044157; // You failed to create the item, but no materials were lost.
}
if (quality == 0)
{
return 502785; // You were barely able to make this item. It's quality is below average.
}
if (makersMark && quality == 2)
{
return 1044156; // You create an exceptional quality item and affix your maker's mark.
}
if (quality == 2)
{
return 1044155; // You create an exceptional quality item.
}
return 1044154; // You create the item.
}
public override void InitCraftList()
{
int index;
AddCraft(typeof(SkullCap), 1011375, 1025444, 0.0, 25.0, typeof(Cloth), 1044286, 2, 1044287);
AddCraft(typeof(Bandana), 1011375, 1025440, 0.0, 25.0, typeof(Cloth), 1044286, 2, 1044287);
AddCraft(typeof(FloppyHat), 1011375, 1025907, 6.2, 31.2, typeof(Cloth), 1044286, 11, 1044287);
AddCraft(typeof(Cap), 1011375, 1025909, 6.2, 31.2, typeof(Cloth), 1044286, 11, 1044287);
AddCraft(typeof(WideBrimHat), 1011375, 1025908, 6.2, 31.2, typeof(Cloth), 1044286, 12, 1044287);
AddCraft(typeof(StrawHat), 1011375, 1025911, 6.2, 31.2, typeof(Cloth), 1044286, 10, 1044287);
AddCraft(typeof(TallStrawHat), 1011375, 1025910, 6.7, 31.7, typeof(Cloth), 1044286, 13, 1044287);
AddCraft(typeof(WizardsHat), 1011375, 1025912, 7.2, 32.2, typeof(Cloth), 1044286, 15, 1044287);
AddCraft(typeof(Bonnet), 1011375, 1025913, 6.2, 31.2, typeof(Cloth), 1044286, 11, 1044287);
AddCraft(typeof(FeatheredHat), 1011375, 1025914, 6.2, 31.2, typeof(Cloth), 1044286, 12, 1044287);
AddCraft(typeof(TricorneHat), 1011375, 1025915, 6.2, 31.2, typeof(Cloth), 1044286, 12, 1044287);
AddCraft(typeof(JesterHat), 1011375, 1025916, 7.2, 32.2, typeof(Cloth), 1044286, 15, 1044287);
if (Core.AOS)
{
AddCraft(typeof(FlowerGarland), 1011375, 1028965, 10.0, 35.0, typeof(Cloth), 1044286, 5, 1044287);
}
if (Core.SE)
{
index = AddCraft(typeof(ClothNinjaHood), 1011375, 1030202, 80.0, 105.0, typeof(Cloth), 1044286, 13, 1044287);
SetNeededExpansion(index, Expansion.SE);
index = AddCraft(typeof(Kasa), 1011375, 1030211, 60.0, 85.0, typeof(Cloth), 1044286, 12, 1044287);
SetNeededExpansion(index, Expansion.SE);
}
AddCraft(typeof(Doublet), 1015269, 1028059, 0, 25.0, typeof(Cloth), 1044286, 8, 1044287);
AddCraft(typeof(Shirt), 1015269, 1025399, 20.7, 45.7, typeof(Cloth), 1044286, 8, 1044287);
AddCraft(typeof(FancyShirt), 1015269, 1027933, 24.8, 49.8, typeof(Cloth), 1044286, 8, 1044287);
AddCraft(typeof(Tunic), 1015269, 1028097, 00.0, 25.0, typeof(Cloth), 1044286, 12, 1044287);
AddCraft(typeof(Surcoat), 1015269, 1028189, 8.2, 33.2, typeof(Cloth), 1044286, 14, 1044287);
AddCraft(typeof(PlainDress), 1015269, 1027937, 12.4, 37.4, typeof(Cloth), 1044286, 10, 1044287);
AddCraft(typeof(FancyDress), 1015269, 1027935, 33.1, 58.1, typeof(Cloth), 1044286, 12, 1044287);
AddCraft(typeof(Cloak), 1015269, 1025397, 41.4, 66.4, typeof(Cloth), 1044286, 14, 1044287);
AddCraft(typeof(Robe), 1015269, 1027939, 53.9, 78.9, typeof(Cloth), 1044286, 16, 1044287);
AddCraft(typeof(JesterSuit), 1015269, 1028095, 8.2, 33.2, typeof(Cloth), 1044286, 24, 1044287);
if (Core.AOS)
{
AddCraft(typeof(FurCape), 1015269, 1028969, 35.0, 60.0, typeof(Cloth), 1044286, 13, 1044287);
AddCraft(typeof(GildedDress), 1015269, 1028973, 37.5, 62.5, typeof(Cloth), 1044286, 16, 1044287);
AddCraft(typeof(FormalShirt), 1015269, 1028975, 26.0, 51.0, typeof(Cloth), 1044286, 16, 1044287);
}
if (Core.SE)
{
index = AddCraft(
typeof(ClothNinjaJacket),
1015269,
1030207,
75.0,
100.0,
typeof(Cloth),
1044286,
12,
1044287
);
SetNeededExpansion(index, Expansion.SE);
index = AddCraft(typeof(Kamishimo), 1015269, 1030212, 75.0, 100.0, typeof(Cloth), 1044286, 15, 1044287);
SetNeededExpansion(index, Expansion.SE);
index = AddCraft(typeof(HakamaShita), 1015269, 1030215, 40.0, 65.0, typeof(Cloth), 1044286, 14, 1044287);
SetNeededExpansion(index, Expansion.SE);
index = AddCraft(typeof(MaleKimono), 1015269, 1030189, 50.0, 75.0, typeof(Cloth), 1044286, 16, 1044287);
SetNeededExpansion(index, Expansion.SE);
index = AddCraft(typeof(FemaleKimono), 1015269, 1030190, 50.0, 75.0, typeof(Cloth), 1044286, 16, 1044287);
SetNeededExpansion(index, Expansion.SE);
index = AddCraft(typeof(JinBaori), 1015269, 1030220, 30.0, 55.0, typeof(Cloth), 1044286, 12, 1044287);
SetNeededExpansion(index, Expansion.SE);
}
AddCraft(typeof(ShortPants), 1015279, 1025422, 24.8, 49.8, typeof(Cloth), 1044286, 6, 1044287);
AddCraft(typeof(LongPants), 1015279, 1025433, 24.8, 49.8, typeof(Cloth), 1044286, 8, 1044287);
AddCraft(typeof(Kilt), 1015279, 1025431, 20.7, 45.7, typeof(Cloth), 1044286, 8, 1044287);
AddCraft(typeof(Skirt), 1015279, 1025398, 29.0, 54.0, typeof(Cloth), 1044286, 10, 1044287);
if (Core.AOS)
{
AddCraft(typeof(FurSarong), 1015279, 1028971, 35.0, 60.0, typeof(Cloth), 1044286, 12, 1044287);
}
if (Core.SE)
{
index = AddCraft(typeof(Hakama), 1015279, 1030213, 50.0, 75.0, typeof(Cloth), 1044286, 16, 1044287);
SetNeededExpansion(index, Expansion.SE);
index = AddCraft(typeof(TattsukeHakama), 1015279, 1030214, 50.0, 75.0, typeof(Cloth), 1044286, 16, 1044287);
SetNeededExpansion(index, Expansion.SE);
}
AddCraft(typeof(BodySash), 1015283, 1025441, 4.1, 29.1, typeof(Cloth), 1044286, 4, 1044287);
AddCraft(typeof(HalfApron), 1015283, 1025435, 20.7, 45.7, typeof(Cloth), 1044286, 6, 1044287);
AddCraft(typeof(FullApron), 1015283, 1025437, 29.0, 54.0, typeof(Cloth), 1044286, 10, 1044287);
if (Core.SE)
{
index = AddCraft(typeof(Obi), 1015283, 1030219, 20.0, 45.0, typeof(Cloth), 1044286, 6, 1044287);
SetNeededExpansion(index, Expansion.SE);
}
if (Core.ML)
{
index = AddCraft(typeof(ElvenQuiver), 1015283, 1032657, 65.0, 115.0, typeof(Leather), 1044462, 28, 1044463);
AddRecipe(index, 501);
SetNeededExpansion(index, Expansion.ML);
index = AddCraft(typeof(QuiverOfFire), 1015283, 1073109, 65.0, 115.0, typeof(Leather), 1044462, 28, 1044463);
AddRes(index, typeof(FireRuby), 1032695, 15, 1042081);
AddRecipe(index, 502);
SetNeededExpansion(index, Expansion.ML);
index = AddCraft(typeof(QuiverOfIce), 1015283, 1073110, 65.0, 115.0, typeof(Leather), 1044462, 28, 1044463);
AddRes(index, typeof(WhitePearl), 1032694, 15, 1042081);
AddRecipe(index, 503);
SetNeededExpansion(index, Expansion.ML);
index = AddCraft(
typeof(QuiverOfBlight),
1015283,
1073111,
65.0,
115.0,
typeof(Leather),
1044462,
28,
1044463
);
AddRes(index, typeof(Blight), 1032675, 10, 1042081);
AddRecipe(index, 504);
SetNeededExpansion(index, Expansion.ML);
index = AddCraft(
typeof(QuiverOfLightning),
1015283,
1073112,
65.0,
115.0,
typeof(Leather),
1044462,
28,
1044463
);
AddRes(index, typeof(Corruption), 1032676, 10, 1042081);
AddRecipe(index, 505);
SetNeededExpansion(index, Expansion.ML);
}
AddCraft(typeof(OilCloth), 1015283, 1041498, 74.6, 99.6, typeof(Cloth), 1044286, 1, 1044287);
if (Core.SE)
{
index = AddCraft(typeof(GozaMatEastDeed), 1015283, 1030404, 55.0, 80.0, typeof(Cloth), 1044286, 25, 1044287);
SetNeededExpansion(index, Expansion.SE);
index = AddCraft(
typeof(GozaMatSouthDeed),
1015283,
1030405,
55.0,
80.0,
typeof(Cloth),
1044286,
25,
1044287
);
SetNeededExpansion(index, Expansion.SE);
index = AddCraft(
typeof(SquareGozaMatEastDeed),
1015283,
1030407,
55.0,
80.0,
typeof(Cloth),
1044286,
25,
1044287
);
SetNeededExpansion(index, Expansion.SE);
index = AddCraft(
typeof(SquareGozaMatSouthDeed),
1015283,
1030406,
55.0,
80.0,
typeof(Cloth),
1044286,
25,
1044287
);
SetNeededExpansion(index, Expansion.SE);
index = AddCraft(
typeof(BrocadeGozaMatEastDeed),
1015283,
1030408,
55.0,
80.0,
typeof(Cloth),
1044286,
25,
1044287
);
SetNeededExpansion(index, Expansion.SE);
index = AddCraft(
typeof(BrocadeGozaMatSouthDeed),
1015283,
1030409,
55.0,
80.0,
typeof(Cloth),
1044286,
25,
1044287
);
SetNeededExpansion(index, Expansion.SE);
index = AddCraft(
typeof(BrocadeSquareGozaMatEastDeed),
1015283,
1030411,
55.0,
80.0,
typeof(Cloth),
1044286,
25,
1044287
);
SetNeededExpansion(index, Expansion.SE);
index = AddCraft(
typeof(BrocadeSquareGozaMatSouthDeed),
1015283,
1030410,
55.0,
80.0,
typeof(Cloth),
1044286,
25,
1044287
);
SetNeededExpansion(index, Expansion.SE);
}
if (Core.AOS)
{
AddCraft(typeof(FurBoots), 1015288, 1028967, 50.0, 75.0, typeof(Cloth), 1044286, 12, 1044287);
}
if (Core.SE)
{
index = AddCraft(typeof(NinjaTabi), 1015288, 1030210, 70.0, 95.0, typeof(Cloth), 1044286, 10, 1044287);
SetNeededExpansion(index, Expansion.SE);
index = AddCraft(typeof(SamuraiTabi), 1015288, 1030209, 20.0, 45.0, typeof(Cloth), 1044286, 6, 1044287);
SetNeededExpansion(index, Expansion.SE);
}
AddCraft(typeof(Sandals), 1015288, 1025901, 12.4, 37.4, typeof(Leather), 1044462, 4, 1044463);
AddCraft(typeof(Shoes), 1015288, 1025904, 16.5, 41.5, typeof(Leather), 1044462, 6, 1044463);
AddCraft(typeof(Boots), 1015288, 1025899, 33.1, 58.1, typeof(Leather), 1044462, 8, 1044463);
AddCraft(typeof(ThighBoots), 1015288, 1025906, 41.4, 66.4, typeof(Leather), 1044462, 10, 1044463);
if (Core.ML)
{
index = AddCraft(
typeof(SpellWovenBritches),
1015293,
1072929,
92.5,
117.5,
typeof(Leather),
1044462,
15,
1044463
);
AddRes(index, typeof(EyeOfTheTravesty), 1032685, 1, 1044253);
AddRes(index, typeof(Putrefication), 1032678, 10, 1044253);
AddRes(index, typeof(Scourge), 1032677, 10, 1044253);
AddRareRecipe(index, 506);
ForceNonExceptional(index);
SetNeededExpansion(index, Expansion.ML);
index = AddCraft(
typeof(SongWovenMantle),
1015293,
1072931,
92.5,
117.5,
typeof(Leather),
1044462,
15,
1044463
);
AddRes(index, typeof(EyeOfTheTravesty), 1032685, 1, 1044253);
AddRes(index, typeof(Blight), 1032675, 10, 1044253);
AddRes(index, typeof(Muculent), 1032680, 10, 1044253);
AddRareRecipe(index, 507);
ForceNonExceptional(index);
SetNeededExpansion(index, Expansion.ML);
index = AddCraft(
typeof(StitchersMittens),
1015293,
1072932,
92.5,
117.5,
typeof(Leather),
1044462,
15,
1044463
);
AddRes(index, typeof(CapturedEssence), 1032686, 1, 1044253);
AddRes(index, typeof(Corruption), 1032676, 10, 1044253);
AddRes(index, typeof(Taint), 1032679, 10, 1044253);
AddRareRecipe(index, 508);
ForceNonExceptional(index);
SetNeededExpansion(index, Expansion.ML);
}
AddCraft(typeof(LeatherGorget), 1015293, 1025063, 53.9, 78.9, typeof(Leather), 1044462, 4, 1044463);
AddCraft(typeof(LeatherCap), 1015293, 1027609, 6.2, 31.2, typeof(Leather), 1044462, 2, 1044463);
AddCraft(typeof(LeatherGloves), 1015293, 1025062, 51.8, 76.8, typeof(Leather), 1044462, 3, 1044463);
AddCraft(typeof(LeatherArms), 1015293, 1025061, 53.9, 78.9, typeof(Leather), 1044462, 4, 1044463);
AddCraft(typeof(LeatherLegs), 1015293, 1025067, 66.3, 91.3, typeof(Leather), 1044462, 10, 1044463);
AddCraft(typeof(LeatherChest), 1015293, 1025068, 70.5, 95.5, typeof(Leather), 1044462, 12, 1044463);
if (Core.SE)
{
index = AddCraft(typeof(LeatherJingasa), 1015293, 1030177, 45.0, 70.0, typeof(Leather), 1044462, 4, 1044463);
SetNeededExpansion(index, Expansion.SE);
index = AddCraft(typeof(LeatherMempo), 1015293, 1030181, 80.0, 105.0, typeof(Leather), 1044462, 8, 1044463);
SetNeededExpansion(index, Expansion.SE);
index = AddCraft(typeof(LeatherDo), 1015293, 1030182, 75.0, 100.0, typeof(Leather), 1044462, 12, 1044463);
SetNeededExpansion(index, Expansion.SE);
index = AddCraft(
typeof(LeatherHiroSode),
1015293,
1030185,
55.0,
80.0,
typeof(Leather),
1044462,
5,
1044463
);
SetNeededExpansion(index, Expansion.SE);
index = AddCraft(
typeof(LeatherSuneate),
1015293,
1030193,
68.0,
93.0,
typeof(Leather),
1044462,
12,
1044463
);
SetNeededExpansion(index, Expansion.SE);
index = AddCraft(
typeof(LeatherHaidate),
1015293,
1030197,
68.0,
93.0,
typeof(Leather),
1044462,
12,
1044463
);
SetNeededExpansion(index, Expansion.SE);
index = AddCraft(
typeof(LeatherNinjaPants),
1015293,
1030204,
80.0,
105.0,
typeof(Leather),
1044462,
13,
1044463
);
SetNeededExpansion(index, Expansion.SE);
index = AddCraft(
typeof(LeatherNinjaJacket),
1015293,
1030206,
85.0,
110.0,
typeof(Leather),
1044462,
13,
1044463
);
SetNeededExpansion(index, Expansion.SE);
index = AddCraft(
typeof(LeatherNinjaBelt),
1015293,
1030203,
50.0,
75.0,
typeof(Leather),
1044462,
5,
1044463
);
SetNeededExpansion(index, Expansion.SE);
index = AddCraft(
typeof(LeatherNinjaMitts),
1015293,
1030205,
65.0,
90.0,
typeof(Leather),
1044462,
12,
1044463
);
SetNeededExpansion(index, Expansion.SE);
index = AddCraft(
typeof(LeatherNinjaHood),
1015293,
1030201,
90.0,
115.0,
typeof(Leather),
1044462,
14,
1044463
);
SetNeededExpansion(index, Expansion.SE);
}
if (Core.SA)
{
index = AddCraft(typeof(GargishLeatherArmsType1), 1015293, 1020769, 53.9, 78.9, typeof(Leather), 1044462, 8, 1044463);
SetNeededExpansion(index, Expansion.SA);
index = AddCraft(typeof(GargishLeatherArmsType2), 1015293, 1020770, 53.9, 78.9, typeof(Leather), 1044462, 8, 1044463);
SetNeededExpansion(index, Expansion.SA);
index = AddCraft(typeof(GargishLeatherKiltType1), 1015293, 1020784, 58.0, 83.0, typeof(Leather), 1044462, 8, 1044463);
SetNeededExpansion(index, Expansion.SA);
index = AddCraft(typeof(GargishLeatherKiltType2), 1015293, 1020785, 58.0, 83.0, typeof(Leather), 1044462, 8, 1044463);
SetNeededExpansion(index, Expansion.SA);
index = AddCraft(typeof(GargishLeatherLegsType1), 1015293, 1020773, 66.3, 91.3, typeof(Leather), 1044462, 8, 1044463);
SetNeededExpansion(index, Expansion.SA);
index = AddCraft(typeof(GargishLeatherLegsType2), 1015293, 1020774, 66.3, 91.3, typeof(Leather), 1044462, 8, 1044463);
SetNeededExpansion(index, Expansion.SA);
index = AddCraft(typeof(GargishLeatherChestType1), 1015293, 1020772, 70.5, 95.5, typeof(Leather), 1044462, 12, 1044463);
SetNeededExpansion(index, Expansion.SA);
index = AddCraft(typeof(GargishLeatherChestType2), 1015293, 1020771, 70.5, 95.5, typeof(Leather), 1044462, 12, 1044463);
SetNeededExpansion(index, Expansion.SA);
index = AddCraft(typeof(GargishLeatherWingArmor), 1015293, 1096662, 65.3, 90.3, typeof(Leather), 1044462, 8, 1044463);
SetNeededExpansion(index, Expansion.SA);
}
AddCraft(typeof(StuddedGorget), 1015300, 1025078, 78.8, 103.8, typeof(Leather), 1044462, 6, 1044463);
AddCraft(typeof(StuddedGloves), 1015300, 1025077, 82.9, 107.9, typeof(Leather), 1044462, 8, 1044463);
AddCraft(typeof(StuddedArms), 1015300, 1025076, 87.1, 112.1, typeof(Leather), 1044462, 10, 1044463);
AddCraft(typeof(StuddedLegs), 1015300, 1025082, 91.2, 116.2, typeof(Leather), 1044462, 12, 1044463);
AddCraft(typeof(StuddedChest), 1015300, 1025083, 94.0, 119.0, typeof(Leather), 1044462, 14, 1044463);
if (Core.SE)
{
index = AddCraft(typeof(StuddedMempo), 1015300, 1030216, 80.0, 105.0, typeof(Leather), 1044462, 8, 1044463);
SetNeededExpansion(index, Expansion.SE);
index = AddCraft(typeof(StuddedDo), 1015300, 1030183, 95.0, 120.0, typeof(Leather), 1044462, 14, 1044463);
SetNeededExpansion(index, Expansion.SE);
index = AddCraft(
typeof(StuddedHiroSode),
1015300,
1030186,
85.0,
110.0,
typeof(Leather),
1044462,
8,
1044463
);
SetNeededExpansion(index, Expansion.SE);
index = AddCraft(
typeof(StuddedSuneate),
1015300,
1030194,
92.0,
117.0,
typeof(Leather),
1044462,
14,
1044463
);
SetNeededExpansion(index, Expansion.SE);
index = AddCraft(
typeof(StuddedHaidate),
1015300,
1030198,
92.0,
117.0,
typeof(Leather),
1044462,
14,
1044463
);
SetNeededExpansion(index, Expansion.SE);
}
if (Core.SA)
{
index = AddCraft(typeof(GargishStuddedArmsType1), 1015300, 1020643, 87.1, 112.1, typeof(Leather), 1044462, 8, 1044463);
SetNeededExpansion(index, Expansion.SA);
index = AddCraft(typeof(GargishStuddedArmsType2), 1015300, 1020644, 87.1, 112.1, typeof(Leather), 1044462, 8, 1044463);
SetNeededExpansion(index, Expansion.SA);
index = AddCraft(typeof(GargishStuddedKiltType1), 1015300, 1020647, 89.5, 114.5, typeof(Leather), 1044462, 10, 1044463);
SetNeededExpansion(index, Expansion.SA);
index = AddCraft(typeof(GargishStuddedKiltType2), 1015300, 1020648, 89.5, 114.5, typeof(Leather), 1044462, 10, 1044463);
SetNeededExpansion(index, Expansion.SA);
index = AddCraft(typeof(GargishStuddedLegsType1), 1015300, 1020649, 91.2, 116.2, typeof(Leather), 1044462, 12, 1044463);
SetNeededExpansion(index, Expansion.SA);
index = AddCraft(typeof(GargishStuddedLegsType2), 1015300, 1020650, 91.2, 116.2, typeof(Leather), 1044462, 12, 1044463);
SetNeededExpansion(index, Expansion.SA);
index = AddCraft(typeof(GargishStuddedChestType1), 1015300, 1020645, 94.0, 119.0, typeof(Leather), 1044462, 14, 1044463);
SetNeededExpansion(index, Expansion.SA);
index = AddCraft(typeof(GargishStuddedChestType2), 1015300, 1020646, 94.0, 119.0, typeof(Leather), 1044462, 14, 1044463);
SetNeededExpansion(index, Expansion.SA);
}
AddCraft(typeof(LeatherShorts), 1015306, 1027168, 62.2, 87.2, typeof(Leather), 1044462, 8, 1044463);
AddCraft(typeof(LeatherSkirt), 1015306, 1027176, 58.0, 83.0, typeof(Leather), 1044462, 6, 1044463);
AddCraft(typeof(LeatherBustierArms), 1015306, 1027178, 58.0, 83.0, typeof(Leather), 1044462, 6, 1044463);
AddCraft(typeof(StuddedBustierArms), 1015306, 1027180, 82.9, 107.9, typeof(Leather), 1044462, 8, 1044463);
AddCraft(typeof(FemaleLeatherChest), 1015306, 1027174, 62.2, 87.2, typeof(Leather), 1044462, 8, 1044463);
AddCraft(typeof(FemaleStuddedChest), 1015306, 1027170, 87.1, 112.1, typeof(Leather), 1044462, 10, 1044463);
index = AddCraft(typeof(BoneHelm), 1049149, 1025206, 85.0, 110.0, typeof(Leather), 1044462, 4, 1044463);
AddRes(index, typeof(Bone), 1049064, 2, 1049063);
index = AddCraft(typeof(BoneGloves), 1049149, 1025205, 89.0, 114.0, typeof(Leather), 1044462, 6, 1044463);
AddRes(index, typeof(Bone), 1049064, 2, 1049063);
index = AddCraft(typeof(BoneArms), 1049149, 1025203, 92.0, 117.0, typeof(Leather), 1044462, 8, 1044463);
AddRes(index, typeof(Bone), 1049064, 4, 1049063);
index = AddCraft(typeof(BoneLegs), 1049149, 1025202, 95.0, 120.0, typeof(Leather), 1044462, 10, 1044463);
AddRes(index, typeof(Bone), 1049064, 6, 1049063);
index = AddCraft(typeof(BoneChest), 1049149, 1025199, 96.0, 121.0, typeof(Leather), 1044462, 12, 1044463);
AddRes(index, typeof(Bone), 1049064, 10, 1049063);
index = AddCraft(typeof(OrcHelm), 1049149, 1027947, 90.0, 115.0, typeof(Leather), 1044462, 6, 1044463);
AddRes(index, typeof(Bone), 1049064, 4, 1049063);
// Set the overridable material
SetSubRes(typeof(Leather), 1049150);
// Add every material you want the player to be able to choose from
// This will override the overridable material
AddSubRes(typeof(Leather), 1049150, 00.0, 1044462, 1049311);
AddSubRes(typeof(SpinedLeather), 1049151, 65.0, 1044462, 1049311);
AddSubRes(typeof(HornedLeather), 1049152, 80.0, 1044462, 1049311);
AddSubRes(typeof(BarbedLeather), 1049153, 99.0, 1044462, 1049311);
// Add Bolt of Cloth for pre-AOS expansions only
if (!Core.AOS)
{
index = AddCraft(typeof(BoltOfCloth), 1015283, 1044286, 0.0, 25.0, typeof(Cloth), 1044286, 50, 1044287);
// 1015283: group (Sashes & Aprons), 1044286: name (Cloth), 0.0-25.0: skill, 50: amount, 1044287: message
}
MarkOption = true;
Repair = Core.AOS;
CanEnhance = Core.AOS;
}
}