Jump to content
Poulpe

Coffee not longer doing coffee's job after leaving/reloading game ?

Recommended Posts

Seems that after you logout from your game, or restart PZ, if u had any cup of coffee in your inventory (with a fatigue debuff) after you log back into your game, the coffee isn't providing fatigue debuff anymore, so you're basically drinking coffee without its first benefit, which isn't really nice specially when you manage to get one good coffee cup worth 20/30 fatigue & boom, when you come back it's not here anymore :c

Share this post


Link to post
Share on other sites

1/ Save and Load methods from "Food" Java Class do not save & load fatigueChange and endChange variables from "InventoryItem" class, "InventoryItem" does not save them either.

 

2/ Also when Coffee2 item is partially used when game is left and reloaded, the remaining uses have upgraded fatigueChange. (the initial -50 is spread on each remaining use.)

 

e.g. Coffee2 with -30 basehunger and -50 fatiguechange is used for a partial use of 5 (that is relative to the -30 basehunger).

Remaining hungerchange is -30+5 = -25

Remaining fatigueChange displayed and used in EvolvedRecipe is -50 * (25/30) ~= -41.7. so far so good.

But when we leave and come back, fatigueChange displayed and used in EvolvedRecipe is reset to -50 while hungerchange is still -25.

So :

- Either fatigueChange should be -50 for each use and then EvolvedRecipe:addItem should not take into account the hungerchange/basehunger ratio.

- Or remaining fatigueChange should be recomputed from the hungerchange/basehunger ratio in the Coffee2 item when reloading. <= please choose that.

 

In addition to correcting coffee cup, it would open modding perspectives to have these implemented.

Edited by Tchernobill

Share this post


Link to post
Share on other sites

On 11/12/2021 at 5:58 PM, Poulpe said:

Seems that after you logout from your game, or restart PZ, if u had any cup of coffee in your inventory (with a fatigue debuff) after you log back into your game, the coffee isn't providing fatigue debuff anymore, so you're basically drinking coffee without its first benefit, which isn't really nice specially when you manage to get one good coffee cup worth 20/30 fatigue & boom, when you come back it's not here anymore :c

 

Yes, this is a known issue. Will get fixed at some point.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...