Skip to content

Fix #36: Use vanilla quality generation for gear without explicit override#54

Open
feldoh wants to merge 1 commit into
mainfrom
fix/36-apparel-quality
Open

Fix #36: Use vanilla quality generation for gear without explicit override#54
feldoh wants to merge 1 commit into
mainfrom
fix/36-apparel-quality

Conversation

@feldoh
Copy link
Copy Markdown
Owner

@feldoh feldoh commented Apr 12, 2026

Summary

  • When TC generates apparel/weapons without an explicit quality override, now uses QualityUtility.GenerateQualityGeneratingPawn (vanilla behavior) instead of defaulting to Normal
  • Applies royal title minimum quality clamp when the pawn has a title
  • Applies gearHealthRange to generated gear hit points (matching vanilla's PostProcessGeneratedGear)
  • Both ApparelGenPatch.GenerateNewApparel and WeaponGenPatch.GenerateNewWeapon are fixed

Test plan

  • Create a pawnkind edit with forced specific apparel but NO quality override
  • Trigger a raid and inspect spawned pawns' gear quality — should vary (not always Normal)
  • Test with a royal title pawn — gear quality should be at least the title's minimum
  • Test with explicit quality override — should still use the user-set value
  • Verify gear health varies according to gearHealthRange

Closes #36

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

…xplicit override

When no quality override is set in the spec, apparel and weapons now use
QualityUtility.GenerateQualityGeneratingPawn instead of defaulting to Normal.
Also respects royal title minimum quality and applies gearHealthRange hit points.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ApparelGen default quality is ALWAYS normal

1 participant