Skip to content

Commit

Permalink
feat: update sp attack for Kirishima kai ni c
Browse files Browse the repository at this point in the history
  • Loading branch information
KochiyaOcean committed Oct 21, 2024
1 parent 5bee621 commit 690c555
Showing 1 changed file with 47 additions and 3 deletions.
50 changes: 47 additions & 3 deletions views/utils/sp_attack.es
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,14 @@ const isHarunaKaiNiC = shipIdIs(954)

const isKirishimaKaiNi = shipIdIs(152)

const isKirishimaKaiNiC = shipIdIs(694)

const isWarspite = _.overSome([shipIdIs(364), shipIdIs(439)])

const isWarspiteKai = shipIdIs(364)

const isValiant = _.overSome([shipIdIs(927), shipIdIs(733)])

const isValiantKai = shipIdIs(733)

const isRichelieuKaiOrDeux = _.overSome([shipIdIs(392), shipIdIs(969)])
Expand Down Expand Up @@ -166,22 +170,62 @@ const isKongoClassKaiNiCSpAttack = _.overEvery([
isSpAttackLessThan([SP_ATTACK_ID.Kongo_Class_Kaini_C_Charge])(2),
isFleetWith5NonSubs,
_.overSome([
// Kongo Kai Ni C
_.overEvery([
overShip(0)(_.overEvery([isKongoKaiNiC, isNotMidDmg])),
overShip(1)(
_.overEvery([
_.overSome([isHieiKaiNiC, isHarunaKaiNi, isHarunaKaiNiB, isHarunaKaiNiC, isWarspite]),
_.overSome([
isHieiKaiNiC,
isHarunaKaiNi,
isHarunaKaiNiB,
isHarunaKaiNiC,
isKirishimaKaiNi,
isWarspite,
isValiant,
]),
isNotMidDmg,
]),
),
]),
// Hiei Kai Ni C
_.overEvery([
overShip(0)(_.overEvery([isHieiKaiNiC, isNotMidDmg])),
overShip(1)(_.overEvery([_.overSome([isKongoKaiNiC, isKirishimaKaiNi]), isNotMidDmg])),
overShip(1)(
_.overEvery([
_.overSome([
isKongoKaiNiC,
isHarunaKaiNiB,
isHarunaKaiNiC,
isKirishimaKaiNi,
isKirishimaKaiNiC,
]),
isNotMidDmg,
]),
),
]),
// Haruna Kai Ni B/C
_.overEvery([
overShip(0)(_.overEvery([_.overSome([isHarunaKaiNiB, isHarunaKaiNiC]), isNotMidDmg])),
overShip(1)(_.overEvery([_.overSome([isKongoKaiNiC, isHieiKaiNiC]), isNotMidDmg])),
overShip(1)(
_.overEvery([_.overSome([isKongoKaiNiC, isHieiKaiNiC, isKirishimaKaiNiC]), isNotMidDmg]),
),
]),
// Kirishima Kai Ni C
_.overEvery([
overShip(0)(_.overEvery([isKirishimaKaiNiC, isNotMidDmg])),
overShip(1)(
_.overEvery([
_.overSome([
isKongoKaiNiC,
isHieiKaiNiC,
isHarunaKaiNiB,
isHarunaKaiNiC,
isSouthDakotaKai,
]),
isNotMidDmg,
]),
),
]),
]),
])
Expand Down

0 comments on commit 690c555

Please sign in to comment.