hensei-api/app/blueprints/api/v1/summon_blueprint.rb
Justin Edmund 67c004b2a4 Updates blueprints for new model attributes
* Renamed `ml` to `master_level`
* Added `ultimate_mastery` to Jobs and Parties
* Restructured `atk`, `hp`, `max_level`, and `max_skill_level` and other relevant attributes under a `stats` field on canonical objects
2023-03-10 23:24:18 -08:00

44 lines
891 B
Ruby

# frozen_string_literal: true
module Api
module V1
class SummonBlueprint < ApiBlueprint
field :name do |w|
{
en: w.name_en,
ja: w.name_jp
}
end
fields :granblue_id, :element, :rarity
field :uncap do |w|
{
flb: w.flb,
ulb: w.ulb,
xlb: w.xlb
}
end
field :stats do |w|
{
atk: {
min_atk: w.min_atk,
max_atk: w.max_atk,
max_atk_flb: w.max_atk_flb,
max_atk_ulb: w.max_atk_ulb,
max_atk_xlb: w.max_atk_xlb
},
hp: {
min_hp: w.min_hp,
max_hp: w.max_hp,
max_hp_flb: w.max_hp_flb,
max_hp_ulb: w.max_hp_ulb,
max_hp_xlb: w.max_hp_xlb
},
max_level: w.max_level,
}
end
end
end
end