Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WPR1JsWFA1U5F2tFzXBMg
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WPR1JsWFA1U5F2tFzXBMg
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WPR1JsWFA1U5F2tFzXBMg
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.
This PR adds version 1.01793347442 of the Pathfinder Companion Script, with two bug fixes that we have used in two live game sessions.
Following the repo layout, the new version folder holds a full copy of the script. The first commit is a plain copy of 1.01518021707 with only the version numbers changed, so the fixes are easiest to review commit by commit.
1. Applying a condition resets the HP of the character's tokens
applyStatusset the marker on the first token found for the character and then calledupdateAllTokens(character, graphic). That first token can be an old copy on another page.updateAllTokenssaves it as the default token and copies its bars and name onto every other token of the character. As a result, every condition change (for example Prone or Grappled) set the HP shown on the token back to an old value.Fix:
applyStatusnow sets the marker on every token that represents the character and no longer callsupdateAllTokens. Mook tokens are handled as before.Side effect: a condition change no longer saves a new default token. The default token is still updated by the other "Maintain PC default tokens" triggers.
2. Mook Numbering renames PCs and unique NPCs
Mook Numbering numbers a new token when none of its bars is linked. A token has no bar links yet when it is created, so PCs and unique NPCs were renamed too (for example "Lune 1").
Fix: a token is now numbered only if its character is not controlled by a player and the character's default token has no linked bar.
Checks
script.jsonvalidates againstscript.json.schema, and every folder listed inpreviousversionsexists.node --checkpasses on the new file.schemaVersionkeeps the existing settings: the update block incheckInstallonly fills in missing keys.🤖 Generated with Claude Code