Skip to content

Reduce code duplication in sushi attackby - #5412

Open
out-of-phaze wants to merge 2 commits into
NebulaSS13:devfrom
out-of-phaze:codequality/sushi-dupe
Open

Reduce code duplication in sushi attackby#5412
out-of-phaze wants to merge 2 commits into
NebulaSS13:devfrom
out-of-phaze:codequality/sushi-dupe

Conversation

@out-of-phaze

@out-of-phaze out-of-phaze commented Aug 13, 2026

Copy link
Copy Markdown
Member

Description of changes

moves some of the duplicated sushi code into a proc that we reuse, so only one spot actually news the sushi.

  • tested

Why and what will this PR improve

better code and also leaves a comment to help with anyone else's confusion about raw chicken sushi

@out-of-phaze out-of-phaze added the work in progress This PR is under development and shouldn't be merged. label Aug 13, 2026
@out-of-phaze
out-of-phaze force-pushed the codequality/sushi-dupe branch from 8fdd4b4 to 94a9b36 Compare August 13, 2026 22:10
MistakeNot4892
MistakeNot4892 previously approved these changes Aug 25, 2026
@out-of-phaze
out-of-phaze force-pushed the codequality/sushi-dupe branch from 94a9b36 to eb49d2c Compare August 26, 2026 18:56
@out-of-phaze out-of-phaze added ready for review This PR is ready for review and merge. and removed work in progress This PR is under development and shouldn't be merged. labels Aug 26, 2026
@out-of-phaze
out-of-phaze marked this pull request as ready for review August 26, 2026 18:56
@out-of-phaze

Copy link
Copy Markdown
Member Author

the sushi also copies the offset from the item on the table. layering is a bit odd, not sure how to make it more intuitive, but this is better than it just defaulting to the middle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready for review This PR is ready for review and merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants