RynthSuite as of 2026-09-26 (internal 55483fb): metaf Not, crafting from the world database (Prismatic first), heal stall fix, use hints
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
bc0d4338f3
commit
385eeed138
8 changed files with 729 additions and 165 deletions
322
Plugins/RynthCore.Plugin.RynthAi/Combat/AmmoRecipes.Data.cs
Normal file
322
Plugins/RynthCore.Plugin.RynthAi/Combat/AmmoRecipes.Data.cs
Normal file
|
|
@ -0,0 +1,322 @@
|
|||
// <auto-generated>
|
||||
// Generated by Tools/gen-ammo-recipes.py from the ACE world database
|
||||
// (recipe + cook_book, skill 37 = Fletching). Do not edit by hand: re-export and
|
||||
// re-run the script. Sorted by difficulty, highest first.
|
||||
// </auto-generated>
|
||||
|
||||
namespace RynthCore.Plugin.RynthAi;
|
||||
|
||||
public static partial class AmmoRecipes
|
||||
{
|
||||
/// <summary>All 307 fletching combines that make ammo, hardest (best) first.</summary>
|
||||
public static readonly AmmoRecipe[] All =
|
||||
{
|
||||
new("Wrapped Bundle of Deadly Prismatic Arrowheads", "Wrapped Bundle of Arrowshafts", "Deadly Prismatic Arrow", WeaponCategory.Bow, 400),
|
||||
new("Wrapped Bundle of Deadly Prismatic Arrowheads", "Wrapped Bundle of Quarrelshafts", "Deadly Prismatic Quarrel", WeaponCategory.Crossbow, 400),
|
||||
new("Wrapped Bundle of Deadly Prismatic Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Deadly Prismatic Atlatl Dart", WeaponCategory.Atlatl, 390),
|
||||
new("Bundle of Deadly Prismatic Arrowheads", "Bundle of Atlatl Dart Shafts", "Deadly Prismatic Atlatl Dart", WeaponCategory.Atlatl, 385),
|
||||
new("Bundle of Deadly Prismatic Arrowheads", "Bundle of Arrowshafts", "Deadly Prismatic Arrow", WeaponCategory.Bow, 385),
|
||||
new("Bundle of Deadly Prismatic Arrowheads", "Bundle of Quarrelshafts", "Deadly Prismatic Quarrel", WeaponCategory.Crossbow, 385),
|
||||
new("Wrapped Bundle of Greater Prismatic Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Greater Prismatic Atlatl Dart", WeaponCategory.Atlatl, 375),
|
||||
new("Wrapped Bundle of Greater Prismatic Arrowheads", "Wrapped Bundle of Arrowshafts", "Greater Prismatic Arrow", WeaponCategory.Bow, 375),
|
||||
new("Wrapped Bundle of Greater Prismatic Arrowheads", "Wrapped Bundle of Quarrelshafts", "Greater Prismatic Quarrel", WeaponCategory.Crossbow, 375),
|
||||
new("Bundle of Greater Prismatic Arrowheads", "Bundle of Atlatl Dart Shafts", "Greater Prismatic Atlatl Dart", WeaponCategory.Atlatl, 370),
|
||||
new("Bundle of Greater Prismatic Arrowheads", "Bundle of Arrowshafts", "Greater Prismatic Arrow", WeaponCategory.Bow, 370),
|
||||
new("Bundle of Greater Prismatic Arrowheads", "Bundle of Quarrelshafts", "Greater Prismatic Quarrel", WeaponCategory.Crossbow, 370),
|
||||
new("Wrapped Bundle of Greater Deadly Armor Piercing Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Greater Deadly Armor Piercing Atlatl Dart", WeaponCategory.Atlatl, 325),
|
||||
new("Wrapped Bundle of Greater Deadly Broad Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Greater Deadly Broadhead Atlatl Dart", WeaponCategory.Atlatl, 325),
|
||||
new("Wrapped Bundle of Greater Deadly Frog Crotch Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Greater Deadly Frog Crotch Atlatl Dart", WeaponCategory.Atlatl, 325),
|
||||
new("Wrapped Bundle of Greater Deadly Broad Arrowheads", "Wrapped Bundle of Arrowshafts", "Deadly Broadhead Arrow", WeaponCategory.Bow, 325),
|
||||
new("Wrapped Bundle of Greater Deadly Armor Piercing Arrowheads", "Wrapped Bundle of Arrowshafts", "Greater Deadly Armor Piercing Arrow", WeaponCategory.Bow, 325),
|
||||
new("Wrapped Bundle of Greater Deadly Frog Crotch Arrowheads", "Wrapped Bundle of Arrowshafts", "Greater Deadly Frog Crotch Arrow", WeaponCategory.Bow, 325),
|
||||
new("Wrapped Bundle of Greater Deadly Armor Piercing Arrowheads", "Wrapped Bundle of Quarrelshafts", "Greater Deadly Armor Piercing Quarrel", WeaponCategory.Crossbow, 325),
|
||||
new("Wrapped Bundle of Greater Deadly Broad Arrowheads", "Wrapped Bundle of Quarrelshafts", "Greater Deadly Broadhead Quarrel", WeaponCategory.Crossbow, 325),
|
||||
new("Wrapped Bundle of Greater Deadly Frog Crotch Arrowheads", "Wrapped Bundle of Quarrelshafts", "Greater Deadly Frog Crotch Quarrel", WeaponCategory.Crossbow, 325),
|
||||
new("Wrapped Bundle of Greater Deadly Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Greater Deadly Atlatl Dart", WeaponCategory.Atlatl, 320),
|
||||
new("Wrapped Bundle of Greater Deadly Blunt Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Greater Deadly Blunt Atlatl Dart", WeaponCategory.Atlatl, 320),
|
||||
new("Wrapped Bundle of Greater Deadly Arrowheads", "Wrapped Bundle of Arrowshafts", "Deadly Arrow", WeaponCategory.Bow, 320),
|
||||
new("Wrapped Bundle of Greater Deadly Blunt Arrowheads", "Wrapped Bundle of Arrowshafts", "Greater Deadly Blunt Arrow", WeaponCategory.Bow, 320),
|
||||
new("Wrapped Bundle of Greater Deadly Blunt Arrowheads", "Wrapped Bundle of Quarrelshafts", "Greater Deadly Blunt Quarrel", WeaponCategory.Crossbow, 320),
|
||||
new("Wrapped Bundle of Greater Deadly Arrowheads", "Wrapped Bundle of Quarrelshafts", "Greater Deadly Quarrel", WeaponCategory.Crossbow, 320),
|
||||
new("Wrapped Bundle of Burning Sands Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Burning Sands Atlatl Dart", WeaponCategory.Atlatl, 300),
|
||||
new("Wrapped Bundle of Gear Blade Slashing Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Gear Blade Slashing Atlatl Dart", WeaponCategory.Atlatl, 300),
|
||||
new("Wrapped Bundle of Olthoi Acid Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Olthoi Acid Atlatl Dart", WeaponCategory.Atlatl, 300),
|
||||
new("Wrapped Bundle of Raider Lightning Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Raider Lightning Atlatl Dart", WeaponCategory.Atlatl, 300),
|
||||
new("Wrapped Bundle of Burning Sands Arrowheads", "Wrapped Bundle of Arrowshafts", "Burning Sands Arrow", WeaponCategory.Bow, 300),
|
||||
new("Wrapped Bundle of Gear Blade Slashing Arrowheads", "Wrapped Bundle of Arrowshafts", "Gear Blade Slashing Arrow", WeaponCategory.Bow, 300),
|
||||
new("Wrapped Bundle of Olthoi Acid Arrowheads", "Wrapped Bundle of Arrowshafts", "Olthoi Acid Arrow", WeaponCategory.Bow, 300),
|
||||
new("Wrapped Bundle of Raider Lightning Arrowheads", "Wrapped Bundle of Arrowshafts", "Raider Lightning Arrow", WeaponCategory.Bow, 300),
|
||||
new("Bundle of Greater Deadly Armor Piercing Arrowheads", "Bundle of Atlatl Dart Shafts", "Greater Deadly Armor Piercing Atlatl Dart", WeaponCategory.Atlatl, 275),
|
||||
new("Bundle of Greater Deadly Frog Crotch Arrowheads", "Bundle of Atlatl Dart Shafts", "Greater Deadly Frog Crotch Atlatl Dart", WeaponCategory.Atlatl, 275),
|
||||
new("Bundle of Greater Deadly Armor Piercing Arrowheads", "Bundle of Arrowshafts", "Greater Deadly Armor Piercing Arrow", WeaponCategory.Bow, 275),
|
||||
new("Bundle of Greater Deadly Frog Crotch Arrowheads", "Bundle of Arrowshafts", "Greater Deadly Frog Crotch Arrow", WeaponCategory.Bow, 275),
|
||||
new("Wrapped Bundle of Prismatic Arrowheads", "Wrapped Bundle of Arrowshafts", "Prismatic Arrow", WeaponCategory.Bow, 275),
|
||||
new("Bundle of Greater Deadly Armor Piercing Arrowheads", "Bundle of Quarrelshafts", "Greater Deadly Armor Piercing Quarrel", WeaponCategory.Crossbow, 275),
|
||||
new("Bundle of Greater Deadly Frog Crotch Arrowheads", "Bundle of Quarrelshafts", "Greater Deadly Frog Crotch Quarrel", WeaponCategory.Crossbow, 275),
|
||||
new("Bundle of Greater Deadly Arrowheads", "Bundle of Atlatl Dart Shafts", "Greater Deadly Atlatl Dart", WeaponCategory.Atlatl, 260),
|
||||
new("Bundle of Greater Deadly Blunt Arrowheads", "Bundle of Atlatl Dart Shafts", "Greater Deadly Blunt Atlatl Dart", WeaponCategory.Atlatl, 260),
|
||||
new("Bundle of Greater Deadly Broad Arrowheads", "Bundle of Atlatl Dart Shafts", "Greater Deadly Broadhead Atlatl Dart", WeaponCategory.Atlatl, 260),
|
||||
new("Bundle of Greater Deadly Arrowheads", "Bundle of Arrowshafts", "Deadly Arrow", WeaponCategory.Bow, 260),
|
||||
new("Bundle of Greater Deadly Broad Arrowheads", "Bundle of Arrowshafts", "Deadly Broadhead Arrow", WeaponCategory.Bow, 260),
|
||||
new("Bundle of Greater Deadly Blunt Arrowheads", "Bundle of Arrowshafts", "Greater Deadly Blunt Arrow", WeaponCategory.Bow, 260),
|
||||
new("Bundle of Greater Deadly Blunt Arrowheads", "Bundle of Quarrelshafts", "Greater Deadly Blunt Quarrel", WeaponCategory.Crossbow, 260),
|
||||
new("Bundle of Greater Deadly Broad Arrowheads", "Bundle of Quarrelshafts", "Greater Deadly Broadhead Quarrel", WeaponCategory.Crossbow, 260),
|
||||
new("Bundle of Greater Deadly Arrowheads", "Bundle of Quarrelshafts", "Greater Deadly Quarrel", WeaponCategory.Crossbow, 260),
|
||||
new("Infinite Deadly Acid Arrowheads", "Bundle of Atlatl Dart Shafts", "Deadly Acid Atlatl Dart", WeaponCategory.Atlatl, 250),
|
||||
new("Infinite Deadly Acid Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Deadly Acid Atlatl Dart", WeaponCategory.Atlatl, 250),
|
||||
new("Wrapped Bundle of Deadly Acid Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Deadly Acid Atlatl Dart", WeaponCategory.Atlatl, 250),
|
||||
new("Infinite Deadly Armor Piercing Arrowheads", "Bundle of Atlatl Dart Shafts", "Deadly Armor Piercing Atlatl Dart", WeaponCategory.Atlatl, 250),
|
||||
new("Infinite Deadly Blunt Arrowheads", "Bundle of Atlatl Dart Shafts", "Deadly Blunt Atlatl Dart", WeaponCategory.Atlatl, 250),
|
||||
new("Infinite Deadly Broad Arrowheads", "Bundle of Atlatl Dart Shafts", "Deadly Broadhead Atlatl Dart", WeaponCategory.Atlatl, 250),
|
||||
new("Infinite Deadly Fire Arrowheads", "Bundle of Atlatl Dart Shafts", "Deadly Fire Atlatl Dart", WeaponCategory.Atlatl, 250),
|
||||
new("Infinite Deadly Fire Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Deadly Fire Atlatl Dart", WeaponCategory.Atlatl, 250),
|
||||
new("Wrapped Bundle of Deadly Fire Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Deadly Fire Atlatl Dart", WeaponCategory.Atlatl, 250),
|
||||
new("Infinite Deadly Frog-Crotch Arrowheads", "Bundle of Atlatl Dart Shafts", "Deadly Frog Crotch Atlatl Dart", WeaponCategory.Atlatl, 250),
|
||||
new("Infinite Deadly Frost Arrowheads", "Bundle of Atlatl Dart Shafts", "Deadly Frost Atlatl Dart", WeaponCategory.Atlatl, 250),
|
||||
new("Infinite Deadly Frost Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Deadly Frost Atlatl Dart", WeaponCategory.Atlatl, 250),
|
||||
new("Wrapped Bundle of Deadly Frost Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Deadly Frost Atlatl Dart", WeaponCategory.Atlatl, 250),
|
||||
new("Infinite Deadly Lightning Arrowheads", "Bundle of Atlatl Dart Shafts", "Deadly Lightning Atlatl Dart", WeaponCategory.Atlatl, 250),
|
||||
new("Infinite Deadly Lightning Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Deadly Lightning Atlatl Dart", WeaponCategory.Atlatl, 250),
|
||||
new("Wrapped Bundle of Deadly Lightning Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Deadly Lightning Atlatl Dart", WeaponCategory.Atlatl, 250),
|
||||
new("Infinite Deadly Acid Arrowheads", "Bundle of Arrowshafts", "Deadly Acid Arrow", WeaponCategory.Bow, 250),
|
||||
new("Infinite Deadly Acid Arrowheads", "Wrapped Bundle of Arrowshafts", "Deadly Acid Arrow", WeaponCategory.Bow, 250),
|
||||
new("Wrapped Bundle of Deadly Acid Arrowheads", "Wrapped Bundle of Arrowshafts", "Deadly Acid Arrow", WeaponCategory.Bow, 250),
|
||||
new("Infinite Deadly Armor Piercing Arrowheads", "Bundle of Arrowshafts", "Deadly Armor Piercing Arrow", WeaponCategory.Bow, 250),
|
||||
new("Infinite Deadly Blunt Arrowheads", "Bundle of Arrowshafts", "Deadly Blunt Arrow", WeaponCategory.Bow, 250),
|
||||
new("Infinite Deadly Broad Arrowheads", "Bundle of Arrowshafts", "Deadly Broadhead Arrow", WeaponCategory.Bow, 250),
|
||||
new("Infinite Deadly Fire Arrowheads", "Bundle of Arrowshafts", "Deadly Fire Arrow", WeaponCategory.Bow, 250),
|
||||
new("Infinite Deadly Fire Arrowheads", "Wrapped Bundle of Arrowshafts", "Deadly Fire Arrow", WeaponCategory.Bow, 250),
|
||||
new("Wrapped Bundle of Deadly Fire Arrowheads", "Wrapped Bundle of Arrowshafts", "Deadly Fire Arrow", WeaponCategory.Bow, 250),
|
||||
new("Infinite Deadly Frog-Crotch Arrowheads", "Bundle of Arrowshafts", "Deadly Frog Crotch Arrow", WeaponCategory.Bow, 250),
|
||||
new("Infinite Deadly Frost Arrowheads", "Bundle of Arrowshafts", "Deadly Frost Arrow", WeaponCategory.Bow, 250),
|
||||
new("Infinite Deadly Frost Arrowheads", "Wrapped Bundle of Arrowshafts", "Deadly Frost Arrow", WeaponCategory.Bow, 250),
|
||||
new("Wrapped Bundle of Deadly Frost Arrowheads", "Wrapped Bundle of Arrowshafts", "Deadly Frost Arrow", WeaponCategory.Bow, 250),
|
||||
new("Infinite Deadly Lightning Arrowheads", "Bundle of Arrowshafts", "Deadly Lightning Arrow", WeaponCategory.Bow, 250),
|
||||
new("Infinite Deadly Lightning Arrowheads", "Wrapped Bundle of Arrowshafts", "Deadly Lightning Arrow", WeaponCategory.Bow, 250),
|
||||
new("Wrapped Bundle of Deadly Lightning Arrowheads", "Wrapped Bundle of Arrowshafts", "Deadly Lightning Arrow", WeaponCategory.Bow, 250),
|
||||
new("Bundle of Prismatic Arrowheads", "Bundle of Arrowshafts", "Prismatic Arrow", WeaponCategory.Bow, 250),
|
||||
new("Infinite Deadly Acid Arrowheads", "Bundle of Quarrelshafts", "Deadly Acid Quarrel", WeaponCategory.Crossbow, 250),
|
||||
new("Infinite Deadly Acid Arrowheads", "Wrapped Bundle of Quarrelshafts", "Deadly Acid Quarrel", WeaponCategory.Crossbow, 250),
|
||||
new("Wrapped Bundle of Deadly Acid Arrowheads", "Wrapped Bundle of Quarrelshafts", "Deadly Acid Quarrel", WeaponCategory.Crossbow, 250),
|
||||
new("Infinite Deadly Armor Piercing Arrowheads", "Bundle of Quarrelshafts", "Deadly Armor Piercing Quarrel", WeaponCategory.Crossbow, 250),
|
||||
new("Infinite Deadly Blunt Arrowheads", "Bundle of Quarrelshafts", "Deadly Blunt Quarrel", WeaponCategory.Crossbow, 250),
|
||||
new("Infinite Deadly Broad Arrowheads", "Bundle of Quarrelshafts", "Deadly Broadhead Quarrel", WeaponCategory.Crossbow, 250),
|
||||
new("Infinite Deadly Fire Arrowheads", "Bundle of Quarrelshafts", "Deadly Fire Quarrel", WeaponCategory.Crossbow, 250),
|
||||
new("Infinite Deadly Fire Arrowheads", "Wrapped Bundle of Quarrelshafts", "Deadly Fire Quarrel", WeaponCategory.Crossbow, 250),
|
||||
new("Wrapped Bundle of Deadly Fire Arrowheads", "Wrapped Bundle of Quarrelshafts", "Deadly Fire Quarrel", WeaponCategory.Crossbow, 250),
|
||||
new("Infinite Deadly Frog-Crotch Arrowheads", "Bundle of Quarrelshafts", "Deadly Frog Crotch Quarrel", WeaponCategory.Crossbow, 250),
|
||||
new("Infinite Deadly Frost Arrowheads", "Bundle of Quarrelshafts", "Deadly Frost Quarrel", WeaponCategory.Crossbow, 250),
|
||||
new("Infinite Deadly Frost Arrowheads", "Wrapped Bundle of Quarrelshafts", "Deadly Frost Quarrel", WeaponCategory.Crossbow, 250),
|
||||
new("Wrapped Bundle of Deadly Frost Arrowheads", "Wrapped Bundle of Quarrelshafts", "Deadly Frost Quarrel", WeaponCategory.Crossbow, 250),
|
||||
new("Infinite Deadly Lightning Arrowheads", "Bundle of Quarrelshafts", "Deadly Lightning Quarrel", WeaponCategory.Crossbow, 250),
|
||||
new("Infinite Deadly Lightning Arrowheads", "Wrapped Bundle of Quarrelshafts", "Deadly Lightning Quarrel", WeaponCategory.Crossbow, 250),
|
||||
new("Wrapped Bundle of Deadly Lightning Arrowheads", "Wrapped Bundle of Quarrelshafts", "Deadly Lightning Quarrel", WeaponCategory.Crossbow, 250),
|
||||
new("Wrapped Bundle of Greater Acid Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Greater Acid Atlatl Dart", WeaponCategory.Atlatl, 230),
|
||||
new("Wrapped Bundle of Greater Fire Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Greater Fire Atlatl Dart", WeaponCategory.Atlatl, 230),
|
||||
new("Wrapped Bundle of Greater Frost Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Greater Frost Atlatl Dart", WeaponCategory.Atlatl, 230),
|
||||
new("Wrapped Bundle of Greater Lightning Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Greater Lightning Atlatl Dart", WeaponCategory.Atlatl, 230),
|
||||
new("Wrapped Bundle of Prismatic Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Prismatic Atlatl Dart", WeaponCategory.Atlatl, 230),
|
||||
new("Wrapped Bundle of Greater Acid Arrowheads", "Wrapped Bundle of Arrowshafts", "Greater Acid Arrow", WeaponCategory.Bow, 230),
|
||||
new("Wrapped Bundle of Greater Fire Arrowheads", "Wrapped Bundle of Arrowshafts", "Greater Fire Arrow", WeaponCategory.Bow, 230),
|
||||
new("Wrapped Bundle of Greater Frost Arrowheads", "Wrapped Bundle of Arrowshafts", "Greater Frost Arrow", WeaponCategory.Bow, 230),
|
||||
new("Wrapped Bundle of Greater Lightning Arrowheads", "Wrapped Bundle of Arrowshafts", "Greater Lightning Arrow", WeaponCategory.Bow, 230),
|
||||
new("Wrapped Bundle of Greater Fire Arrowheads", "Wrapped Bundle of Quarrelshafts", "Greater Fire Quarrel", WeaponCategory.Crossbow, 230),
|
||||
new("Wrapped Bundle of Greater Frost Arrowheads", "Wrapped Bundle of Quarrelshafts", "Greater Frost Quarrel", WeaponCategory.Crossbow, 230),
|
||||
new("Wrapped Bundle of Greater Lightning Arrowheads", "Wrapped Bundle of Quarrelshafts", "Greater Lightning Quarrel", WeaponCategory.Crossbow, 230),
|
||||
new("Wrapped Bundle of Prismatic Arrowheads", "Wrapped Bundle of Quarrelshafts", "Prismatic Quarrel", WeaponCategory.Crossbow, 230),
|
||||
new("Bundle of Deadly Acid Arrowheads", "Bundle of Atlatl Dart Shafts", "Deadly Acid Atlatl Dart", WeaponCategory.Atlatl, 225),
|
||||
new("Bundle of Deadly Fire Arrowheads", "Bundle of Atlatl Dart Shafts", "Deadly Fire Atlatl Dart", WeaponCategory.Atlatl, 225),
|
||||
new("Bundle of Deadly Frost Arrowheads", "Bundle of Atlatl Dart Shafts", "Deadly Frost Atlatl Dart", WeaponCategory.Atlatl, 225),
|
||||
new("Bundle of Deadly Lightning Arrowheads", "Bundle of Atlatl Dart Shafts", "Deadly Lightning Atlatl Dart", WeaponCategory.Atlatl, 225),
|
||||
new("Bundle of Deadly Acid Arrowheads", "Bundle of Arrowshafts", "Deadly Acid Arrow", WeaponCategory.Bow, 225),
|
||||
new("Bundle of Deadly Fire Arrowheads", "Bundle of Arrowshafts", "Deadly Fire Arrow", WeaponCategory.Bow, 225),
|
||||
new("Bundle of Deadly Frost Arrowheads", "Bundle of Arrowshafts", "Deadly Frost Arrow", WeaponCategory.Bow, 225),
|
||||
new("Bundle of Deadly Lightning Arrowheads", "Bundle of Arrowshafts", "Deadly Lightning Arrow", WeaponCategory.Bow, 225),
|
||||
new("Bundle of Deadly Acid Arrowheads", "Bundle of Quarrelshafts", "Deadly Acid Quarrel", WeaponCategory.Crossbow, 225),
|
||||
new("Bundle of Deadly Fire Arrowheads", "Bundle of Quarrelshafts", "Deadly Fire Quarrel", WeaponCategory.Crossbow, 225),
|
||||
new("Bundle of Deadly Frost Arrowheads", "Bundle of Quarrelshafts", "Deadly Frost Quarrel", WeaponCategory.Crossbow, 225),
|
||||
new("Bundle of Deadly Lightning Arrowheads", "Bundle of Quarrelshafts", "Deadly Lightning Quarrel", WeaponCategory.Crossbow, 225),
|
||||
new("Bundle of Prismatic Arrowheads", "Bundle of Atlatl Dart Shafts", "Prismatic Atlatl Dart", WeaponCategory.Atlatl, 210),
|
||||
new("Bundle of Prismatic Arrowheads", "Bundle of Quarrelshafts", "Prismatic Quarrel", WeaponCategory.Crossbow, 210),
|
||||
new("Infinite Deadly Armor Piercing Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Deadly Armor Piercing Atlatl Dart", WeaponCategory.Atlatl, 200),
|
||||
new("Wrapped Bundle of Deadly Armor Piercing Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Deadly Armor Piercing Atlatl Dart", WeaponCategory.Atlatl, 200),
|
||||
new("Wrapped Bundle of Deadly Barbed Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Deadly Barbed Atlatl Dart", WeaponCategory.Atlatl, 200),
|
||||
new("Infinite Deadly Frog-Crotch Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Deadly Frog Crotch Atlatl Dart", WeaponCategory.Atlatl, 200),
|
||||
new("Wrapped Bundle of Deadly Frog Crotch Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Deadly Frog Crotch Atlatl Dart", WeaponCategory.Atlatl, 200),
|
||||
new("Bundle of Greater Acid Arrowheads", "Bundle of Atlatl Dart Shafts", "Greater Acid Atlatl Dart", WeaponCategory.Atlatl, 200),
|
||||
new("Bundle of Greater Fire Arrowheads", "Bundle of Atlatl Dart Shafts", "Greater Fire Atlatl Dart", WeaponCategory.Atlatl, 200),
|
||||
new("Bundle of Greater Frost Arrowheads", "Bundle of Atlatl Dart Shafts", "Greater Frost Atlatl Dart", WeaponCategory.Atlatl, 200),
|
||||
new("Bundle of Greater Lightning Arrowheads", "Bundle of Atlatl Dart Shafts", "Greater Lightning Atlatl Dart", WeaponCategory.Atlatl, 200),
|
||||
new("Infinite Deadly Armor Piercing Arrowheads", "Wrapped Bundle of Arrowshafts", "Deadly Armor Piercing Arrow", WeaponCategory.Bow, 200),
|
||||
new("Wrapped Bundle of Deadly Armor Piercing Arrowheads", "Wrapped Bundle of Arrowshafts", "Deadly Armor Piercing Arrow", WeaponCategory.Bow, 200),
|
||||
new("Wrapped Bundle of Deadly Barbed Arrowheads", "Wrapped Bundle of Arrowshafts", "Deadly Barbed Arrow", WeaponCategory.Bow, 200),
|
||||
new("Infinite Deadly Frog-Crotch Arrowheads", "Wrapped Bundle of Arrowshafts", "Deadly Frog Crotch Arrow", WeaponCategory.Bow, 200),
|
||||
new("Wrapped Bundle of Deadly Frog Crotch Arrowheads", "Wrapped Bundle of Arrowshafts", "Deadly Frog Crotch Arrow", WeaponCategory.Bow, 200),
|
||||
new("Bundle of Greater Acid Arrowheads", "Bundle of Arrowshafts", "Greater Acid Arrow", WeaponCategory.Bow, 200),
|
||||
new("Bundle of Greater Fire Arrowheads", "Bundle of Arrowshafts", "Greater Fire Arrow", WeaponCategory.Bow, 200),
|
||||
new("Bundle of Greater Frost Arrowheads", "Bundle of Arrowshafts", "Greater Frost Arrow", WeaponCategory.Bow, 200),
|
||||
new("Bundle of Greater Lightning Arrowheads", "Bundle of Arrowshafts", "Greater Lightning Arrow", WeaponCategory.Bow, 200),
|
||||
new("Infinite Deadly Armor Piercing Arrowheads", "Wrapped Bundle of Quarrelshafts", "Deadly Armor Piercing Quarrel", WeaponCategory.Crossbow, 200),
|
||||
new("Wrapped Bundle of Deadly Armor Piercing Arrowheads", "Wrapped Bundle of Quarrelshafts", "Deadly Armor Piercing Quarrel", WeaponCategory.Crossbow, 200),
|
||||
new("Wrapped Bundle of Deadly Barbed Arrowheads", "Wrapped Bundle of Quarrelshafts", "Deadly Barbed Quarrel", WeaponCategory.Crossbow, 200),
|
||||
new("Infinite Deadly Frog-Crotch Arrowheads", "Wrapped Bundle of Quarrelshafts", "Deadly Frog Crotch Quarrel", WeaponCategory.Crossbow, 200),
|
||||
new("Wrapped Bundle of Deadly Frog Crotch Arrowheads", "Wrapped Bundle of Quarrelshafts", "Deadly Frog Crotch Quarrel", WeaponCategory.Crossbow, 200),
|
||||
new("Bundle of Greater Acid Arrowheads", "Bundle of Quarrelshafts", "Greater Acid Quarrel", WeaponCategory.Crossbow, 200),
|
||||
new("Wrapped Bundle of Greater Acid Arrowheads", "Wrapped Bundle of Quarrelshafts", "Greater Acid Quarrel", WeaponCategory.Crossbow, 200),
|
||||
new("Bundle of Greater Fire Arrowheads", "Bundle of Quarrelshafts", "Greater Fire Quarrel", WeaponCategory.Crossbow, 200),
|
||||
new("Bundle of Greater Frost Arrowheads", "Bundle of Quarrelshafts", "Greater Frost Quarrel", WeaponCategory.Crossbow, 200),
|
||||
new("Bundle of Greater Lightning Arrowheads", "Bundle of Quarrelshafts", "Greater Lightning Quarrel", WeaponCategory.Crossbow, 200),
|
||||
new("Wrapped Bundle of Greater Armor Piercing Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Greater Armor Piercing Atlatl Dart", WeaponCategory.Atlatl, 190),
|
||||
new("Wrapped Bundle of Greater Barbed Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Greater Barbed Atlatl Dart", WeaponCategory.Atlatl, 190),
|
||||
new("Wrapped Bundle of Greater Frog Crotch Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Greater Frog Crotch Atlatl Dart", WeaponCategory.Atlatl, 190),
|
||||
new("Wrapped Bundle of Greater Armor Piercing Arrowheads", "Wrapped Bundle of Arrowshafts", "Greater Armor Piercing Arrow", WeaponCategory.Bow, 190),
|
||||
new("Wrapped Bundle of Greater Barbed Arrowheads", "Wrapped Bundle of Arrowshafts", "Greater Barbed Arrow", WeaponCategory.Bow, 190),
|
||||
new("Wrapped Bundle of Greater Frog Crotch Arrowheads", "Wrapped Bundle of Arrowshafts", "Greater Frog Crotch Arrow", WeaponCategory.Bow, 190),
|
||||
new("Wrapped Bundle of Greater Armor Piercing Arrowheads", "Wrapped Bundle of Quarrelshafts", "Greater Armor Piercing Quarrel", WeaponCategory.Crossbow, 190),
|
||||
new("Wrapped Bundle of Greater Barbed Arrowheads", "Wrapped Bundle of Quarrelshafts", "Greater Barbed Quarrel", WeaponCategory.Crossbow, 190),
|
||||
new("Wrapped Bundle of Greater Frog Crotch Arrowheads", "Wrapped Bundle of Quarrelshafts", "Greater Frog Crotch Quarrel", WeaponCategory.Crossbow, 190),
|
||||
new("Infinite Deadly Blunt Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Deadly Blunt Atlatl Dart", WeaponCategory.Atlatl, 180),
|
||||
new("Wrapped Bundle of Deadly Blunt Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Deadly Blunt Atlatl Dart", WeaponCategory.Atlatl, 180),
|
||||
new("Infinite Deadly Broad Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Deadly Broadhead Atlatl Dart", WeaponCategory.Atlatl, 180),
|
||||
new("Wrapped Bundle of Deadly Broad Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Deadly Broadhead Atlatl Dart", WeaponCategory.Atlatl, 180),
|
||||
new("Infinite Deadly Blunt Arrowheads", "Wrapped Bundle of Arrowshafts", "Deadly Blunt Arrow", WeaponCategory.Bow, 180),
|
||||
new("Wrapped Bundle of Deadly Blunt Arrowheads", "Wrapped Bundle of Arrowshafts", "Deadly Blunt Arrow", WeaponCategory.Bow, 180),
|
||||
new("Infinite Deadly Broad Arrowheads", "Wrapped Bundle of Arrowshafts", "Deadly Broadhead Arrow", WeaponCategory.Bow, 180),
|
||||
new("Wrapped Bundle of Deadly Broad Arrowheads", "Wrapped Bundle of Arrowshafts", "Deadly Broadhead Arrow", WeaponCategory.Bow, 180),
|
||||
new("Infinite Deadly Blunt Arrowheads", "Wrapped Bundle of Quarrelshafts", "Deadly Blunt Quarrel", WeaponCategory.Crossbow, 180),
|
||||
new("Wrapped Bundle of Deadly Blunt Arrowheads", "Wrapped Bundle of Quarrelshafts", "Deadly Blunt Quarrel", WeaponCategory.Crossbow, 180),
|
||||
new("Infinite Deadly Broad Arrowheads", "Wrapped Bundle of Quarrelshafts", "Deadly Broadhead Quarrel", WeaponCategory.Crossbow, 180),
|
||||
new("Wrapped Bundle of Deadly Broad Arrowheads", "Wrapped Bundle of Quarrelshafts", "Deadly Broadhead Quarrel", WeaponCategory.Crossbow, 180),
|
||||
new("Bundle of Deadly Armor Piercing Arrowheads", "Bundle of Atlatl Dart Shafts", "Deadly Armor Piercing Atlatl Dart", WeaponCategory.Atlatl, 175),
|
||||
new("Wrapped Bundle of Deadly Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Deadly Atlatl Dart", WeaponCategory.Atlatl, 175),
|
||||
new("Bundle of Deadly Barbed Arrowheads", "Bundle of Atlatl Dart Shafts", "Deadly Barbed Atlatl Dart", WeaponCategory.Atlatl, 175),
|
||||
new("Wrapped Bundle of Deadly Chorizite Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Deadly Chorizite Atlatl Dart", WeaponCategory.Atlatl, 175),
|
||||
new("Bundle of Deadly Frog Crotch Arrowheads", "Bundle of Atlatl Dart Shafts", "Deadly Frog Crotch Atlatl Dart", WeaponCategory.Atlatl, 175),
|
||||
new("Bundle of Deadly Armor Piercing Arrowheads", "Bundle of Arrowshafts", "Deadly Armor Piercing Arrow", WeaponCategory.Bow, 175),
|
||||
new("Wrapped Bundle of Deadly Arrowheads", "Wrapped Bundle of Arrowshafts", "Deadly Arrow", WeaponCategory.Bow, 175),
|
||||
new("Bundle of Deadly Barbed Arrowheads", "Bundle of Arrowshafts", "Deadly Barbed Arrow", WeaponCategory.Bow, 175),
|
||||
new("Wrapped Bundle of Deadly Chorizite Arrowheads", "Wrapped Bundle of Arrowshafts", "Deadly Chorizite Arrow", WeaponCategory.Bow, 175),
|
||||
new("Bundle of Deadly Frog Crotch Arrowheads", "Bundle of Arrowshafts", "Deadly Frog Crotch Arrow", WeaponCategory.Bow, 175),
|
||||
new("Bundle of Deadly Armor Piercing Arrowheads", "Bundle of Quarrelshafts", "Deadly Armor Piercing Quarrel", WeaponCategory.Crossbow, 175),
|
||||
new("Bundle of Deadly Barbed Arrowheads", "Bundle of Quarrelshafts", "Deadly Barbed Quarrel", WeaponCategory.Crossbow, 175),
|
||||
new("Wrapped Bundle of Deadly Chorizite Arrowheads", "Wrapped Bundle of Quarrelshafts", "Deadly Chorizite Quarrel", WeaponCategory.Crossbow, 175),
|
||||
new("Bundle of Deadly Frog Crotch Arrowheads", "Bundle of Quarrelshafts", "Deadly Frog Crotch Quarrel", WeaponCategory.Crossbow, 175),
|
||||
new("Wrapped Bundle of Deadly Arrowheads", "Wrapped Bundle of Quarrelshafts", "Deadly Quarrel", WeaponCategory.Crossbow, 175),
|
||||
new("Wrapped Bundle of Greater Blunt Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Greater Blunt Atlatl Dart", WeaponCategory.Atlatl, 170),
|
||||
new("Wrapped Bundle of Greater Broad Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Greater Broadhead Atlatl Dart", WeaponCategory.Atlatl, 170),
|
||||
new("Wrapped Bundle of Greater Blunt Arrowheads", "Wrapped Bundle of Arrowshafts", "Greater Blunt Arrow", WeaponCategory.Bow, 170),
|
||||
new("Wrapped Bundle of Greater Broad Arrowheads", "Wrapped Bundle of Arrowshafts", "Greater Broadhead Arrow", WeaponCategory.Bow, 170),
|
||||
new("Wrapped Bundle of Greater Blunt Arrowheads", "Wrapped Bundle of Quarrelshafts", "Greater Blunt Quarrel", WeaponCategory.Crossbow, 170),
|
||||
new("Wrapped Bundle of Greater Broad Arrowheads", "Wrapped Bundle of Quarrelshafts", "Greater Broadhead Quarrel", WeaponCategory.Crossbow, 170),
|
||||
new("Bundle of Greater Armor Piercing Arrowheads", "Bundle of Atlatl Dart Shafts", "Greater Armor Piercing Atlatl Dart", WeaponCategory.Atlatl, 160),
|
||||
new("Bundle of Greater Barbed Arrowheads", "Bundle of Atlatl Dart Shafts", "Greater Barbed Atlatl Dart", WeaponCategory.Atlatl, 160),
|
||||
new("Bundle of Greater Frog Crotch Arrowheads", "Bundle of Atlatl Dart Shafts", "Greater Frog Crotch Atlatl Dart", WeaponCategory.Atlatl, 160),
|
||||
new("Bundle of Greater Armor Piercing Arrowheads", "Bundle of Arrowshafts", "Greater Armor Piercing Arrow", WeaponCategory.Bow, 160),
|
||||
new("Bundle of Greater Barbed Arrowheads", "Bundle of Arrowshafts", "Greater Barbed Arrow", WeaponCategory.Bow, 160),
|
||||
new("Bundle of Greater Frog Crotch Arrowheads", "Bundle of Arrowshafts", "Greater Frog Crotch Arrow", WeaponCategory.Bow, 160),
|
||||
new("Bundle of Greater Armor Piercing Arrowheads", "Bundle of Quarrelshafts", "Greater Armor Piercing Quarrel", WeaponCategory.Crossbow, 160),
|
||||
new("Bundle of Greater Barbed Arrowheads", "Bundle of Quarrelshafts", "Greater Barbed Quarrel", WeaponCategory.Crossbow, 160),
|
||||
new("Bundle of Greater Frog Crotch Arrowheads", "Bundle of Quarrelshafts", "Greater Frog Crotch Quarrel", WeaponCategory.Crossbow, 160),
|
||||
new("Wrapped Bundle of Chorizite Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Chorizite Atlatl Dart", WeaponCategory.Atlatl, 150),
|
||||
new("Bundle of Deadly Arrowheads", "Bundle of Atlatl Dart Shafts", "Deadly Atlatl Dart", WeaponCategory.Atlatl, 150),
|
||||
new("Bundle of Deadly Blunt Arrowheads", "Bundle of Atlatl Dart Shafts", "Deadly Blunt Atlatl Dart", WeaponCategory.Atlatl, 150),
|
||||
new("Bundle of Deadly Broad Arrowheads", "Bundle of Atlatl Dart Shafts", "Deadly Broadhead Atlatl Dart", WeaponCategory.Atlatl, 150),
|
||||
new("Bundle of Deadly Chorizite Arrowheads", "Bundle of Atlatl Dart Shafts", "Deadly Chorizite Atlatl Dart", WeaponCategory.Atlatl, 150),
|
||||
new("Wrapped Bundle of Greater Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Greater Atlatl Dart", WeaponCategory.Atlatl, 150),
|
||||
new("Wrapped Bundle of Chorizite Arrowheads", "Wrapped Bundle of Arrowshafts", "Chorizite Arrow", WeaponCategory.Bow, 150),
|
||||
new("Bundle of Deadly Arrowheads", "Bundle of Arrowshafts", "Deadly Arrow", WeaponCategory.Bow, 150),
|
||||
new("Bundle of Deadly Blunt Arrowheads", "Bundle of Arrowshafts", "Deadly Blunt Arrow", WeaponCategory.Bow, 150),
|
||||
new("Bundle of Deadly Broad Arrowheads", "Bundle of Arrowshafts", "Deadly Broadhead Arrow", WeaponCategory.Bow, 150),
|
||||
new("Bundle of Deadly Chorizite Arrowheads", "Bundle of Arrowshafts", "Deadly Chorizite Arrow", WeaponCategory.Bow, 150),
|
||||
new("Wrapped Bundle of Greater Arrowheads", "Wrapped Bundle of Arrowshafts", "Greater Arrow", WeaponCategory.Bow, 150),
|
||||
new("Wrapped Bundle of Chorizite Arrowheads", "Wrapped Bundle of Quarrelshafts", "Chorizite Quarrel", WeaponCategory.Crossbow, 150),
|
||||
new("Bundle of Deadly Blunt Arrowheads", "Bundle of Quarrelshafts", "Deadly Blunt Quarrel", WeaponCategory.Crossbow, 150),
|
||||
new("Bundle of Deadly Broad Arrowheads", "Bundle of Quarrelshafts", "Deadly Broadhead Quarrel", WeaponCategory.Crossbow, 150),
|
||||
new("Bundle of Deadly Chorizite Arrowheads", "Bundle of Quarrelshafts", "Deadly Chorizite Quarrel", WeaponCategory.Crossbow, 150),
|
||||
new("Bundle of Deadly Arrowheads", "Bundle of Quarrelshafts", "Deadly Quarrel", WeaponCategory.Crossbow, 150),
|
||||
new("Wrapped Bundle of Greater Arrowheads", "Wrapped Bundle of Quarrelshafts", "Greater Quarrel", WeaponCategory.Crossbow, 150),
|
||||
new("Bundle of Greater Blunt Arrowheads", "Bundle of Atlatl Dart Shafts", "Greater Blunt Atlatl Dart", WeaponCategory.Atlatl, 140),
|
||||
new("Bundle of Greater Broad Arrowheads", "Bundle of Atlatl Dart Shafts", "Greater Broadhead Atlatl Dart", WeaponCategory.Atlatl, 140),
|
||||
new("Bundle of Greater Blunt Arrowheads", "Bundle of Arrowshafts", "Greater Blunt Arrow", WeaponCategory.Bow, 140),
|
||||
new("Bundle of Greater Broad Arrowheads", "Bundle of Arrowshafts", "Greater Broadhead Arrow", WeaponCategory.Bow, 140),
|
||||
new("Bundle of Greater Blunt Arrowheads", "Bundle of Quarrelshafts", "Greater Blunt Quarrel", WeaponCategory.Crossbow, 140),
|
||||
new("Bundle of Greater Broad Arrowheads", "Bundle of Quarrelshafts", "Greater Broadhead Quarrel", WeaponCategory.Crossbow, 140),
|
||||
new("Soulrender Arrowhead", "Bundle of Atlatl Dart Shafts", "Soulrender Atlatl Dart", WeaponCategory.Atlatl, 130),
|
||||
new("Soulrender Arrowhead", "Bundle of Arrowshafts", "Soulrender Arrow", WeaponCategory.Bow, 130),
|
||||
new("Soulrender Arrowhead", "Bundle of Quarrelshafts", "Soulrender Quarrel", WeaponCategory.Crossbow, 130),
|
||||
new("Bundle of Chorizite Arrowheads", "Bundle of Atlatl Dart Shafts", "Chorizite Atlatl Dart", WeaponCategory.Atlatl, 120),
|
||||
new("Bundle of Greater Arrowheads", "Bundle of Atlatl Dart Shafts", "Greater Atlatl Dart", WeaponCategory.Atlatl, 120),
|
||||
new("Bundle of Chorizite Arrowheads", "Bundle of Arrowshafts", "Chorizite Arrow", WeaponCategory.Bow, 120),
|
||||
new("Bundle of Greater Arrowheads", "Bundle of Arrowshafts", "Greater Arrow", WeaponCategory.Bow, 120),
|
||||
new("Bundle of Chorizite Arrowheads", "Bundle of Quarrelshafts", "Chorizite Quarrel", WeaponCategory.Crossbow, 120),
|
||||
new("Bundle of Greater Arrowheads", "Bundle of Quarrelshafts", "Greater Quarrel", WeaponCategory.Crossbow, 120),
|
||||
new("Fleshripper Arrowhead", "Bundle of Atlatl Dart Shafts", "Fleshripper Atlatl Dart", WeaponCategory.Atlatl, 100),
|
||||
new("Fleshripper Arrowhead", "Bundle of Arrowshafts", "Fleshripper Arrow", WeaponCategory.Bow, 100),
|
||||
new("Fleshripper Arrowhead", "Bundle of Quarrelshafts", "Fleshripper Quarrel", WeaponCategory.Crossbow, 100),
|
||||
new("Wrapped Bundle of Acid Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Acid Atlatl Dart", WeaponCategory.Atlatl, 90),
|
||||
new("Wrapped Bundle of Fire Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Fire Atlatl Dart", WeaponCategory.Atlatl, 90),
|
||||
new("Wrapped Bundle of Frost Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Frost Atlatl Dart", WeaponCategory.Atlatl, 90),
|
||||
new("Wrapped Bundle of Lightning Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Lightning Atlatl Dart", WeaponCategory.Atlatl, 90),
|
||||
new("Wrapped Bundle of Acid Arrowheads", "Wrapped Bundle of Arrowshafts", "Acid Arrow", WeaponCategory.Bow, 90),
|
||||
new("Wrapped Bundle of Fire Arrowheads", "Wrapped Bundle of Arrowshafts", "Fire Arrow", WeaponCategory.Bow, 90),
|
||||
new("Wrapped Bundle of Frost Arrowheads", "Wrapped Bundle of Arrowshafts", "Frost Arrow", WeaponCategory.Bow, 90),
|
||||
new("Wrapped Bundle of Lightning Arrowheads", "Wrapped Bundle of Arrowshafts", "Lightning Arrow", WeaponCategory.Bow, 90),
|
||||
new("Wrapped Bundle of Acid Arrowheads", "Wrapped Bundle of Quarrelshafts", "Acid Quarrel", WeaponCategory.Crossbow, 90),
|
||||
new("Wrapped Bundle of Fire Arrowheads", "Wrapped Bundle of Quarrelshafts", "Fire Quarrel", WeaponCategory.Crossbow, 90),
|
||||
new("Wrapped Bundle of Frost Arrowheads", "Wrapped Bundle of Quarrelshafts", "Frost Quarrel", WeaponCategory.Crossbow, 90),
|
||||
new("Wrapped Bundle of Lightning Arrowheads", "Wrapped Bundle of Quarrelshafts", "Lightning Quarrel", WeaponCategory.Crossbow, 90),
|
||||
new("Bloodletter Arrowhead", "Bundle of Atlatl Dart Shafts", "Bloodletter Atlatl Dart", WeaponCategory.Atlatl, 80),
|
||||
new("Bloodletter Arrowhead", "Bundle of Arrowshafts", "Bloodletter Arrow", WeaponCategory.Bow, 80),
|
||||
new("Bloodletter Arrowhead", "Bundle of Quarrelshafts", "Bloodletter Quarrel", WeaponCategory.Crossbow, 80),
|
||||
new("Bundle of Acid Arrowheads", "Bundle of Atlatl Dart Shafts", "Acid Atlatl Dart", WeaponCategory.Atlatl, 60),
|
||||
new("Bundle of Crystal Arrowheads", "Bundle of Atlatl Dart Shafts", "Crystal-tip Atlatl Dart", WeaponCategory.Atlatl, 60),
|
||||
new("Bundle of Fire Arrowheads", "Bundle of Atlatl Dart Shafts", "Fire Atlatl Dart", WeaponCategory.Atlatl, 60),
|
||||
new("Bundle of Frost Arrowheads", "Bundle of Atlatl Dart Shafts", "Frost Atlatl Dart", WeaponCategory.Atlatl, 60),
|
||||
new("Bundle of Lightning Arrowheads", "Bundle of Atlatl Dart Shafts", "Lightning Atlatl Dart", WeaponCategory.Atlatl, 60),
|
||||
new("Bundle of Acid Arrowheads", "Bundle of Arrowshafts", "Acid Arrow", WeaponCategory.Bow, 60),
|
||||
new("Bundle of Crystal Arrowheads", "Bundle of Arrowshafts", "Crystal-tip Arrow", WeaponCategory.Bow, 60),
|
||||
new("Bundle of Fire Arrowheads", "Bundle of Arrowshafts", "Fire Arrow", WeaponCategory.Bow, 60),
|
||||
new("Bundle of Frost Arrowheads", "Bundle of Arrowshafts", "Frost Arrow", WeaponCategory.Bow, 60),
|
||||
new("Bundle of Lightning Arrowheads", "Bundle of Arrowshafts", "Lightning Arrow", WeaponCategory.Bow, 60),
|
||||
new("Bundle of Acid Arrowheads", "Bundle of Quarrelshafts", "Acid Quarrel", WeaponCategory.Crossbow, 60),
|
||||
new("Bundle of Fire Arrowheads", "Bundle of Quarrelshafts", "Fire Quarrel", WeaponCategory.Crossbow, 60),
|
||||
new("Bundle of Frost Arrowheads", "Bundle of Quarrelshafts", "Frost Quarrel", WeaponCategory.Crossbow, 60),
|
||||
new("Bundle of Lightning Arrowheads", "Bundle of Quarrelshafts", "Lightning Quarrel", WeaponCategory.Crossbow, 60),
|
||||
new("Wrapped Bundle of Armor Piercing Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Armor Piercing Atlatl Dart", WeaponCategory.Atlatl, 50),
|
||||
new("Wrapped Bundle of Barbed Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Barbed Atlatl Dart", WeaponCategory.Atlatl, 50),
|
||||
new("Wrapped Bundle of Frog Crotch Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Frog Crotch Atlatl Dart", WeaponCategory.Atlatl, 50),
|
||||
new("Wrapped Bundle of Armor Piercing Arrowheads", "Wrapped Bundle of Arrowshafts", "Armor Piercing Arrow", WeaponCategory.Bow, 50),
|
||||
new("Wrapped Bundle of Barbed Arrowheads", "Wrapped Bundle of Arrowshafts", "Barbed Arrow", WeaponCategory.Bow, 50),
|
||||
new("Wrapped Bundle of Frog Crotch Arrowheads", "Wrapped Bundle of Arrowshafts", "Frog Crotch Arrow", WeaponCategory.Bow, 50),
|
||||
new("Wrapped Bundle of Armor Piercing Arrowheads", "Wrapped Bundle of Quarrelshafts", "Armor Piercing Quarrel", WeaponCategory.Crossbow, 50),
|
||||
new("Wrapped Bundle of Barbed Arrowheads", "Wrapped Bundle of Quarrelshafts", "Barbed Quarrel", WeaponCategory.Crossbow, 50),
|
||||
new("Wrapped Bundle of Frog Crotch Arrowheads", "Wrapped Bundle of Quarrelshafts", "Frog Crotch Quarrel", WeaponCategory.Crossbow, 50),
|
||||
new("Wrapped Bundle of Blunt Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Blunt Atlatl Dart", WeaponCategory.Atlatl, 40),
|
||||
new("Wrapped Bundle of Broad Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Broadhead Atlatl Dart", WeaponCategory.Atlatl, 40),
|
||||
new("Wrapped Bundle of Blunt Arrowheads", "Wrapped Bundle of Arrowshafts", "Blunt Arrow", WeaponCategory.Bow, 40),
|
||||
new("Wrapped Bundle of Broad Arrowheads", "Wrapped Bundle of Arrowshafts", "Broadhead Arrow", WeaponCategory.Bow, 40),
|
||||
new("Wrapped Bundle of Blunt Arrowheads", "Wrapped Bundle of Quarrelshafts", "Blunt Quarrel", WeaponCategory.Crossbow, 40),
|
||||
new("Wrapped Bundle of Broad Arrowheads", "Wrapped Bundle of Quarrelshafts", "Broadhead Quarrel", WeaponCategory.Crossbow, 40),
|
||||
new("Wrapped Bundle of Arrowheads", "Wrapped Bundle of Atlatl Dartshafts", "Atlatl Dart", WeaponCategory.Atlatl, 35),
|
||||
new("Wrapped Bundle of Arrowheads", "Wrapped Bundle of Arrowshafts", "Arrow", WeaponCategory.Bow, 35),
|
||||
new("Wrapped Bundle of Arrowheads", "Wrapped Bundle of Quarrelshafts", "Quarrel", WeaponCategory.Crossbow, 35),
|
||||
new("Bundle of Armor Piercing Arrowheads", "Bundle of Atlatl Dart Shafts", "Armor Piercing Atlatl Dart", WeaponCategory.Atlatl, 20),
|
||||
new("Bundle of Barbed Arrowheads", "Bundle of Atlatl Dart Shafts", "Barbed Atlatl Dart", WeaponCategory.Atlatl, 20),
|
||||
new("Bundle of Frog Crotch Arrowheads", "Bundle of Atlatl Dart Shafts", "Frog Crotch Atlatl Dart", WeaponCategory.Atlatl, 20),
|
||||
new("Bundle of Armor Piercing Arrowheads", "Bundle of Arrowshafts", "Armor Piercing Arrow", WeaponCategory.Bow, 20),
|
||||
new("Bundle of Barbed Arrowheads", "Bundle of Arrowshafts", "Barbed Arrow", WeaponCategory.Bow, 20),
|
||||
new("Bundle of Frog Crotch Arrowheads", "Bundle of Arrowshafts", "Frog Crotch Arrow", WeaponCategory.Bow, 20),
|
||||
new("Bundle of Armor Piercing Arrowheads", "Bundle of Quarrelshafts", "Armor Piercing Quarrel", WeaponCategory.Crossbow, 20),
|
||||
new("Bundle of Barbed Arrowheads", "Bundle of Quarrelshafts", "Barbed Quarrel", WeaponCategory.Crossbow, 20),
|
||||
new("Bundle of Frog Crotch Arrowheads", "Bundle of Quarrelshafts", "Frog Crotch Quarrel", WeaponCategory.Crossbow, 20),
|
||||
new("Bundle of Blunt Arrowheads", "Bundle of Atlatl Dart Shafts", "Blunt Atlatl Dart", WeaponCategory.Atlatl, 10),
|
||||
new("Bundle of Broad Arrowheads", "Bundle of Atlatl Dart Shafts", "Broadhead Atlatl Dart", WeaponCategory.Atlatl, 10),
|
||||
new("Bundle of Blunt Arrowheads", "Bundle of Arrowshafts", "Blunt Arrow", WeaponCategory.Bow, 10),
|
||||
new("Bundle of Broad Arrowheads", "Bundle of Arrowshafts", "Broadhead Arrow", WeaponCategory.Bow, 10),
|
||||
new("Bundle of Blunt Arrowheads", "Bundle of Quarrelshafts", "Blunt Quarrel", WeaponCategory.Crossbow, 10),
|
||||
new("Bundle of Broad Arrowheads", "Bundle of Quarrelshafts", "Broadhead Quarrel", WeaponCategory.Crossbow, 10),
|
||||
new("Bundle of Arrowheads", "Bundle of Atlatl Dart Shafts", "Atlatl Dart", WeaponCategory.Atlatl, 5),
|
||||
new("Bundle of Arrowheads", "Bundle of Arrowshafts", "Arrow", WeaponCategory.Bow, 5),
|
||||
new("Bundle of Arrowheads", "Bundle of Quarrelshafts", "Quarrel", WeaponCategory.Crossbow, 5),
|
||||
};
|
||||
}
|
||||
158
Plugins/RynthCore.Plugin.RynthAi/Combat/AmmoRecipes.cs
Normal file
158
Plugins/RynthCore.Plugin.RynthAi/Combat/AmmoRecipes.cs
Normal file
|
|
@ -0,0 +1,158 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace RynthCore.Plugin.RynthAi;
|
||||
|
||||
public enum WeaponCategory { Bow, Crossbow, Atlatl }
|
||||
|
||||
/// <summary>One fletching combine from the world database: the head is applied to the shaft.</summary>
|
||||
public sealed class AmmoRecipe
|
||||
{
|
||||
public string HeadName { get; }
|
||||
public string ShaftName { get; }
|
||||
public string OutputName { get; }
|
||||
public WeaponCategory Category { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The recipe's skill difficulty. Also the ammo's quality rank: the retail data makes
|
||||
/// better ammo harder (plain Arrowheads 5 … Deadly Prismatic 400).
|
||||
/// </summary>
|
||||
public int Difficulty { get; }
|
||||
|
||||
/// <summary>
|
||||
/// What to craft or equip first: the Prismatic family above everything else — it is
|
||||
/// what players actually craft — then difficulty (Deadly > Greater > plain).
|
||||
/// </summary>
|
||||
public int Rank { get; }
|
||||
|
||||
internal string HeadKey { get; }
|
||||
internal string ShaftKey { get; }
|
||||
|
||||
public AmmoRecipe(string head, string shaft, string output, WeaponCategory category, int difficulty)
|
||||
{
|
||||
HeadName = head;
|
||||
ShaftName = shaft;
|
||||
OutputName = output;
|
||||
Category = category;
|
||||
Difficulty = difficulty;
|
||||
Rank = difficulty + (output.Contains("Prismatic", StringComparison.OrdinalIgnoreCase) ? AmmoRecipes.PrismaticFirst : 0);
|
||||
HeadKey = AmmoRecipes.Normalize(head);
|
||||
ShaftKey = AmmoRecipes.Normalize(shaft);
|
||||
}
|
||||
|
||||
public bool IsHead(string itemName) => AmmoRecipes.Normalize(itemName) == HeadKey;
|
||||
public bool IsShaft(string itemName) => AmmoRecipes.Normalize(itemName) == ShaftKey;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Ammo crafting data and the decisions made over it. No host calls, so the whole table
|
||||
/// can be checked offline. The rows (AmmoRecipes.Data.cs) are generated from the ACE world
|
||||
/// database by Tools/gen-ammo-recipes.py — regenerate rather than hand-edit.
|
||||
/// </summary>
|
||||
public static partial class AmmoRecipes
|
||||
{
|
||||
/// <summary>
|
||||
/// Lowest success chance worth attempting. A failed fletching combine destroys both the
|
||||
/// head and the shaft bundles (Infinite heads: the shafts), so this wants skill about
|
||||
/// 73 over the recipe's difficulty.
|
||||
/// </summary>
|
||||
public const double MinSuccessChance = 0.90;
|
||||
|
||||
/// <summary>Added to a Prismatic recipe's rank; above the hardest difficulty (400).</summary>
|
||||
internal const int PrismaticFirst = 1000;
|
||||
|
||||
/// <summary>ACE's SkillCheck.GetSkillChance (default factor 0.03), which crafting uses.</summary>
|
||||
public static double SuccessChance(int skill, int difficulty) =>
|
||||
1.0 - 1.0 / (1.0 + Math.Exp(0.03 * (skill - difficulty)));
|
||||
|
||||
/// <summary>
|
||||
/// The best (highest-ranked) recipe for <paramref name="category"/> whose head and shaft are
|
||||
/// both carried and that <paramref name="fletching"/> (buffed skill) makes reliably.
|
||||
/// <paramref name="tooHard"/> is the best one skipped for skill, so the caller can say so.
|
||||
/// </summary>
|
||||
public static AmmoRecipe? BestCraftable(IEnumerable<string> carriedNames, WeaponCategory category,
|
||||
int fletching, out AmmoRecipe? tooHard)
|
||||
{
|
||||
var carried = new HashSet<string>();
|
||||
foreach (string n in carriedNames)
|
||||
if (!string.IsNullOrEmpty(n)) carried.Add(Normalize(n));
|
||||
|
||||
tooHard = null;
|
||||
foreach (var r in Index.ByRank)
|
||||
{
|
||||
if (r.Category != category) continue;
|
||||
if (!carried.Contains(r.HeadKey) || !carried.Contains(r.ShaftKey)) continue;
|
||||
if (SuccessChance(fletching, r.Difficulty) >= MinSuccessChance) return r;
|
||||
tooHard ??= r;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>Rank of finished ammo on the recipes' scale (<see cref="AmmoRecipe.Rank"/>), or 1
|
||||
/// for ammo no recipe makes (quest arrows and the like) so crafted ammo outranks it.</summary>
|
||||
public static int OutputRank(string name, WeaponCategory category)
|
||||
{
|
||||
if (string.IsNullOrEmpty(name)) return 0;
|
||||
return Index.OutputRank.TryGetValue((category, Normalize(name)), out int d) ? d : 1;
|
||||
}
|
||||
|
||||
/// <summary>Finished ammo for the category — not a head, a shaft or a bundle.</summary>
|
||||
public static bool IsLooseAmmoName(string name, WeaponCategory category)
|
||||
{
|
||||
if (string.IsNullOrEmpty(name)) return false;
|
||||
string n = Normalize(name);
|
||||
if (n.Contains("bundle") || n.Contains("wrapped")) return false;
|
||||
if (n.Contains("arrowhead") || n.Contains("arrowshaft")) return false;
|
||||
if (n.Contains("quarrelhead") || n.Contains("quarrelshaft")) return false;
|
||||
if (n.Contains("darthead") || n.Contains("dartshaft")) return false;
|
||||
return category switch
|
||||
{
|
||||
WeaponCategory.Bow => n.Contains("arrow"),
|
||||
WeaponCategory.Crossbow => n.Contains("quarrel") || n.Contains("bolt"),
|
||||
WeaponCategory.Atlatl => n.Contains("dart"),
|
||||
_ => false,
|
||||
};
|
||||
}
|
||||
|
||||
// Names come from the object cache, so the length is attacker-ish input as far as
|
||||
// this frame is concerned — an unbounded stackalloc on it can blow the stack
|
||||
// (2026-06-03 audit P2). Item names are far under this; anything longer heaps.
|
||||
private const int MaxStackNameChars = 256;
|
||||
|
||||
/// <summary>Lower-case letters and digits only: "Frog-Crotch" and "Frog Crotch" compare equal.</summary>
|
||||
public static string Normalize(string value)
|
||||
{
|
||||
char[]? rented = value.Length > MaxStackNameChars ? new char[value.Length] : null;
|
||||
Span<char> buffer = rented is null ? stackalloc char[MaxStackNameChars] : rented;
|
||||
int count = 0;
|
||||
foreach (char ch in value)
|
||||
{
|
||||
if (!char.IsLetterOrDigit(ch))
|
||||
continue;
|
||||
|
||||
buffer[count++] = char.ToLowerInvariant(ch);
|
||||
}
|
||||
|
||||
return new string(buffer[..count]);
|
||||
}
|
||||
|
||||
// Built on first use, in its own type so it can't initialise before All (the two
|
||||
// partial files' static initialisers run in no guaranteed order).
|
||||
private static class Index
|
||||
{
|
||||
public static readonly AmmoRecipe[] ByRank = All.OrderByDescending(r => r.Rank).ToArray();
|
||||
public static readonly Dictionary<(WeaponCategory, string), int> OutputRank = Build();
|
||||
|
||||
private static Dictionary<(WeaponCategory, string), int> Build()
|
||||
{
|
||||
var d = new Dictionary<(WeaponCategory, string), int>();
|
||||
foreach (var r in All)
|
||||
{
|
||||
var key = (r.Category, Normalize(r.OutputName));
|
||||
if (!d.TryGetValue(key, out int have) || r.Rank > have) d[key] = r.Rank;
|
||||
}
|
||||
return d;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -928,10 +928,11 @@ public class BuffManager : IDisposable
|
|||
// Emergency override regardless of mode: HP critical + stam available →
|
||||
// burn stam for HP. Sits below the configurable thresholds so even a
|
||||
// "do nothing" recharge config still saves the character.
|
||||
if (curHealthPct <= 30 && curStamPct > 20)
|
||||
// If it can't be cast, fall through to Heal Self rather than giving up at 30% HP.
|
||||
if (curHealthPct <= 30 && curStamPct > 20 && AttemptVitalCast("Stamina to Health Self"))
|
||||
{
|
||||
_isHealingSelf = true;
|
||||
return AttemptVitalCast("Stamina to Health Self");
|
||||
return true;
|
||||
}
|
||||
|
||||
// Pick the threshold set based on hunting state. A target within
|
||||
|
|
@ -945,25 +946,42 @@ public class BuffManager : IDisposable
|
|||
int manaThreshold = inCombat ? _settings.GetManaAt : _settings.TopOffMana;
|
||||
int stamThreshold = inCombat ? _settings.RestamAt : _settings.TopOffStam;
|
||||
|
||||
_isHealingSelf = curHealthPct < hpThreshold;
|
||||
_isRechargingMana = curManaPct < manaThreshold;
|
||||
_isRechargingStamina = curStamPct < stamThreshold;
|
||||
|
||||
if (_isHealingSelf)
|
||||
// A flag is set only when something was actually done about the vital.
|
||||
// WantsVitalRecharge holds the arbiter on Buffing, above combat and nav, so
|
||||
// flagging a heal that can't happen — spell unknown, Life Magic untrained,
|
||||
// or parked after the server refused it (no components) — stalled the bot:
|
||||
// no route, no fighting back, until natural regen topped it up.
|
||||
if (curHealthPct < hpThreshold && (AttemptHealthKitUse() || AttemptVitalCast("Heal Self")))
|
||||
{
|
||||
if (AttemptHealthKitUse()) return true;
|
||||
return AttemptVitalCast("Heal Self");
|
||||
_isHealingSelf = true;
|
||||
return true;
|
||||
}
|
||||
if (curManaPct < manaThreshold && curStamPct > 15 && AttemptVitalCast("Stamina to Mana Self"))
|
||||
{
|
||||
_isRechargingMana = true;
|
||||
return true;
|
||||
}
|
||||
if (curStamPct < stamThreshold && AttemptVitalCast("Revitalize Self"))
|
||||
{
|
||||
_isRechargingStamina = true;
|
||||
return true;
|
||||
}
|
||||
if (_isRechargingMana && curStamPct > 15) return AttemptVitalCast("Stamina to Mana Self");
|
||||
if (_isRechargingStamina) return AttemptVitalCast("Revitalize Self");
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
private bool AttemptVitalCast(string baseName)
|
||||
{
|
||||
if (!IsSkillUsable(AcSkillType.LifeMagic)) return false;
|
||||
int spellId = FindBestSpellId(baseName, AcSkillType.LifeMagic);
|
||||
if (spellId == 0) return false;
|
||||
// Parked after a hard server refusal (see OnChatWindowText) — the same
|
||||
// per-family cooldown the buff selectors honour.
|
||||
int family = SpellTableStub.GetById(spellId)?.Family ?? 0;
|
||||
if (family != 0
|
||||
&& _buffFailCooldownUntil.TryGetValue(family, out DateTime coolUntil)
|
||||
&& DateTime.Now < coolUntil)
|
||||
return false;
|
||||
if (!EnsureMagicMode()) return true;
|
||||
_pendingSpellId = spellId;
|
||||
_host.CastSpell((uint)_host.GetPlayerId(), spellId);
|
||||
|
|
@ -2072,6 +2090,13 @@ public class BuffManager : IDisposable
|
|||
}
|
||||
_buffFailCooldownUntil[pendingSpell.Family] =
|
||||
DateTime.Now.AddSeconds(BuffFailCooldownSec);
|
||||
// AC's refusal doesn't name the spell and vital casts print no
|
||||
// "Casting:" line, so say which one. The server's text is not
|
||||
// echoed: this line comes back through this handler, and it must
|
||||
// not match the refusal phrases above.
|
||||
bool noComps = lower.Contains("components") || lower.Contains("missing some required");
|
||||
_host.WriteToChat($"[RynthAi] Skipping {pendingSpell.Name} for {BuffFailCooldownSec / 60:0} min " +
|
||||
$"({(noComps ? "no components for it" : "the server refused it")}).", 2);
|
||||
}
|
||||
_host.Log($"[BuffChat] CLEARED+COOLED pending={_pendingSpellId} ({BuffFailCooldownSec:0}s) — hard rejection in '{text}'");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,56 +57,6 @@ public class MissileCraftingManager
|
|||
private int _totalCombines = 0;
|
||||
private int _combinesCompleted = 0;
|
||||
|
||||
// ══════════════════════════════════════════════════════════════════
|
||||
// RECIPE DATABASE
|
||||
// ══════════════════════════════════════════════════════════════════
|
||||
|
||||
public enum WeaponCategory { Bow, Crossbow, Atlatl }
|
||||
|
||||
public class AmmoRecipe
|
||||
{
|
||||
public string HeadBundleName = "";
|
||||
public string ShaftBundleName = "";
|
||||
public string OutputName = "";
|
||||
public WeaponCategory Category;
|
||||
public bool RequiresSpecialized;
|
||||
public int Priority;
|
||||
}
|
||||
|
||||
public static readonly List<AmmoRecipe> AllRecipes = new List<AmmoRecipe>
|
||||
{
|
||||
// ── ARROWS (Bow) ───────────────────────────────────────────
|
||||
new() { HeadBundleName = "Wrapped Bundle of Lethal Prismatic Arrowheads", ShaftBundleName = "Wrapped Bundle of Arrowshafts", OutputName = "Lethal Prismatic Arrow", Category = WeaponCategory.Bow, RequiresSpecialized = true, Priority = 40 },
|
||||
new() { HeadBundleName = "Wrapped Bundle of Deadly Prismatic Arrowheads", ShaftBundleName = "Wrapped Bundle of Arrowshafts", OutputName = "Deadly Prismatic Arrow", Category = WeaponCategory.Bow, RequiresSpecialized = true, Priority = 30 },
|
||||
new() { HeadBundleName = "Wrapped Bundle of Greater Prismatic Arrowheads", ShaftBundleName = "Wrapped Bundle of Arrowshafts", OutputName = "Greater Prismatic Arrow", Category = WeaponCategory.Bow, RequiresSpecialized = false, Priority = 20 },
|
||||
new() { HeadBundleName = "Wrapped Bundle of Prismatic Arrowheads", ShaftBundleName = "Wrapped Bundle of Arrowshafts", OutputName = "Prismatic Arrow", Category = WeaponCategory.Bow, RequiresSpecialized = false, Priority = 10 },
|
||||
new() { HeadBundleName = "Wrapped Bundle of Armor Piercing Arrowheads", ShaftBundleName = "Wrapped Bundle of Arrowshafts", OutputName = "Armor Piercing Arrow", Category = WeaponCategory.Bow, RequiresSpecialized = false, Priority = 6 },
|
||||
new() { HeadBundleName = "Wrapped Bundle of Broad Arrowheads", ShaftBundleName = "Wrapped Bundle of Arrowshafts", OutputName = "Broad Head Arrow", Category = WeaponCategory.Bow, RequiresSpecialized = false, Priority = 5 },
|
||||
new() { HeadBundleName = "Wrapped Bundle of Blunt Arrowheads", ShaftBundleName = "Wrapped Bundle of Arrowshafts", OutputName = "Blunt Arrow", Category = WeaponCategory.Bow, RequiresSpecialized = false, Priority = 4 },
|
||||
new() { HeadBundleName = "Wrapped Bundle of Frog Crotch Arrowheads", ShaftBundleName = "Wrapped Bundle of Arrowshafts", OutputName = "Frog Crotch Arrow", Category = WeaponCategory.Bow, RequiresSpecialized = false, Priority = 3 },
|
||||
new() { HeadBundleName = "Wrapped Bundle of Arrowheads", ShaftBundleName = "Wrapped Bundle of Arrowshafts", OutputName = "Arrow", Category = WeaponCategory.Bow, RequiresSpecialized = false, Priority = 1 },
|
||||
|
||||
// ── QUARRELS (Crossbow) ────────────────────────────────────
|
||||
new() { HeadBundleName = "Wrapped Bundle of Lethal Prismatic Quarrelheads", ShaftBundleName = "Wrapped Bundle of Quarrelshafts", OutputName = "Lethal Prismatic Quarrel", Category = WeaponCategory.Crossbow, RequiresSpecialized = true, Priority = 40 },
|
||||
new() { HeadBundleName = "Wrapped Bundle of Deadly Prismatic Quarrelheads", ShaftBundleName = "Wrapped Bundle of Quarrelshafts", OutputName = "Deadly Prismatic Quarrel", Category = WeaponCategory.Crossbow, RequiresSpecialized = true, Priority = 30 },
|
||||
new() { HeadBundleName = "Wrapped Bundle of Greater Prismatic Quarrelheads", ShaftBundleName = "Wrapped Bundle of Quarrelshafts", OutputName = "Greater Prismatic Quarrel", Category = WeaponCategory.Crossbow, RequiresSpecialized = false, Priority = 20 },
|
||||
new() { HeadBundleName = "Wrapped Bundle of Prismatic Quarrelheads", ShaftBundleName = "Wrapped Bundle of Quarrelshafts", OutputName = "Prismatic Quarrel", Category = WeaponCategory.Crossbow, RequiresSpecialized = false, Priority = 10 },
|
||||
new() { HeadBundleName = "Wrapped Bundle of Armor Piercing Quarrelheads", ShaftBundleName = "Wrapped Bundle of Quarrelshafts", OutputName = "Armor Piercing Quarrel", Category = WeaponCategory.Crossbow, RequiresSpecialized = false, Priority = 6 },
|
||||
new() { HeadBundleName = "Wrapped Bundle of Broad Quarrelheads", ShaftBundleName = "Wrapped Bundle of Quarrelshafts", OutputName = "Broad Head Quarrel", Category = WeaponCategory.Crossbow, RequiresSpecialized = false, Priority = 5 },
|
||||
new() { HeadBundleName = "Wrapped Bundle of Blunt Quarrelheads", ShaftBundleName = "Wrapped Bundle of Quarrelshafts", OutputName = "Blunt Quarrel", Category = WeaponCategory.Crossbow, RequiresSpecialized = false, Priority = 4 },
|
||||
new() { HeadBundleName = "Wrapped Bundle of Quarrelheads", ShaftBundleName = "Wrapped Bundle of Quarrelshafts", OutputName = "Quarrel", Category = WeaponCategory.Crossbow, RequiresSpecialized = false, Priority = 1 },
|
||||
|
||||
// ── DARTS (Atlatl) ─────────────────────────────────────────
|
||||
new() { HeadBundleName = "Wrapped Bundle of Lethal Prismatic Atlatl Dart Heads", ShaftBundleName = "Wrapped Bundle of Atlatl Dart Shafts", OutputName = "Lethal Prismatic Atlatl Dart", Category = WeaponCategory.Atlatl, RequiresSpecialized = true, Priority = 40 },
|
||||
new() { HeadBundleName = "Wrapped Bundle of Deadly Prismatic Atlatl Dart Heads", ShaftBundleName = "Wrapped Bundle of Atlatl Dart Shafts", OutputName = "Deadly Prismatic Atlatl Dart", Category = WeaponCategory.Atlatl, RequiresSpecialized = true, Priority = 30 },
|
||||
new() { HeadBundleName = "Wrapped Bundle of Greater Prismatic Atlatl Dart Heads", ShaftBundleName = "Wrapped Bundle of Atlatl Dart Shafts", OutputName = "Greater Prismatic Atlatl Dart", Category = WeaponCategory.Atlatl, RequiresSpecialized = false, Priority = 20 },
|
||||
new() { HeadBundleName = "Wrapped Bundle of Prismatic Atlatl Dart Heads", ShaftBundleName = "Wrapped Bundle of Atlatl Dart Shafts", OutputName = "Prismatic Atlatl Dart", Category = WeaponCategory.Atlatl, RequiresSpecialized = false, Priority = 10 },
|
||||
new() { HeadBundleName = "Wrapped Bundle of Armor Piercing Atlatl Dart Heads", ShaftBundleName = "Wrapped Bundle of Atlatl Dart Shafts", OutputName = "Armor Piercing Atlatl Dart", Category = WeaponCategory.Atlatl, RequiresSpecialized = false, Priority = 6 },
|
||||
new() { HeadBundleName = "Wrapped Bundle of Broad Atlatl Dart Heads", ShaftBundleName = "Wrapped Bundle of Atlatl Dart Shafts", OutputName = "Broad Head Atlatl Dart", Category = WeaponCategory.Atlatl, RequiresSpecialized = false, Priority = 5 },
|
||||
new() { HeadBundleName = "Wrapped Bundle of Blunt Atlatl Dart Heads", ShaftBundleName = "Wrapped Bundle of Atlatl Dart Shafts", OutputName = "Blunt Atlatl Dart", Category = WeaponCategory.Atlatl, RequiresSpecialized = false, Priority = 4 },
|
||||
new() { HeadBundleName = "Wrapped Bundle of Atlatl Dart Heads", ShaftBundleName = "Wrapped Bundle of Atlatl Dart Shafts", OutputName = "Atlatl Dart", Category = WeaponCategory.Atlatl, RequiresSpecialized = false, Priority = 1 },
|
||||
};
|
||||
|
||||
public MissileCraftingManager(RynthCoreHost host, LegacyUiSettings settings)
|
||||
{
|
||||
_host = host;
|
||||
|
|
@ -187,20 +137,14 @@ public class MissileCraftingManager
|
|||
{
|
||||
var inv = GetInventory(forceRefresh: true);
|
||||
WeaponCategory category = ResolveWeaponCategory(inv);
|
||||
int trainingLevel = _charSkills?[AcSkillType.Fletching].Training ?? 2;
|
||||
|
||||
AmmoRecipe? bestCraftable = null;
|
||||
foreach (var recipe in AllRecipes
|
||||
.Where(r => r.Category == category)
|
||||
.OrderByDescending(r => r.Priority))
|
||||
{
|
||||
if (recipe.RequiresSpecialized && trainingLevel < 3) continue;
|
||||
if (!recipe.RequiresSpecialized && trainingLevel < 2) continue;
|
||||
|
||||
bool hasHead = inv.Any(i => MatchesRecipeComponent(i.Name, recipe.HeadBundleName));
|
||||
bool hasShaft = inv.Any(i => MatchesRecipeComponent(i.Name, recipe.ShaftBundleName));
|
||||
if (hasHead && hasShaft) { bestCraftable = recipe; break; }
|
||||
}
|
||||
// Fletching can't be used untrained. Past that, the recipe's difficulty against
|
||||
// the buffed skill decides — a failed combine destroys both bundles.
|
||||
var fletching = _charSkills?[AcSkillType.Fletching];
|
||||
AmmoRecipe? bestCraftable = null, tooHard = null;
|
||||
if ((fletching?.Training ?? 2) >= 2)
|
||||
bestCraftable = AmmoRecipes.BestCraftable(inv.Select(i => i.Name), category,
|
||||
fletching?.Buffed ?? 250, out tooHard);
|
||||
|
||||
int bestExistingPriority = 0;
|
||||
WorldObject? bestExistingAmmo = null;
|
||||
|
|
@ -211,7 +155,7 @@ public class MissileCraftingManager
|
|||
if (pri > bestExistingPriority) { bestExistingPriority = pri; bestExistingAmmo = item; }
|
||||
}
|
||||
|
||||
if (bestCraftable != null && bestCraftable.Priority > bestExistingPriority)
|
||||
if (bestCraftable != null && bestCraftable.Rank > bestExistingPriority)
|
||||
{ StartCrafting(bestCraftable, inv); return; }
|
||||
|
||||
if (bestExistingAmmo != null)
|
||||
|
|
@ -225,7 +169,11 @@ public class MissileCraftingManager
|
|||
if (bestCraftable != null)
|
||||
{ StartCrafting(bestCraftable, inv); return; }
|
||||
|
||||
Reset("No ammo and no bundles available");
|
||||
if (tooHard != null)
|
||||
Reset($"No ammo, and Fletching {fletching?.Buffed} is too low to make {tooHard.OutputName} reliably " +
|
||||
$"(difficulty {tooHard.Difficulty}; a failed combine destroys both bundles)");
|
||||
else
|
||||
Reset("No ammo and no bundles available");
|
||||
}
|
||||
|
||||
private void StartCrafting(AmmoRecipe recipe, List<WorldObject> inv)
|
||||
|
|
@ -237,8 +185,8 @@ public class MissileCraftingManager
|
|||
|
||||
try { _host.ChangeCombatMode(CombatMode.NonCombat); } catch { }
|
||||
|
||||
var headItems = inv.Where(i => MatchesRecipeComponent(i.Name, recipe.HeadBundleName)).ToList();
|
||||
var shaftItems = inv.Where(i => MatchesRecipeComponent(i.Name, recipe.ShaftBundleName)).ToList();
|
||||
var headItems = inv.Where(i => recipe.IsHead(i.Name)).ToList();
|
||||
var shaftItems = inv.Where(i => recipe.IsShaft(i.Name)).ToList();
|
||||
|
||||
if (headItems.Count == 0 || shaftItems.Count == 0)
|
||||
{
|
||||
|
|
@ -442,31 +390,11 @@ public class MissileCraftingManager
|
|||
return WeaponCategory.Bow;
|
||||
}
|
||||
|
||||
private static bool IsLooseAmmo(WorldObject item, WeaponCategory category)
|
||||
{
|
||||
string n = item.Name;
|
||||
if (string.IsNullOrEmpty(n)) return false;
|
||||
string normalized = NormalizeItemName(n);
|
||||
if (normalized.Contains("bundle") || normalized.Contains("wrapped")) return false;
|
||||
if (normalized.Contains("arrowhead") || normalized.Contains("arrowshaft")) return false;
|
||||
if (normalized.Contains("quarrelhead") || normalized.Contains("quarrelshaft")) return false;
|
||||
if (normalized.Contains("darthead") || normalized.Contains("dartshaft")) return false;
|
||||
return category switch
|
||||
{
|
||||
WeaponCategory.Bow => normalized.Contains("arrow"),
|
||||
WeaponCategory.Crossbow => normalized.Contains("quarrel") || normalized.Contains("bolt"),
|
||||
WeaponCategory.Atlatl => normalized.Contains("dart"),
|
||||
_ => false,
|
||||
};
|
||||
}
|
||||
private static bool IsLooseAmmo(WorldObject item, WeaponCategory category) =>
|
||||
AmmoRecipes.IsLooseAmmoName(item.Name, category);
|
||||
|
||||
private static int GetAmmoPriority(WorldObject item, WeaponCategory category)
|
||||
{
|
||||
if (string.IsNullOrEmpty(item.Name)) return 0;
|
||||
foreach (var recipe in AllRecipes.Where(r => r.Category == category).OrderByDescending(r => r.Priority))
|
||||
if (item.Name.Equals(recipe.OutputName, StringComparison.OrdinalIgnoreCase)) return recipe.Priority;
|
||||
return 1;
|
||||
}
|
||||
private static int GetAmmoPriority(WorldObject item, WeaponCategory category) =>
|
||||
AmmoRecipes.OutputRank(item.Name, category);
|
||||
|
||||
private WorldObject? FindBestAmmoInInventory(WeaponCategory category, IEnumerable<WorldObject> inventory)
|
||||
{
|
||||
|
|
@ -481,48 +409,6 @@ public class MissileCraftingManager
|
|||
return best;
|
||||
}
|
||||
|
||||
private static bool MatchesRecipeComponent(string itemName, string recipeName)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(itemName) || string.IsNullOrWhiteSpace(recipeName))
|
||||
return false;
|
||||
|
||||
string itemNorm = NormalizeItemName(itemName);
|
||||
string recipeNorm = NormalizeItemName(recipeName);
|
||||
if (itemNorm == recipeNorm)
|
||||
return true;
|
||||
|
||||
// Recipe components are always "Wrapped Bundle of ..." — a finished arrow/quarrel/
|
||||
// dart must never match a component slot. Its bare name (e.g. "arrow") is a substring
|
||||
// of "...arrowshafts"/"...arrowheads", so the loose substring test below would otherwise
|
||||
// pick up already-crafted ammo as a component, making the bot try to combine a finished
|
||||
// arrow onto a bundle and stall forever.
|
||||
if (!itemNorm.Contains("bundle"))
|
||||
return false;
|
||||
|
||||
return itemNorm.Contains(recipeNorm) || recipeNorm.Contains(itemNorm);
|
||||
}
|
||||
|
||||
// Names come from the object cache, so the length is attacker-ish input as far as
|
||||
// this frame is concerned — an unbounded stackalloc on it can blow the stack
|
||||
// (2026-06-03 audit P2). Item names are far under this; anything longer heaps.
|
||||
private const int MaxStackNameChars = 256;
|
||||
|
||||
private static string NormalizeItemName(string value)
|
||||
{
|
||||
char[]? rented = value.Length > MaxStackNameChars ? new char[value.Length] : null;
|
||||
Span<char> buffer = rented is null ? stackalloc char[MaxStackNameChars] : rented;
|
||||
int count = 0;
|
||||
foreach (char ch in value)
|
||||
{
|
||||
if (!char.IsLetterOrDigit(ch))
|
||||
continue;
|
||||
|
||||
buffer[count++] = char.ToLowerInvariant(ch);
|
||||
}
|
||||
|
||||
return new string(buffer[..count]);
|
||||
}
|
||||
|
||||
|
||||
private static string GetCategoryLabel(WeaponCategory cat) => cat switch
|
||||
{
|
||||
|
|
|
|||
|
|
@ -142,11 +142,10 @@ internal static class AfFileParser
|
|||
idx++;
|
||||
|
||||
// If compound condition, parse children until DO: or end of state
|
||||
if (rule.Condition == MetaConditionType.All ||
|
||||
rule.Condition == MetaConditionType.Any ||
|
||||
rule.Condition == MetaConditionType.Not)
|
||||
MetaRule? container = ChildContainer(rule);
|
||||
if (container != null)
|
||||
{
|
||||
rule.Children = new List<MetaRule>();
|
||||
container.Children ??= new List<MetaRule>();
|
||||
while (idx < lines.Length)
|
||||
{
|
||||
string trimmed = lines[idx].TrimStart();
|
||||
|
|
@ -177,11 +176,10 @@ internal static class AfFileParser
|
|||
idx++;
|
||||
|
||||
// If child is compound, recursively parse its children
|
||||
if (child.Condition == MetaConditionType.All ||
|
||||
child.Condition == MetaConditionType.Any ||
|
||||
child.Condition == MetaConditionType.Not)
|
||||
MetaRule? childBox = ChildContainer(child);
|
||||
if (childBox != null)
|
||||
{
|
||||
child.Children = new List<MetaRule>();
|
||||
childBox.Children ??= new List<MetaRule>();
|
||||
int childIndent = lineIndent;
|
||||
while (idx < lines.Length)
|
||||
{
|
||||
|
|
@ -204,19 +202,18 @@ internal static class AfFileParser
|
|||
idx++;
|
||||
|
||||
// Support one more level of nesting
|
||||
if (grandchild.Condition == MetaConditionType.All ||
|
||||
grandchild.Condition == MetaConditionType.Any ||
|
||||
grandchild.Condition == MetaConditionType.Not)
|
||||
MetaRule? grandBox = ChildContainer(grandchild);
|
||||
if (grandBox != null)
|
||||
{
|
||||
grandchild.Children = new List<MetaRule>();
|
||||
ParseNestedConditionChildren(lines, ref idx, grandchild, ci);
|
||||
grandBox.Children ??= new List<MetaRule>();
|
||||
ParseNestedConditionChildren(lines, ref idx, grandBox, ci);
|
||||
}
|
||||
|
||||
child.Children.Add(grandchild);
|
||||
childBox.Children.Add(grandchild);
|
||||
}
|
||||
}
|
||||
|
||||
rule.Children.Add(child);
|
||||
container.Children.Add(child);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -322,18 +319,33 @@ internal static class AfFileParser
|
|||
ParseConditionLine(ct, child);
|
||||
idx++;
|
||||
|
||||
if (child.Condition == MetaConditionType.All ||
|
||||
child.Condition == MetaConditionType.Any ||
|
||||
child.Condition == MetaConditionType.Not)
|
||||
MetaRule? childBox = ChildContainer(child);
|
||||
if (childBox != null)
|
||||
{
|
||||
child.Children = new List<MetaRule>();
|
||||
ParseNestedConditionChildren(lines, ref idx, child, ci);
|
||||
childBox.Children ??= new List<MetaRule>();
|
||||
ParseNestedConditionChildren(lines, ref idx, childBox, ci);
|
||||
}
|
||||
|
||||
parent.Children.Add(child);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The rule that the indented condition lines under <paramref name="rule"/> belong to.
|
||||
/// All/Any take them, and so does a bare Not (RynthAi's old two-line form). A metaf
|
||||
/// Not carries its operand on its own line ("Not NoMobsInDist 5"), so lines follow
|
||||
/// only when that operand is itself All/Any ("Not All" + children) — they are its.
|
||||
/// Null when nothing may follow.
|
||||
/// </summary>
|
||||
private static MetaRule? ChildContainer(MetaRule rule)
|
||||
{
|
||||
while (rule.Condition == MetaConditionType.Not && rule.Children is { Count: 1 })
|
||||
rule = rule.Children[0];
|
||||
return rule.Condition is MetaConditionType.All or MetaConditionType.Any or MetaConditionType.Not
|
||||
? rule
|
||||
: null;
|
||||
}
|
||||
|
||||
// ── Line parsers ────────────────────────────────────────────────────────
|
||||
|
||||
private static void ParseConditionLine(string text, MetaRule rule)
|
||||
|
|
@ -374,6 +386,20 @@ internal static class AfFileParser
|
|||
|
||||
rule.Condition = condType;
|
||||
|
||||
// metaf writes Not's operand on the same line: "Not NoMobsInDist 5". This used
|
||||
// to be dropped — an empty Not never fires. (A bare "Not" with its operand on
|
||||
// the next line is RynthAi's old form; ChildContainer still accepts it.)
|
||||
if (condType == MetaConditionType.Not)
|
||||
{
|
||||
if (rest.Length > 0)
|
||||
{
|
||||
var operand = new MetaRule { State = rule.State };
|
||||
ParseConditionLine(rest, operand);
|
||||
rule.Children = new List<MetaRule> { operand };
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
// Parse condition data based on type
|
||||
switch (condType)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -92,6 +92,16 @@ internal static class AfFileWriter
|
|||
// They now have real keywords in MetaSchema and fall through to the
|
||||
// bare-numeric writer below, so they round-trip to the typed enum.
|
||||
|
||||
// Not takes its operand on the same line, as metaf writes it ("Not NoMobsInDist 5");
|
||||
// an All/Any operand's own children then follow, indented, as usual.
|
||||
if (rule.Condition == MetaConditionType.Not && rule.Children is { Count: 1 })
|
||||
{
|
||||
writer.Write(keyword);
|
||||
writer.Write(' ');
|
||||
WriteCondition(writer, rule.Children[0], childIndent);
|
||||
return;
|
||||
}
|
||||
|
||||
if (rule.Condition == MetaConditionType.All ||
|
||||
rule.Condition == MetaConditionType.Any ||
|
||||
rule.Condition == MetaConditionType.Not)
|
||||
|
|
|
|||
|
|
@ -1948,6 +1948,36 @@ public sealed partial class RynthAiPlugin
|
|||
return false;
|
||||
}
|
||||
|
||||
/// <summary>After an exact-name miss, name up to three items whose names contain the
|
||||
/// typed text and point at the partial-match form of the command ("usei" → "useip").
|
||||
/// Exact is the default, like UtilityBelt, and "/ub usei round" read as a bug.</summary>
|
||||
private void SuggestPartialMatches(string name, bool inv, bool land, string verb)
|
||||
{
|
||||
if (_objectCache == null || name.Length == 0) return;
|
||||
|
||||
var names = new List<string>();
|
||||
bool Wants(WorldObject wo) =>
|
||||
names.Count < 3
|
||||
&& wo.Name.IndexOf(name, StringComparison.OrdinalIgnoreCase) >= 0
|
||||
&& !names.Contains(wo.Name, StringComparer.OrdinalIgnoreCase);
|
||||
|
||||
if (inv)
|
||||
{
|
||||
foreach (var wo in _objectCache.GetDirectInventory())
|
||||
if (Wants(wo)) names.Add(wo.Name);
|
||||
foreach (var wo in _objectCache.AllKnownObjects())
|
||||
if (Wants(wo) && IsCarriedByPlayer(wo.Id)) names.Add(wo.Name);
|
||||
}
|
||||
if (land)
|
||||
{
|
||||
foreach (var wo in _objectCache.GetLandscapeObjects())
|
||||
if (Wants(wo)) names.Add(wo.Name);
|
||||
}
|
||||
|
||||
if (names.Count > 0)
|
||||
ChatLine($"[RynthAi] Did you mean {string.Join(", ", names.Select(n => $"'{n}'"))}? {verb}p matches part of a name.");
|
||||
}
|
||||
|
||||
private void HandleUseCommand(string[] parts, bool inv, bool land, bool partial)
|
||||
{
|
||||
if (parts.Length < 3)
|
||||
|
|
@ -1974,7 +2004,12 @@ public sealed partial class RynthAiPlugin
|
|||
}
|
||||
|
||||
var obj = FindObject(argStr.Trim(), inv, land, partial);
|
||||
if (obj == null) { ChatLine($"[RynthAi] Not found: '{argStr.Trim()}'"); return; }
|
||||
if (obj == null)
|
||||
{
|
||||
ChatLine($"[RynthAi] Not found: '{argStr.Trim()}'");
|
||||
if (!partial) SuggestPartialMatches(argStr.Trim(), inv, land, parts[1].ToLowerInvariant());
|
||||
return;
|
||||
}
|
||||
Host.UseObject((uint)obj.Id);
|
||||
ChatLine($"[RynthAi] UseObject: {obj.Name} (0x{obj.Id:X})");
|
||||
}
|
||||
|
|
|
|||
102
Tools/gen-ammo-recipes.py
Normal file
102
Tools/gen-ammo-recipes.py
Normal file
|
|
@ -0,0 +1,102 @@
|
|||
"""Generate RynthAi's ammo recipe table from the ACE world database.
|
||||
|
||||
Every fletching combine that makes arrows, quarrels or atlatl darts, as the
|
||||
server knows it: head applied to shaft, result, and the recipe's difficulty.
|
||||
Replaces a hand-written list that had heads that don't exist ("Quarrelheads",
|
||||
"Atlatl Dart Heads": quarrels and darts use the same Arrowheads, the shaft
|
||||
decides), knew only the "Wrapped Bundle of" names (plain "Bundle of" is real
|
||||
too) and missed the elemental, Greater/Deadly, Infinite and unique heads.
|
||||
|
||||
1. Export the fletching recipes (skill 37) to a TSV, e.g. with the MariaDB CLI
|
||||
against a stock ace_world:
|
||||
|
||||
mariadb -u root ace_world -e "
|
||||
SELECT r.id AS recipe, r.difficulty, r.success_Amount AS amt,
|
||||
cb.source_W_C_I_D AS src, ns.value AS source_name,
|
||||
cb.target_W_C_I_D AS tgt, nt.value AS target_name,
|
||||
r.success_W_C_I_D AS out_wcid, nr.value AS result_name
|
||||
FROM recipe r
|
||||
JOIN cook_book cb ON cb.recipe_Id = r.id
|
||||
LEFT JOIN weenie_properties_string ns ON ns.object_Id = cb.source_W_C_I_D AND ns.type = 1
|
||||
LEFT JOIN weenie_properties_string nt ON nt.object_Id = cb.target_W_C_I_D AND nt.type = 1
|
||||
LEFT JOIN weenie_properties_string nr ON nr.object_Id = r.success_W_C_I_D AND nr.type = 1
|
||||
WHERE r.skill = 37 ORDER BY nr.value, ns.value;" > fletching.tsv
|
||||
|
||||
2. python gen-ammo-recipes.py fletching.tsv [out.cs]
|
||||
|
||||
out.cs defaults to Plugins/RynthCore.Plugin.RynthAi/Combat/AmmoRecipes.Data.cs.
|
||||
"""
|
||||
import csv
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
|
||||
AMMO = re.compile(r"(Arrow|Quarrel|Atlatl Dart)$")
|
||||
|
||||
|
||||
def category(shaft):
|
||||
if "Arrowshaft" in shaft:
|
||||
return "Bow"
|
||||
if "Quarrelshaft" in shaft:
|
||||
return "Crossbow"
|
||||
if "Dart" in shaft:
|
||||
return "Atlatl"
|
||||
raise SystemExit(f"unknown shaft: {shaft!r}")
|
||||
|
||||
|
||||
def cs(s):
|
||||
return '"' + s.replace("\\", "\\\\").replace('"', '\\"') + '"'
|
||||
|
||||
|
||||
def main():
|
||||
tsv = sys.argv[1]
|
||||
here = os.path.dirname(os.path.abspath(__file__))
|
||||
out = sys.argv[2] if len(sys.argv) > 2 else os.path.join(
|
||||
here, "..", "Plugins", "RynthCore.Plugin.RynthAi", "Combat", "AmmoRecipes.Data.cs")
|
||||
|
||||
rows = {}
|
||||
for r in csv.DictReader(open(tsv, encoding="utf-8-sig"), delimiter="\t"):
|
||||
result = r["result_name"]
|
||||
if not result or result == "NULL" or not AMMO.search(result):
|
||||
continue
|
||||
key = (r["source_name"], r["target_name"])
|
||||
row = (r["source_name"], r["target_name"], result, category(r["target_name"]), int(r["difficulty"]))
|
||||
if key in rows:
|
||||
if rows[key][2] != result:
|
||||
raise SystemExit(f"one head+shaft, two results: {rows[key]} vs {row}")
|
||||
# Same names, two weenies (e.g. Greater Deadly Blunt at 300 and 320): the
|
||||
# client only sees names, so keep the harder one for the skill check.
|
||||
row = max(rows[key], row, key=lambda x: x[4])
|
||||
rows[key] = row
|
||||
|
||||
ordered = sorted(rows.values(), key=lambda x: (-x[4], x[3], x[2], x[0], x[1]))
|
||||
w = max(len(cs(x[0])) for x in ordered) + 1
|
||||
v = max(len(cs(x[1])) for x in ordered) + 1
|
||||
o = max(len(cs(x[2])) for x in ordered) + 1
|
||||
|
||||
lines = [
|
||||
"// <auto-generated>",
|
||||
"// Generated by Tools/gen-ammo-recipes.py from the ACE world database",
|
||||
"// (recipe + cook_book, skill 37 = Fletching). Do not edit by hand: re-export and",
|
||||
"// re-run the script. Sorted by difficulty, highest first.",
|
||||
"// </auto-generated>",
|
||||
"",
|
||||
"namespace RynthCore.Plugin.RynthAi;",
|
||||
"",
|
||||
"public static partial class AmmoRecipes",
|
||||
"{",
|
||||
f" /// <summary>All {len(ordered)} fletching combines that make ammo, hardest (best) first.</summary>",
|
||||
" public static readonly AmmoRecipe[] All =",
|
||||
" {",
|
||||
]
|
||||
for head, shaft, result, cat, diff in ordered:
|
||||
lines.append(f" new({(cs(head) + ',').ljust(w)} {(cs(shaft) + ',').ljust(v)} "
|
||||
f"{(cs(result) + ',').ljust(o)} WeaponCategory.{cat + ',':<9} {diff:3}),")
|
||||
lines += [" };", "}", ""]
|
||||
with open(out, "w", encoding="utf-8", newline="\r\n") as f:
|
||||
f.write("\n".join(lines))
|
||||
print(f"{len(ordered)} recipes -> {os.path.normpath(out)}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Loading…
Reference in a new issue