Repository navigation
Attack bar and tick number follow the True Tile Movement Animations model - #205
Open
LokiRushin wants to merge 1 commit into
Open
LokiRushin wants to merge 1 commit into
LokiRushin wants to merge 1 commit into
Conversation
…number True Tile Movement Animations hides the player and draws its own model that follows the true tile, so the attack bar and the tick number (anchored to the hidden player) trail behind the visible character. Listen for the model location that plugin publishes as a PluginMessage and anchor both overlays to it while it is being published. Without that plugin, or when the location is stale, nothing changes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01N4x6LN1VZySxxbTN4RuFHP
Collaborator
|
I don't want that unit test, I'd much prefer if you put the logic in its own file just for this change. I don't want other plugin code in the attack timer really, but i wouldn't mind calling a well isolated wrapper function. |
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.
Problem
True Tile Movement Animations hides the player and draws its own model that follows the true tile. The attack bar and the tick number are anchored to
Player.getLocalLocation(), which is the hidden player, so with both plugins on they trail behind the character you actually see.Change
The plugin subscribes to the
PluginMessagethat True Tile Movement Animations publishes with the model's location (Posiedien76/TrueMovementAnimationsPlugin#32: namespacetrue-tile-movement-animation, namelocal-player-model-location). Both overlays use that location while it is being published.Without that plugin, when the message says the real player is shown, when it is older than two game ticks, or when it is for another world view, everything is drawn exactly where it is today (the
BOTTOMtick position still goes throughplayer.getCanvasTextLocation). No new config option.Testing
gradlew check: checkstyle clean, 20 tests, 19 passed, 1 skipped (as before), including the newTrueTileModelLocationTest, which covers: no message, foreign namespace, active location, staleness after two ticks, explicitactive=false, other world view.This only takes effect once Posiedien76/TrueMovementAnimationsPlugin#32 is merged; until then it changes nothing.
🤖 Generated with Claude Code
https://claude.ai/code/session_01N4x6LN1VZySxxbTN4RuFHP