From 97cb59894a0469a54e82cf319dd023ad10f5f2d8 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Wed, 3 Dec 2025 12:59:04 -0800 Subject: [PATCH] include weapon_series flags in series response --- app/blueprints/api/v1/weapon_blueprint.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/blueprints/api/v1/weapon_blueprint.rb b/app/blueprints/api/v1/weapon_blueprint.rb index b8cb630..fa25685 100644 --- a/app/blueprints/api/v1/weapon_blueprint.rb +++ b/app/blueprints/api/v1/weapon_blueprint.rb @@ -15,7 +15,7 @@ module Api :max_level, :max_skill_level, :max_awakening_level, :limit, :rarity, :ax, :ax_type, :promotions - # Series - returns full object if weapon_series is present, fallback to legacy integer + # Series - returns full object with flags if weapon_series is present, fallback to legacy integer field :series do |w| if w.weapon_series.present? { @@ -24,7 +24,12 @@ module Api name: { en: w.weapon_series.name_en, ja: w.weapon_series.name_jp - } + }, + has_weapon_keys: w.weapon_series.has_weapon_keys, + has_awakening: w.weapon_series.has_awakening, + has_ax_skills: w.weapon_series.has_ax_skills, + extra: w.weapon_series.extra, + element_changeable: w.weapon_series.element_changeable } else # Legacy fallback for backwards compatibility