-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Localize makesentient command. Move makesentient method to mind system. #38565
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
Localize makesentient command. Move makesentient method to mind system. #38565
Conversation
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
|
WHY GOD WHY!!! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very minor changes request, looks good overall :3
|
Fildrance?!? How can this be??? |
|
Good call on the EnsureComp shortcut. I was a touch confused by what you meant but I got it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me
Content.Server/Mind/MindSystem.cs
Outdated
| using Robust.Shared.Player; | ||
| using Robust.Shared.Utility; | ||
| using System.Diagnostics.CodeAnalysis; | ||
| using Content.Shared.Emoting; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sort alphabetically
| [Dependency] private readonly FollowerSystem _followerSystem = default!; | ||
| [Dependency] private readonly TransformSystem _transform = default!; | ||
| [Dependency] private readonly SharedMindSystem _mindSystem = default!; | ||
| [Dependency] private readonly MindSystem _mindSystem = default!; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep the Shared system and move the command to shared instead
|
You got it boss man |
…m. (space-wizards#38565) * praying pjb doesn't smite me for this 🙏 * requested changes * Update makesentient-command.ftl * verin commith and verin taketh away
…m. (space-wizards#38565) * praying pjb doesn't smite me for this 🙏 * requested changes * Update makesentient-command.ftl * verin commith and verin taketh away
About the PR
Why / Balance
I have now made it my mission to move these reusable methods to systems 😠
With that said, I moved MakeSentient to server side MindSystem and updated references accordingly (including cleanup up using statements as I went). I felt like the MindSystem was a good place for this but I can of course make a new system for it if that is so desired.
Otherwise performed localization and cleanup of the makesentient command. I moved the EntityExists check to the line with TryGetEntity because that was as it was in the electrocute command and I felt this made sense. Do comment on it if that is wrong.
Requirements
Breaking changes
MakeSentient method has been moved from MakeSentientCommand.cs to Content.Shared\Mind\SharedMindSystem.cs and the EntityManager variable was removed. Calls to this method will need to be updated.