Thread:Sylvandyr/@comment-5619126-20121014124324/@comment-5619126-20130102212134

the weighted time was your idea... I just did what you told me. I weighted the rarity class with the according % of how many usually are attained

Here's the code for that part:

$incubation = $curDragonArr['incubation'];

$incubation = str_replace(" h", " UTC", $incubation);

$incubation = strtotime($incubation, 0);

$rarity = $curDragonArr['rarity'];

$seconds = $seconds + $incubation;

$weighted = $weighted + $rarityArr[$rarity] * $incubation;