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

Fix prawn suit drilling doesn't save raw materials globally #2299

Closed
wants to merge 0 commits into from

Conversation

Buivol16
Copy link

@Buivol16 Buivol16 commented Mar 9, 2025

Fix issue link: #2278

Copy link
Collaborator

@Coding-Hen Coding-Hen left a comment

Choose a reason for hiding this comment

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

Just a few minor cleanup suggestions

Comment on lines 22 to 23
var ITEM_SERVICE = NitroxServiceLocator.LocateService<Items>();
ITEM_SERVICE.PickedUp(instanceGameObject, instanceTechType);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think you should be able to call this directly like other patches do without having to assign it first.

Suggested change
var ITEM_SERVICE = NitroxServiceLocator.LocateService<Items>();
ITEM_SERVICE.PickedUp(instanceGameObject, instanceTechType);
Resolve<Items>().PickedUp(instanceGameObject, instanceTechType);

{
public static readonly MethodInfo TARGET_METHOD = Reflect.Method((ResourceTracker d) => d.OnPickedUp(default));

public static bool Prefix(ResourceTracker __instance, Pickupable p)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think you need pickupable here as you don't make use of it

Suggested change
public static bool Prefix(ResourceTracker __instance, Pickupable p)
public static bool Prefix(ResourceTracker __instance)

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