forked from xiv-gear-planner/gear-planner
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request xiv-gear-planner#180 from nikroulah/master
Add PLD usage sim
- Loading branch information
Showing
6 changed files
with
435 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
218 changes: 218 additions & 0 deletions
218
packages/frontend/src/scripts/sims/tank/pld/pld_actions_no_sks.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,218 @@ | ||
import {AutoAttack, GcdAbility, OgcdAbility, DamagingAbility, Ability} from "@xivgear/core/sims/sim_types"; | ||
|
||
export const fast: GcdAbility = { | ||
id: 9, | ||
type: 'gcd', | ||
name: "Fast Blade", | ||
potency: 220, | ||
attackType: "Weaponskill", | ||
gcd: 2.5, | ||
fixedGcd: true | ||
} | ||
|
||
export const riot: GcdAbility = { | ||
id: 15, | ||
type: 'gcd', | ||
name: "Riot Blade", | ||
potency: 330, | ||
attackType: "Weaponskill", | ||
gcd: 2.5, | ||
fixedGcd: true | ||
} | ||
|
||
export const royal: GcdAbility = { | ||
id: 3539, | ||
type: 'gcd', | ||
name: "Royal Authority", | ||
potency: 440, | ||
attackType: "Weaponskill", | ||
gcd: 2.5, | ||
fixedGcd: true | ||
} | ||
|
||
export const atone: GcdAbility = { | ||
id: 16460, | ||
type: 'gcd', | ||
name: "Atonement", | ||
potency: 440, | ||
attackType: "Weaponskill", | ||
gcd: 2.5, | ||
fixedGcd: true | ||
} | ||
|
||
export const supp: GcdAbility = { | ||
id: 36918, | ||
type: 'gcd', | ||
name: "Supplication", | ||
potency: 460, | ||
attackType: "Weaponskill", | ||
gcd: 2.5, | ||
fixedGcd: true | ||
} | ||
|
||
export const sep: GcdAbility = { | ||
id: 36919, | ||
type: 'gcd', | ||
name: "Sepulchre", | ||
potency: 480, | ||
attackType: "Weaponskill", | ||
gcd: 2.5, | ||
fixedGcd: true | ||
} | ||
|
||
export const hs: GcdAbility = { | ||
id: 7384, | ||
type: 'gcd', | ||
name: "Holy Spirit", | ||
potency: 470, | ||
attackType: "Spell", | ||
gcd: 2.5, | ||
fixedGcd: true | ||
} | ||
|
||
export const goring: GcdAbility = { | ||
id: 3538, | ||
type: 'gcd', | ||
name: "Goring Blade", | ||
potency: 700, | ||
attackType: "Weaponskill", | ||
gcd: 2.5, | ||
fixedGcd: true | ||
} | ||
|
||
export const conf: GcdAbility = { | ||
id: 16459, | ||
type: 'gcd', | ||
name: "Confiteor", | ||
potency: 940, | ||
attackType: "Spell", | ||
gcd: 2.5, | ||
fixedGcd: true | ||
} | ||
|
||
export const faith: GcdAbility = { | ||
id: 25748, | ||
type: 'gcd', | ||
name: "Blade of Faith", | ||
potency: 740, | ||
attackType: "Spell", | ||
gcd: 2.5, | ||
fixedGcd: true | ||
} | ||
|
||
export const truth: GcdAbility = { | ||
id: 25749, | ||
type: 'gcd', | ||
name: "Blade of Truth", | ||
potency: 840, | ||
attackType: "Spell", | ||
gcd: 2.5, | ||
fixedGcd: true | ||
} | ||
|
||
export const valor: GcdAbility = { | ||
id: 25750, | ||
type: 'gcd', | ||
name: "Blade of Valor", | ||
potency: 940, | ||
attackType: "Spell", | ||
gcd: 2.5, | ||
fixedGcd: true | ||
} | ||
|
||
export const cos: OgcdAbility = { | ||
id: 23, | ||
type: 'ogcd', | ||
name: "Circle of Scorn", | ||
potency: 140, | ||
dot: { | ||
id: 248, | ||
duration: 15, | ||
tickPotency: 30 | ||
}, | ||
attackType: "Ability" | ||
} | ||
|
||
export const exp: OgcdAbility = { | ||
id: 25747, | ||
type: 'ogcd', | ||
name: "Expiacion", | ||
potency: 450, | ||
attackType: "Ability" | ||
} | ||
|
||
export const int: OgcdAbility = { | ||
id: 16461, | ||
type: 'ogcd', | ||
name: "Intervene", | ||
potency: 150, | ||
attackType: "Ability" | ||
} | ||
|
||
export const imp: OgcdAbility = { | ||
id: 36921, | ||
type: 'ogcd', | ||
name: "Imperator", | ||
potency: 580, | ||
attackType: "Ability" | ||
} | ||
|
||
export const honor: OgcdAbility = { | ||
id: 36922, | ||
type: 'ogcd', | ||
name: "Blade of Honor", | ||
potency: 1000, | ||
attackType: "Ability" | ||
} | ||
|
||
export const auto: AutoAttack = { | ||
name: 'Auto Attack', | ||
type: 'autoattack', | ||
potency: 90, | ||
attackType: 'Auto-attack', | ||
id: 7 | ||
} | ||
|
||
export const fof: OgcdAbility = { | ||
id: 20, | ||
type: 'ogcd', | ||
name: "Fight or Flight", | ||
potency: null, | ||
attackType: "Ability", | ||
activatesBuffs: [ | ||
{ | ||
statusId: 76, | ||
name: "Fight or Flight", | ||
selfOnly: true, | ||
duration: 20, | ||
effects: { | ||
dmgIncrease: 0.25 | ||
} | ||
} | ||
] | ||
} | ||
|
||
export function buffed(ability: Ability & Partial<DamagingAbility>): Ability { | ||
if (!ability.dot) { | ||
return { | ||
...ability, | ||
name: `${ability.name} (FoF)`, | ||
potency: ability.potency * 1.25, | ||
id: -ability.id, | ||
}; | ||
} | ||
|
||
const {dot: d, ...rest} = ability; | ||
|
||
return { | ||
...rest, | ||
name: `${ability.name} (FoF)`, | ||
potency: ability.potency * 1.25, | ||
id: -ability.id, | ||
dot: { | ||
...d, | ||
id: -d.id, | ||
tickPotency: d.tickPotency * 1.25, | ||
} | ||
}; | ||
} |
Oops, something went wrong.