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

Make NeedHand modifiable for injectorSystem #29870

Merged
merged 2 commits into from
Jul 24, 2024

Conversation

osjarw
Copy link
Contributor

@osjarw osjarw commented Jul 10, 2024

About the PR

Moved hardcoded variable to yml, so it can be set in prototypes.

Why / Balance

A feature I'm planning would be greatly simplified if we allowed the existence of hand-free injectors/syringes.

I feel that this change is something that could be left behind if that feature I'm making either isn't merged or gets reverted.

Technical details

There ain't that much to review, I don't think this breaks anything, and the default values stay unchanged.

Media

  • I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Breaking changes

Changelog

@@ -81,6 +81,12 @@ public sealed partial class InjectorComponent : Component
[AutoNetworkedField]
[DataField]
public InjectorToggleMode ToggleState = InjectorToggleMode.Draw;

[DataField]
public bool NeedHand = true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While I do understand it's a pretty drop in place replacement for the doafter variables, please leave summary comments about these, preferably explaining that they affect doafters and also explaining when you would ever want/need it to be false

public bool NeedHand = true;

[DataField]
public bool BreakOnHandChange = true;
Copy link
Contributor

@Plykiya Plykiya Jul 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same thing here, since I'm finding it hard to imagine why BreakOnChange would need to be false, are you trying to double inject someone...?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made this one modifiable mainly because it appears to be quite related to the NeedHand variable. I haven't yet found a case where it would be set to false, but I don't see any reason to leave it hardcoded.

On another note, I think that I might turn couple other variables to be modifiable, particularly the one that tells how still you need to be, without it my WIP medibot change will need a nasty 0.1 second wait operator to let the bot stop moving, which currently translates to like 6 lines of yml, or 2 primitive tasks.

@Plykiya
Copy link
Contributor

Plykiya commented Jul 24, 2024

well, sure

@Plykiya Plykiya merged commit aa886ca into space-wizards:master Jul 24, 2024
11 checks passed
themias pushed a commit to themias/space-station-14 that referenced this pull request Aug 9, 2024
* Get needhand from yml

* MovementThreshold modifiable + inheritdoc
Baa14453 pushed a commit to Baa14453/space-station-14 that referenced this pull request Oct 19, 2024
* Get needhand from yml

* MovementThreshold modifiable + inheritdoc
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