Enhance auto-repair system with advanced options #4135
Merged
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.
Added new configuration options for auto-repair, including NPC selection, distance, skill usage, and in-town-only restriction. Refactored and expanded the repair logic in CoreLogic.pm to support equipping after repair, skill-based repair, and improved NPC interaction and routing.
#Reworked:
repairAuto <boolean flag> - Now an NPC can handle the repair, it is no longer directly tied to the repair skill
repairAuto_list <short equipment name/id> - Now also supports ids
#These works the same as autoSell/autoStorage rules:
repairAuto_npc <map name> <x> <y>
repairAuto_standpoint <map name> <x> <y>
repairAuto_distance <number>
repairAuto_maxDistance <number>
repairAuto_npc_steps <NPC conversation codes>
#New:
repairAuto_useSkill <boolean flag> - Uses Weapon Repair (108) skill for repair, instead of NPC
repairAuto_equipAfter <boolean flag> - Automatically equips gear after repair
repairAuto_warp <boolean flag> - Allow use of warp items (eg. Butterlfy Wing) for faster repair
repairAuto_inTownOnly <boolean flag> - AI will only queue repairAuto when in town