-
-
Notifications
You must be signed in to change notification settings - Fork 234
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 food degradation for Eitr #769
base: development
Are you sure you want to change the base?
Conversation
Fix food degradation for eitr.
Uses the same mechanics as the other "smelters", except with different materials.
This reverts commit 3f9d35c.
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.
LGTM.
{ | ||
il.Insert(++i, new CodeInstruction(OpCodes.Ldfld, field_SharedData_m_foodStamina)); | ||
} | ||
else |
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.
Probably put this in an else if (loads_eitr)
and have some sort of error handling for everything else (which should be nothing for now, but if at some point something gets added or changed we would see this)
(I stumbled upon this by chance and have not been contributing to Valheim+ yet, so please see my comment with a grain of salt because you know and understand this code much better!)
This update the food degradation prevention to include foods that provide Eitr.