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

Refactor FabricateCandySystem Into Its Generic Equivalent #566

Merged

Conversation

Mnemotechnician
Copy link
Contributor

Description

Refactors the nyano shitcode responsible for allowing borgs to dispense candies into a more generic variant, that allows to define what action dispenses what entity, and allowing an arbitrary number of such actions on an entity.

Requested by @DangerRevolution

Media

8mb.video-XtD-Kj7NIrga.mp4

Changelog

No cl no fun

@github-actions github-actions bot added Changes: C# Changes any cs files Changes: YML Changes any yml files labels Jul 19, 2024
@SimpleStation14 SimpleStation14 changed the title Refactor FabricateCandySystem into its generic equivalent Refactor FabricateCandySystem Into Its Generic Equivalent Jul 19, 2024
Copy link
Member

@DEATHB4DEFEAT DEATHB4DEFEAT left a comment

Choose a reason for hiding this comment

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

Move the namespace from Nyano.

@DEATHB4DEFEAT DEATHB4DEFEAT added Priority: 4-Low Should be resolved at some point Size: 4-Small For small issues/PRs Type: Cleanup Like Rework but small labels Jul 19, 2024
@github-actions github-actions bot added the Status: Needs Review Someone please review this label Jul 19, 2024
Copy link
Contributor

@DangerRevolution DangerRevolution left a comment

Choose a reason for hiding this comment

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

W rizZ

Copy link
Member

@VMSolidus VMSolidus left a comment

Choose a reason for hiding this comment

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

I'll approve this once the two borg actions are moved out of Nyano. :)

Resources/Prototypes/Nyanotrasen/Actions/types.yml Outdated Show resolved Hide resolved

namespace Content.Shared.Actions.Events;

public sealed partial class FabricateActionEvent : InstantActionEvent
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
public sealed partial class FabricateActionEvent : InstantActionEvent
public sealed class FabricateActionEvent : InstantActionEvent

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's a DataDefinition so it needs to be partial

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fuck, I accidentally applied the suggestion too... well, fuck me.

Copy link
Member

Choose a reason for hiding this comment

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

webedit™️

@DangerRevolution DangerRevolution dismissed VMSolidus’s stale review July 23, 2024 09:04

moved from Nyano namespaces; review is STALE!!

@DangerRevolution

This comment was marked as outdated.

Mnemotechnician and others added 2 commits July 23, 2024 12:05
Co-authored-by: DEATHB4DEFEAT <[email protected]>
Signed-off-by: Mnemotechnican <[email protected]>
@DangerRevolution
Copy link
Contributor

going to re-run this until no more unrelated test fails

@DangerRevolution DangerRevolution merged commit cf0498e into Simple-Station:master Jul 23, 2024
11 checks passed
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: YML Changes any yml files Priority: 4-Low Should be resolved at some point Size: 4-Small For small issues/PRs Status: Needs Review Someone please review this Type: Cleanup Like Rework but small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants