Optimize item tags for proper loot spawning
- Cards: Collection + Luxury (removed Misc for rarer spawns) - Packs: Collection + Misc (findable in misc loot) - Binder/Sheet: Collection + Luxury (removed Tool placeholder) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
aea9f81d1f
commit
30285644d6
@ -710,26 +710,20 @@ namespace TradingCardMod
|
|||||||
// Set display quality based on rarity
|
// Set display quality based on rarity
|
||||||
SetDisplayQuality(item, card.GetQuality());
|
SetDisplayQuality(item, card.GetQuality());
|
||||||
|
|
||||||
// Set tags
|
// Set tags - Cards are collectibles
|
||||||
item.Tags.Clear();
|
item.Tags.Clear();
|
||||||
|
|
||||||
Tag? luxuryTag = TagHelper.GetTargetTag("Luxury");
|
|
||||||
if (luxuryTag != null)
|
|
||||||
{
|
|
||||||
item.Tags.Add(luxuryTag);
|
|
||||||
}
|
|
||||||
|
|
||||||
Tag? miscTag = TagHelper.GetTargetTag("Misc");
|
|
||||||
if (miscTag != null)
|
|
||||||
{
|
|
||||||
item.Tags.Add(miscTag);
|
|
||||||
}
|
|
||||||
|
|
||||||
Tag? collTag = TagHelper.GetTargetTag("Collection");
|
Tag? collTag = TagHelper.GetTargetTag("Collection");
|
||||||
if (collTag != null)
|
if (collTag != null)
|
||||||
{
|
{
|
||||||
item.Tags.Add(collTag);
|
item.Tags.Add(collTag);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Tag? luxuryTag = TagHelper.GetTargetTag("Luxury");
|
||||||
|
if (luxuryTag != null)
|
||||||
|
{
|
||||||
|
item.Tags.Add(luxuryTag);
|
||||||
|
}
|
||||||
// ============================================================
|
// ============================================================
|
||||||
|
|
||||||
// Add our custom TradingCard tag
|
// Add our custom TradingCard tag
|
||||||
|
|||||||
@ -64,10 +64,15 @@ namespace TradingCardMod
|
|||||||
item.Quality = 3; // Uncommon quality for packs
|
item.Quality = 3; // Uncommon quality for packs
|
||||||
item.DisplayQuality = (DisplayQuality)3;
|
item.DisplayQuality = (DisplayQuality)3;
|
||||||
|
|
||||||
// Set tags
|
// Set tags - Packs are collectibles found in misc loot
|
||||||
item.Tags.Clear();
|
item.Tags.Clear();
|
||||||
|
|
||||||
// Add Misc tag for loot spawning
|
Tag? collTag = TagHelper.GetTargetTag("Collection");
|
||||||
|
if (collTag != null)
|
||||||
|
{
|
||||||
|
item.Tags.Add(collTag);
|
||||||
|
}
|
||||||
|
|
||||||
Tag? miscTag = TagHelper.GetTargetTag("Misc");
|
Tag? miscTag = TagHelper.GetTargetTag("Misc");
|
||||||
if (miscTag != null)
|
if (miscTag != null)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -80,12 +80,19 @@ namespace TradingCardMod
|
|||||||
// Set display quality
|
// Set display quality
|
||||||
item.DisplayQuality = (DisplayQuality)3;
|
item.DisplayQuality = (DisplayQuality)3;
|
||||||
|
|
||||||
// Set tags - storage items should be tools
|
// Set tags - storage items are luxury collectibles
|
||||||
item.Tags.Clear();
|
item.Tags.Clear();
|
||||||
Tag? toolTag = TagHelper.GetTargetTag("Tool");
|
|
||||||
if (toolTag != null)
|
Tag? collTag = TagHelper.GetTargetTag("Collection");
|
||||||
|
if (collTag != null)
|
||||||
{
|
{
|
||||||
item.Tags.Add(toolTag);
|
item.Tags.Add(collTag);
|
||||||
|
}
|
||||||
|
|
||||||
|
Tag? luxuryTag = TagHelper.GetTargetTag("Luxury");
|
||||||
|
if (luxuryTag != null)
|
||||||
|
{
|
||||||
|
item.Tags.Add(luxuryTag);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Configure slots to only accept items with allowed tags
|
// Configure slots to only accept items with allowed tags
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user