Skip to content

Clean up shaving/throatslitting and bodypart butchery code#4450

Closed
noelle-lavenza wants to merge 3 commits intoMonkestation:mainfrom
noelle-lavenza:vander-codequality/shaving
Closed

Clean up shaving/throatslitting and bodypart butchery code#4450
noelle-lavenza wants to merge 3 commits intoMonkestation:mainfrom
noelle-lavenza:vander-codequality/shaving

Conversation

@noelle-lavenza
Copy link

@noelle-lavenza noelle-lavenza commented Dec 4, 2025

Separates shaving, throatslitting, and bodypart butchery into their own procs outside of MiddleClick to make stuff easier to read and reduce the overall indentation level.

Introduces an is_short_blade(item) helper that checks if an item is a sharp and short weapon, and uses that instead of the bespoke check in a few places.

Rewrites bodypart butchery code to be cleaner and separate out a few constants. I originally did a lot more but decided that was overengineered.

untested

@noelle-lavenza noelle-lavenza marked this pull request as draft December 4, 2025 06:17
@CheffieGithub
Copy link
Collaborator

open if finish

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants