Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion src/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ export const BORK_PHASES = ['Smork HP 100% - 75%', 'Smork HP 75% - 50%', 'Smork
BORK_IDS.forEach((id) => { MONSTER_PHASES_BY_ID[id] = BORK_PHASES; });

export const OCELLUS_P3_IDS: readonly number[] = [16677];
export const OCELLUS_P3_PHASES: readonly string[] = ['Phase 3', 'Phase 4 Standard', 'Phase 4 Explosions - With Speed-Up', 'Phase 4 Explosions - No Speed-Up'];
export const OCELLUS_P3_PHASES: readonly string[] = ['Phase 3', 'Phase 3 Untethered', 'Phase 4 Standard', 'Phase 4 Explosions - With Speed-Up', 'Phase 4 Explosions - No Speed-Up'];
OCELLUS_P3_IDS.forEach((id) => { MONSTER_PHASES_BY_ID[id] = OCELLUS_P3_PHASES; });

export const TFA_DEF_FLOOR_NPCS = [
Expand Down
5 changes: 5 additions & 0 deletions src/lib/scaling/DefenceReduction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
KEPHRI_UNSHIELDED_IDS,
NEX_IDS,
NIGHTMARE_IDS,
OCELLUS_P3_IDS,
P3_WARDEN_IDS,
SOTETSEG_IDS, TFA_DEF_FLOOR_NPCS,
TOA_OBELISK_IDS,
Expand Down Expand Up @@ -59,6 +60,10 @@ export const getDefenceFloor = (m: Monster): number => {
if (YAMA_IDS.includes(m.id)) {
return 145;
}
// need to handle this separately because P4 has its defence set to 166, but the floor is still 150
if (OCELLUS_P3_IDS.includes(m.id)) {
return 150;
}
if (TFA_DEF_FLOOR_NPCS.includes(m.id)) {
return Math.trunc(m.skills.def * 6 / 10);
}
Expand Down
23 changes: 22 additions & 1 deletion src/lib/scaling/Phases.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Monster } from '@/types/Monster';
import {
ARAXXOR_IDS, BORK_IDS, BORK_PHASES, YAMA_IDS,
ARAXXOR_IDS, BORK_IDS, BORK_PHASES, OCELLUS_P3_IDS, YAMA_IDS,
} from '@/lib/constants';

const applyMonsterPhases = (m: Monster): Monster => {
Expand Down Expand Up @@ -58,6 +58,27 @@ const applyMonsterPhases = (m: Monster): Monster => {
};
}

if (OCELLUS_P3_IDS.includes(m.id)) {
if (m.inputs.phase === 'Phase 3') {
return m;
}

return {
...m,
skills: {
...m.skills,
def: m.inputs.phase.startsWith('Phase 4') ? 166 : m.skills.def,
},
defensive: {
...m.defensive,
light: 100,
standard: 100,
heavy: 100,
magic: 100,
},
};
}

return m;
};

Expand Down