Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an update action buttons proc for items to clean up duplicate code #28067

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Vi3trice
Copy link
Contributor

What Does This PR Do

Mobs already have this proc, I'm defining an item level version of update_action_buttons to remove a lot of duplicated code.

The kinetic crusher also had that behind a spawn(1) for some reasons and saw no point in keeping that.

Why It's Good For The Game

It's copypasted in quite a few places and could use its own proc at this point.

Testing

Spawned in with a couple of toggleable objects. It's identical otherwise.


Declaration

  • I confirm that I either do not require pre-approval for this PR, or I have obtained such approval and have included a screenshot to demonstrate this below.

Changelog

NPFC

@ParadiseSS13-Bot ParadiseSS13-Bot added the -Status: Awaiting type assignment This PR is waiting for its type to be assigned internally label Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
-Status: Awaiting type assignment This PR is waiting for its type to be assigned internally
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants