镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

feat(app): add your own boss definitions with a mechanics.json in the user folder - #34

Merged
danifischer merged 1 commit into
masterfrom
feat/local-mechanics
Nov 11, 2026
Merged

danifischer merged 1 commit into
masterfrom
feat/local-mechanics

Conversation

@danifischer

Copy link
Copy Markdown
Owner

Summary

  • mechanics.json in the settings folder extends the shipped boss definitions (same format): same id replaces, new ids are added, ignoredMechanics are added up.
  • rta config mechanics creates a commented template and opens it.
  • An invalid file prints the reason on stderr and the shipped definitions are used.
  • Public entry point CustomMechanics.Load(path) in the Logic library; README section "Your own bosses".

Testing

  • 6 new tests (merge rules, template stays valid, missing file); 149 offline tests pass locally.
  • Checked by hand that a broken file in RTA_HOME prints the warning and the command still works.

🤖 Generated with Claude Code

… user folder

An encounter in the file replaces the shipped one with the same id, new ids
are added and ignored mechanics are added up. `rta config mechanics` creates
and opens the file; an invalid file is reported and the shipped definitions
are used.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@danifischer
danifischer merged commit 150da98 into master Nov 11, 2026
1 check passed
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.

1 participant