Skip to content

Unhardcode KillSign sprite offset - #4624

Open
mazziebot wants to merge 1 commit into
impstation:masterfrom
mazziebot:impstation/work/mazziebot/unhardcode-killsign-offset
Open

mazziebot wants to merge 1 commit into
impstation:masterfrom
mazziebot:impstation/work/mazziebot/unhardcode-killsign-offset

Conversation

@mazziebot

Copy link
Copy Markdown

About the PR

KillSignComponent.DoOffset was checked in its system for applying a fixed vertical offset based on the height of the sprite. Now it's deprecated in favor of with KillSignComponent.Offset, which can be set to any float to accommodate novel offsets.

Why / Balance

#4035 wants to use KillSignComponent.DoOffset so the sword sprite appears above the mob, but due to the rigidness of the offset calculation, it doesn't properly offset above and is slightly clipping Urist in tests.

Also DoOffset is used like nowhere so it's safe to change this to be less annoying

Technical details

BREAKING CHANGE: KillSignComponent.DoOffset has been obsoleted for Offset. For sprites of height 32 using DoOffset, the equivalent Offset value is 16.1875f.

Media

N/A

Requirements

Licensing

  • I give permission for any changes to the repository made in this PR to be relicensed under MIT.

Changelog

space-wizards#4035 wants to use `KillSignComponent.DoOffset` so the sword sprite appears above the mob, but due to the rigidness of the offset calculation, it doesn't properly offset above and is slightly clipping Urist in tests.

BREAKING CHANGE: `KillSignComponent.DoOffset` has been obsoleted for Offset. For sprites of height 32 using `DoOffset`, the equivalent `Offset` value is 16.1875f.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Changes: Upstream upstreamable? could be cool. could be nice!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants