# frozen_string_literal: true

module Competitions
  module GrandPrixBradRoss
    class Overall < Competitions::Overall
      include GrandPrixBradRoss::Common

      before_create :set_name

      def minimum_events
        5
      end

      def maximum_events(_race)
        6
      end

      def upgrade_points_multiplier
        0.25
      end

      def set_name
        self.name = "Series Overall"
      end
    end
  end
end

# frozen_string_literal: true

module Competitions
  module GrandPrixBradRoss
    class Overall < Competitions::Overall
      include GrandPrixBradRoss::Common

      before_create :set_name

      def minimum_events
        4
      end

      def maximum_events(_race)
        4
      end

      def upgrade_points_multiplier
        0.25
      end

      def set_name
        self.name = "Series Overall"
      end
    end
  end
end

Update Grand Prix Carl Decker min and max events
Update Grand Prix Carl Decker min and max events
