Skip to content

Commit 0c40e6c

Browse files
committed
feat: update aaci type
1 parent ebaaad2 commit 0c40e6c

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

views/utils/aaci.es

+30
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ const isAAFD = itemTypeIs(36)
107107
// Surface Radar are excluded by checking whether
108108
// the equipment gives AA stat (api_tyku)
109109
const isAARadar = equip => isRadar(equip) && equip.api_tyku > 0
110+
const isAdvancedAARadar = equip => isRadar(equip) && equip.api_tyku >= 4
110111

111112
// id 4: battleships
112113
declareAACI({
@@ -686,6 +687,35 @@ declareAACI({
686687
),
687688
})
688689

690+
// id 47: Shiratsuyu Class Kai 2
691+
692+
const isShiratsuyuClassK2 = validAny(
693+
shipIdIs(497),
694+
shipIdIs(145),
695+
shipIdIs(961),
696+
shipIdIs(498),
697+
shipIdIs(975),
698+
)
699+
// 529: 12.7cm連装砲C型改三H
700+
const is127mmTwinMountTypeCKai3H = equip => equip.api_slotitem_id === 529
701+
// 505: 25mm対空機銃増備
702+
const is25mmAAGunExtraEmplacement = equip => equip.api_slotitem_id === 505
703+
704+
declareAACI({
705+
name: ['白露改二', '時雨改二', '時雨改三', '村雨改二', '春雨改二'],
706+
id: 47,
707+
fixed: 2,
708+
modifier: 1.3,
709+
shipValid: validAny(isShiratsuyuClassK2),
710+
equipsValid: validAny(
711+
validAll(
712+
hasSome(is127mmTwinMountTypeCKai3H),
713+
hasSome(validAny(is25mmAAGunExtraEmplacement, isAdvancedAARadar)),
714+
),
715+
hasAtLeast(is127mmTwinMountTypeCKai3H, 2),
716+
),
717+
})
718+
689719
// return: a list of sorted AACI objects order by effect desc,
690720
// as most effective AACI gets priority to be triggered.
691721
// param: AACI IDs from possibleAACIs functions

0 commit comments

Comments
 (0)