public function getFluidHeightPercent() { $d = $this->meta; if ($d >= 8) { $d = 0; } return ($d + 1) / 9; }