Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update getNightBattleDDCIType for new CI and equipment #27

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion reporters/utils.es
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ const houmAboveOrEqual = num => equip => equip.api_houm >= num

// G_T_R = Gun Torpedo Radar
// T_R_P = Torpedo Radar Personnel
// T_P_T Torpedo Personnel Torpedo
// T_P_D Torpedo Personnel Drum
export const getNightBattleDDCIType = equips => {
if (
validAll(
Expand All @@ -67,13 +69,27 @@ export const getNightBattleDDCIType = equips => {
if (
validAll(
hasAtLeast(1)(equipType2Is(5)),
hasAtLeast(1)(equipIdIs(129)),
hasAtLeast(1)(equipType2Is(39)),
hasAtLeast(1)(validAll(validAny(equipType2Is(12), equipType2Is(13)), houmAboveOrEqual(3))),
)(equips)
) {
return 'DD_T_R_P'
}

if (validAll(hasAtLeast(2)(equipType2Is(5)), hasAtLeast(1)(equipIdIs(412)))(equips)) {
return 'DD_T_P_T'
}

if (
validAll(
hasAtLeast(1)(equipType2Is(5)),
hasAtLeast(1)(equipIdIs(412)),
hasAtLeast(1)(equipType2Is(30)),
)(equips)
) {
return 'DD_T_P_D'
}

return ''
}

Expand Down