Page 1 of 1

Interpolating Animal Blood -- How does the game do it??

Posted: Wed Nov 16, 2016 1:03 am
by StarWeaver
So, I've been staring at this data for a bit and I have no idea what's going on.

Somehow, the game takes an animal's age (a number from 0.0-1.0 more or less), their race's 'blood min' and 'blood max', and determines the maximum blood for that individual animal.

Linear interpolation of the age into the blood range fall short of the actual blood max. Linear interpolation using 3x the minimum blood gets closer, but isn't much of a fit.

The best I've been able to do is come up with this correlation between the age and the blood total reverse interpolated through the min and max to a 0-1 range:

Image

The data I've collected is at https://docs.google.com/spreadsheets/d/ ... Lz0ZDchfaQ -- that graph is on sheet 2.

My goal is just to be able to display the amount of blood lost by a creature, but apparently their maximum isn't stored anywhere in the save data >.>

Re: Interpolating Animal Blood -- How does the game do it??

Posted: Wed Nov 16, 2016 3:28 am
by Shidan
As I recall, strength is another modifier to blood levels. So I'd bet you're just missing another variable. ;)