Skip to content

Make impulse cost calculation respect max magnitude - #1307

Merged
Robotgiggle merged 1 commit into
FallingColors:mainfrom
beholderface:main
Sep 22, 2026
Merged

Robotgiggle merged 1 commit into
FallingColors:mainfrom
beholderface:main

Conversation

@beholderface

Copy link
Copy Markdown
Contributor

Impulse caps the velocity applied to an entity from a single cast at 8192 blocks per tick. Currently, it does not take this limit into account when determining spell cost (a 10,000-magnitude impulse attempt will still consume 100,000,000 dust, despite only applying 8192 b/t of motion). This PR fixes that.

@Robotgiggle Robotgiggle left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Robotgiggle
Robotgiggle added this pull request to the merge queue Sep 22, 2026
Merged via the queue into FallingColors:main with commit ffa7c37 Sep 22, 2026
8 checks passed
@github-project-automation github-project-automation Bot moved this from 📋 Backlog to ✅ Done in Hex Casting Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants