Feat/max priority api and transpiler cleanup#9
Open
coolnether123 wants to merge 12 commits intoMainfrom
Open
Conversation
Owner
coolnether123
commented
Mar 10, 2026
- Fixed rulebuilder handling for priorities above 4
- Clamped random rule assignment through the normal max-priority path
- Kept the default max priority at 9 and made that default consistent
- Replaced hardcoded enable-priority behavior with shared logic
- Improved rulebuilder labels/tooltips for extended priorities
- Added a public, documented, reflection-friendly priority API
- Reduced noisy transpiler warnings and made snapshot behavior more selective
- Updated cooperative patching and test harness code to use the new diagnostics flow
Ttdg/max priority increase
Integrated a Harmony-based transpiler/framework and refactored manual priorities across the mod. Added a set of ModAPI.Harmony/Spine helper files (HarmonyBootstrap, HarmonyCompat, HarmonyHelper, HarmonyUtil, PatchRegistry and many transpiler helpers) and wired them into the project file. Refactored and extended priority logic: centralized remapping, tooltip and color logic, and replaced hardcoded vanilla max-priority constants with calls to a configurable GetMaxPriority(); added robust IL pattern-finding/replace helpers and safer transpiler usage. UI/drawing changes: CustomWorkBoxDrawer now supports compact priority rendering and Patch_WorkPriority_DoCell_Unified was updated to draw compact priorities, adjust caching/layout comments, and tidy hover/skill overlays. Minor cleanups in Pawn_WorkSettings prefix and project file updates; compiled assembly and pdb were updated.
Still need to make a proper vanilla default number for higher priority maxes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.