Tykvesh Posted January 16, 2022 Share Posted January 16, 2022 41.65 Singleplayer No mods Steps to reproduce: Forage for Food I noticed that specifically one item from the stack (yield from the same pickup) goes stale quickly. Seems to happen with all perishables. Link to comment Share on other sites More sharing options...
Tchernobill Posted January 16, 2022 Share Posted January 16, 2022 Why would this be a bug ? Is everything supposed to be fresh in the wild ? Link to comment Share on other sites More sharing options...
Tykvesh Posted January 16, 2022 Author Share Posted January 16, 2022 (edited) Just looked into the code and it turns out that you're correct! It seems that the age is randomized: local randomAge = 0; if ZombRand(10) + 1 < perkLevel then randomAge = ZombRand((item:getOffAge() * 1000)) / 1000; else randomAge = ZombRand((item:getOffAgeMax() * 1000)) / 1000; end; item:setAge(randomAge); Edited January 16, 2022 by Tykvesh 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