Poulpe Posted November 12, 2021 Share Posted November 12, 2021 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 Tchernobill 1 Link to comment Share on other sites More sharing options...
Tchernobill Posted November 14, 2021 Share Posted November 14, 2021 (edited) 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 November 15, 2021 by Tchernobill Tykvesh and Poulpe 1 1 Link to comment Share on other sites More sharing options...
Pandorea Posted November 16, 2021 Share Posted November 16, 2021 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. Poulpe 1 Link to comment Share on other sites More sharing options...
Tchernobill Posted June 19, 2022 Share Posted June 19, 2022 declared fixed in B41.71 - Fixed Coffee / coffee beverage fatigue reduction values not saving on quit / restart. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now