Skip to content

Commit

Permalink
Merge pull request poooi#2477 from IcosahedralDice/master
Browse files Browse the repository at this point in the history
fix: Add normal 5 inch Mk.30 to aaci 35/36
  • Loading branch information
KochiyaOcean authored Nov 28, 2022
2 parents 456808e + fff4d19 commit f21285b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions views/utils/aaci.es
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,8 @@ declareAACI({
equipsValid: hasAtLeast(is5InchSingleGunMountMk30PlusGFCS, 2),
})

const is5InchSingleGunMountMk30 = equip => equip.api_slotitem_id === 313
const is5InchSingleGunMountMk30OrKai = equip => (equip.api_slotitem_id === 284 || equip.api_slotitem_id === 313)
const is5InckSingleGunMountMk30Kai = equip => equip.apt_slotitem_id === 313

declareAACI({
name: ['Johnston', 'Fletcher'],
Expand All @@ -492,7 +493,7 @@ declareAACI({
shipValid: isFletcherClassOrKai,
equipsValid: validAll(
hasSome(is5InchSingleGunMountMk30PlusGFCS),
hasSome(is5InchSingleGunMountMk30),
hasSome(is5InchSingleGunMountMk30OrKai),
),
})

Expand All @@ -504,7 +505,7 @@ declareAACI({
fixed: 6,
modifier: 1.55,
shipValid: isFletcherClassOrKai,
equipsValid: validAll(hasAtLeast(is5InchSingleGunMountMk30, 2), hasSome(isGFCSMk37)),
equipsValid: validAll(hasAtLeast(is5InchSingleGunMountMk30OrKai, 2), hasSome(isGFCSMk37)),
})

declareAACI({
Expand All @@ -513,7 +514,7 @@ declareAACI({
fixed: 4,
modifier: 1.55,
shipValid: isFletcherClassOrKai,
equipsValid: hasAtLeast(is5InchSingleGunMountMk30, 2),
equipsValid: hasAtLeast(is5InckSingleGunMountMk30Kai, 2),
})

// id 38~41: Atlanta
Expand Down

0 comments on commit f21285b

Please sign in to comment.