private static function CalculateGuildLevel() { $level = 1; $start_stamp = self::$guild_create_date; while ($start_stamp > 0) { $start_stamp -= 1 * IN_MONTHS; $level++; } self::$guild_level = min(25, $level); }
private static function CalculateGuildLevel() { $level = 1; $start_stamp = self::$guild_create_date; while ($start_stamp > 0) { $start_stamp -= 1 * IN_MONTHS; $level++; } self::$guild_level = min(25, $level); }