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

Post Reply
User avatar
StarWeaver
Posts: 26
Joined: Mon Jan 05, 2015 2:24 pm

Wed Nov 16, 2016 1:03 am

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 >.>

User avatar
Shidan
Moderator
Posts: 1234
Joined: Mon Oct 22, 2012 1:41 pm

Wed Nov 16, 2016 3:28 am

As I recall, strength is another modifier to blood levels. So I'd bet you're just missing another variable. ;)

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests