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

erase verb for all entities #2032

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

Conversation

MilonPL
Copy link
Contributor

@MilonPL MilonPL commented Oct 21, 2024

About the PR

adds the erase verb to all entities

Why / Balance

funny

Technical details

the erase method is so fucking shit i need to refactor it upstream at some point but review hell
i commented it as best as I could but big code change so
split into two methods, one for NetUserId and another one for EntityUid
the NetUserId one calls the base EntityUid method and does some extra shit like nuking messages and spawning an observer
ideally this would all be in helper methods instead of whatever fever dream this is
AdminVerbSystem modified to add the erase verb for entities without a mind
Contents of this entire PR are dual-licensed under MIT, forks that are not AGPL are free to use them.

Media

image
image
image

Breaking changes

backwards compatible
trust

Changelog

🆑
DELTAVADMIN:

  • tweak: The Erase verb is now available on all entities.

@MilonPL MilonPL requested a review from a team as a code owner October 21, 2024 04:14
@github-actions github-actions bot added Status: Needs Review Changes: C# Changes any cs files Changes: Localization Changes any ftl files and removed Status: Needs Review labels Oct 21, 2024
@MilonPL
Copy link
Contributor Author

MilonPL commented Oct 21, 2024

I hate this entire code, I might want to move the popup to a separate method and turn change the text based on if the target has a MindContainer or not. It's pissing me off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changes: C# Changes any cs files Changes: Localization Changes any ftl files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant