Give favoured and repressed guilds their own base effects - #69
Conversation
The scope switch in LawHandler.getLawModifiers had no breaks, so a domestic guild fell through to the vassal cases. Favoured guilds got favoured_vassals (+15% trade) instead of favoured_guilds (+20%), and repressed guilds got repressed_vassals (-10%) instead of repressed_guilds (-15%). - Break after the DOMESTIC_GUILDS case - VASSALS and VASSAL_GUILDS share one case - Add FavourRepressBaseEffectTest for all four base effects Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthrough
ChangesLaw modifier scope
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to No actionable merge-blocking risk is identified; the intended guild income change is ready for normal checks. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
A rabbit checks the guilds at play, Comment |
The scope switch in
LawHandler.getLawModifiershad nobreaks, so a domestic guild fell through to the vassal cases:base-effects)favoured_guilds: +20% trade in our territoryfavoured_vassals: +15%, plus the vassaltax_multiplier(-5)repressed_guilds: −15% trade in our territoryrepressed_vassals: −10%, plus the vassaltax_multiplier(5)The live server shows the old behaviour: YevaKeepers (favoured in TheHolyOrder) only matches the exported
province_data.jsonwhen the +15% vassal effect is applied.DOMESTIC_GUILDScaseVASSALSandVASSAL_GUILDSshare one caseFavourRepressBaseEffectTestcovering all four base effects. Two of its tests fail onmain(15 vs 20, −10 vs −15)Full suite: 2303 tests pass locally with
mvn clean verify.Deploying this changes income for every nation that favours or represses guilds. A favoured guild gets more trade share in its home territory, and a repressed guild loses more.
🤖 Generated with Claude Code
Summary by CodeRabbit