diff --git a/src/lib/api/adapters/__tests__/entity.adapter.test.ts b/src/lib/api/adapters/__tests__/entity.adapter.test.ts index 95029209..5c9e56aa 100644 --- a/src/lib/api/adapters/__tests__/entity.adapter.test.ts +++ b/src/lib/api/adapters/__tests__/entity.adapter.test.ts @@ -29,7 +29,7 @@ describe('EntityAdapter', () => { name: { en: 'Dark Opus', ja: 'ダークオーパス' }, hasWeaponKeys: true, hasAwakening: true, - augmentType: 'none', + augmentType: 'no_augment', extra: false, elementChangeable: false }, diff --git a/src/lib/api/adapters/__tests__/grid.adapter.test.ts b/src/lib/api/adapters/__tests__/grid.adapter.test.ts index 1c39aed7..3b12d270 100644 --- a/src/lib/api/adapters/__tests__/grid.adapter.test.ts +++ b/src/lib/api/adapters/__tests__/grid.adapter.test.ts @@ -29,7 +29,7 @@ describe('GridAdapter', () => { name: { en: 'Dark Opus', ja: 'ダークオーパス' }, hasWeaponKeys: true, hasAwakening: true, - augmentType: 'none', + augmentType: 'no_augment', extra: false, elementChangeable: false }, diff --git a/src/lib/utils/modificationDetector.ts b/src/lib/utils/modificationDetector.ts index 975fbee5..e5e22dc2 100644 --- a/src/lib/utils/modificationDetector.ts +++ b/src/lib/utils/modificationDetector.ts @@ -116,8 +116,8 @@ export function canWeaponBeModified(gridWeapon: GridWeapon | undefined): boolean const hasWeaponKeys = seriesHasWeaponKeys(weapon.series) // AX skills or Befoulment - check augmentType from series - const augmentType = weapon.series?.augmentType ?? 'none' - const hasAugments = augmentType !== 'none' + const augmentType = weapon.series?.augmentType ?? 'no_augment' + const hasAugments = augmentType !== 'no_augment' // Awakening (maxAwakeningLevel > 0 means it can have awakening) const hasAwakening = (weapon.maxAwakeningLevel ?? 0) > 0 diff --git a/src/stories/mocks/weapons.ts b/src/stories/mocks/weapons.ts index e44cdd47..12077290 100644 --- a/src/stories/mocks/weapons.ts +++ b/src/stories/mocks/weapons.ts @@ -19,7 +19,7 @@ const mockOpusSeries = { name: { en: 'Opus', ja: 'オプス' }, hasWeaponKeys: true, hasAwakening: true, - augmentType: 'none' as const, + augmentType: 'no_augment' as const, extra: false, elementChangeable: false }; @@ -30,7 +30,7 @@ const mockDraconicSeries = { name: { en: 'Draconic', ja: 'ドラゴニック' }, hasWeaponKeys: true, hasAwakening: false, - augmentType: 'none' as const, + augmentType: 'no_augment' as const, extra: false, elementChangeable: false };