Items With Both ReplaceOnUse and ReplaceOnCooked
2 2

5 posts in this topic

Recommended Posts

Cooking an item that has both ReplaceOnUse and ReplaceOnCooked item values closes the game and goes back to the main menu. In my opinion ReplaceOnUse should simply be ignored for this case.


As an example you fill a cooking pot with food, and you want it to turn into a separate item when cooked, both the original and the resulting item should have ReplaceOnUse = Pot but right now if the original item has that line it causes the bug.

Share this post

Link to post
Share on other sites
	at zombie.inventory.types.Food.update(
	at zombie.iso.IsoCell.ProcessItems(
	at zombie.iso.IsoCell.update(
	at zombie.iso.IsoWorld.update(
	at zombie.gameStates.IngameState.update(
	at zombie.gameStates.GameStateMachine.update(
	at zombie.GameWindow.logic(
	at zombie.GameWindow.maina(
	at zombie.gameStates.MainScreenState.main(

I made some tests when trying to replicate it, and apparently the bugs doesn't happen when I test it overriding a base item (tried with Base.Egg), only with my own mymodule.Myitem.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
2 2