* Small Rails 7 configuration changes (#72) * Remove log call * Show EMP skills for Row 5 classes Row 4 EMP skills were not showing up, so you couldn't set Rage IV on Viking, for example * Allow adding EMP skills from prior rows to team We let you search but didn't fix the server-side validation check for skills * Add `granblue_id` column to WeaponKeys table This should have a `NOT NULL` constraint, but due to existing data it is nullable until we can update all environments with values. * Add granblue_id to WeaponKeyBlueprint * Rename ml to master level * Add Ultimate Mastery * Migrate database * Migrate database
25 lines
470 B
Ruby
25 lines
470 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Api
|
|
module V1
|
|
class JobBlueprint < ApiBlueprint
|
|
field :name do |job|
|
|
{
|
|
en: job.name_en,
|
|
ja: job.name_jp
|
|
}
|
|
end
|
|
|
|
field :proficiency do |job|
|
|
[
|
|
job.proficiency1,
|
|
job.proficiency2
|
|
]
|
|
end
|
|
|
|
fields :granblue_id, :row, :order,
|
|
:master_level, :ultimate_mastery,
|
|
:accessory, :accessory_type
|
|
end
|
|
end
|
|
end
|