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

Patch_GenRecipe_MakeRecipeProducts_foodPoisoning is outdated in 1.5 #829

Open
Sn1p3rr3c0n opened this issue Jan 16, 2025 · 0 comments
Open
Labels
bug Something isn't working C#

Comments

@Sn1p3rr3c0n
Copy link
Collaborator

reported by Batat on Discord

Our Patch https://github.com/zymex22/Project-RimFactory-Revived/blob/master/Source/ProjectRimFactory/Common/HarmonyPatches/Patch_GenRecipe_MakeRecipeProducts_foodPoisoning.cs#L30C25-L30C73 is outdatd as of 1.5

In 1.4 Verse.GenRecipe:MakeRecipeProducts used to set the poisoned flag for food, in 1.5 this is no longer done at this location.
This prevents the Patch from functioning.

The logic now resides in RimWorld.CompFoodPoisonable:Notify_RecipeProduced
we likey have to alter some of the core logic as we nolonger have access to the billGiver for the recipe, instead only the pawn

@Sn1p3rr3c0n Sn1p3rr3c0n added bug Something isn't working C# labels Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working C#
Projects
None yet
Development

No branches or pull requests

1 participant