Jump to content

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


Poulpe

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

Link to comment
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
Link to comment
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.

Link to comment
Share on other sites

  • 7 months later...

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
×
×
  • Create New...