hensei-api/app/blueprints/api/v1/weapon_series_blueprint.rb
Justin Edmund 1f80e4189f
Add weapon stat modifiers for AX skills and befoulments (#202)
* add weapon_stat_modifiers table for ax skills and befoulments

* add fk columns for ax modifiers and befoulments, replace has_ax_skills with augment_type

* update models for weapon_stat_modifier fks and befoulments

* update blueprints for weapon_stat_modifier serialization

* update import service for weapon_stat_modifier fks and befoulments

* add weapon_stat_modifiers controller and update params for fks

* update tests and factories for weapon_stat_modifier fks

* fix remaining has_ax_skills and ax_modifier references

* add ax_modifier and befoulment_modifier to eager loading

* fix ax modifier column naming and migration approach

* add game_skill_ids for befoulment modifiers
2025-12-31 22:20:00 -08:00

23 lines
451 B
Ruby

# frozen_string_literal: true
module Api
module V1
class WeaponSeriesBlueprint < ApiBlueprint
field :name do |ws|
{
en: ws.name_en,
ja: ws.name_jp
}
end
fields :slug, :order, :extra, :element_changeable, :has_weapon_keys,
:has_awakening, :augment_type
view :full do
field :weapon_count do |ws|
ws.weapons.count
end
end
end
end
end