Skip to content
Open

uau #49

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions System/RecipeManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,44 @@ public override void AddRecipeGroups()
}
}
}

public class AnyWood1 : ModSystem
{
public static RecipeGroup AnyWood;
public static int[] PrimaryItems => new int[] {
ItemID.Blowpipe,
ItemID.ClimbingClaws,
ItemID.Aglet,
ItemID.PortableStool,
ItemID.Umbrella,
ItemID.Spear,
ItemID.WoodenBoomerang,
ItemID.Radar

};

public override void AddRecipeGroups()
{
// Main group with trophy as first item (for icon)
AnyWood = new RecipeGroup(() => Language.GetTextValue("Any Wood Chest Item"), PrimaryItems);
RecipeGroup.RegisterGroup("PvPAdventure:AnyWood", AnyWood);

// Create exclude subgroups while maintaining icon as first item
foreach (int itemID in PrimaryItems.Where(id => id != ItemID.MimicBanner))
{
var validItems = PrimaryItems
.Where(id => id != itemID && id != ItemID.MimicBanner)
.Prepend(ItemID.MimicBanner) // Keep item first for icon
.ToArray();

RecipeGroup group = new RecipeGroup(
() => Language.GetTextValue("Any Wood Chest Item"),
validItems
);
RecipeGroup.RegisterGroup($"PvPAdventure:AnyWoodExclude{itemID}", group);
}
}
}
public class RecipeSystem : ModSystem
{
public override void AddRecipes()
Expand Down Expand Up @@ -933,6 +971,15 @@ public override void AddRecipes()
.DisableDecraft()
.Register();
}
// Primary Mimic recipes (Relic remains icon)
foreach (int itemID in AnyWood1.PrimaryItems.Where(id => id != ItemID.MimicBanner))
{
Recipe.Create(itemID)
.AddRecipeGroup($"PvPAdventure:AnyWoodExclude{itemID}", 2)
.AddCondition(shimmerCondition)
.DisableDecraft()
.Register();
}
}
}
}
Expand Down