Friday, September 20, 2024 2:38:24 AM
> settings

Customize


Authenticate

> territory.rb
# frozen_string_literal: true

FactoryBot.define do
  factory :territory, class: "ESM::Territory" do
    # attribute :server_id, :integer
    # attribute :territory_level, :integer
    # attribute :territory_purchase_price, :integer
    # attribute :territory_radius, :integer
    # attribute :territory_object_count, :integer
    # attribute :created_at, :datetime
    # attribute :updated_at, :datetime

    server_id {}
    territory_level {}
    territory_purchase_price { territory_level * 10 }
    territory_radius { 30 * territory_level }
    territory_object_count { 15 * territory_level }
  end
end
All opinions represented herein are my own
- © 2024 itsthedevman
- build 340fbb8