* 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
63 lines
1.2 KiB
Ruby
63 lines
1.2 KiB
Ruby
# frozen_string_literal: true
|
|
|
|
module Api
|
|
module V1
|
|
class CharacterBlueprint < ApiBlueprint
|
|
field :name do |w|
|
|
{
|
|
en: w.name_en,
|
|
ja: w.name_jp
|
|
}
|
|
end
|
|
|
|
fields :granblue_id, :character_id, :rarity,
|
|
:element, :gender, :special
|
|
|
|
field :uncap do |w|
|
|
{
|
|
flb: w.flb,
|
|
ulb: w.ulb
|
|
}
|
|
end
|
|
|
|
field :race do |w|
|
|
[
|
|
w.race1,
|
|
w.race2
|
|
]
|
|
end
|
|
|
|
field :proficiency do |w|
|
|
[
|
|
w.proficiency1,
|
|
w.proficiency2
|
|
]
|
|
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
|
|
},
|
|
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
|
|
},
|
|
data: {
|
|
base_da: w.base_da,
|
|
base_ta: w.base_ta
|
|
},
|
|
charge_attack: {
|
|
ougi_ratio: w.ougi_ratio,
|
|
ougi_ratio_flb: w.ougi_ratio_flb
|
|
}
|
|
}
|
|
end
|
|
end
|
|
end
|
|
end
|