Jump to content

Mismatched foraged food spoilage


Tykvesh

Recommended Posts

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 by Tykvesh
Link to comment
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
×
×
  • Create New...