Skip to content

Commit

Permalink
Merge pull request xiv-gear-planner#250 from Junie-774/vpr_support
Browse files Browse the repository at this point in the history
Updated vpr sim for 7.05
  • Loading branch information
xpdota authored Jul 31, 2024
2 parents eaca01e + b39896e commit 3496d98
Show file tree
Hide file tree
Showing 3 changed files with 111 additions and 105 deletions.
54 changes: 27 additions & 27 deletions packages/frontend/src/scripts/sims/melee/vpr/vpr_actions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { VprGcdAbility, VprOgcdAbility } from "./vpr_types";
import { FlanksbaneVenom, FlankstungVenom, HindsbaneVenom, HindstungVenom, HuntersInstinct, NoxiousGnash, ReadyToReawaken, Swiftscaled } from "./vpr_buffs";
import { FlanksbaneVenom, FlankstungVenom, HindsbaneVenom, HindstungVenom, HonedReavers, HonedSteel, HuntersInstinct, ReadyToReawaken, Swiftscaled } from "./vpr_buffs";


export const SteelFangs: VprGcdAbility = {
Expand All @@ -10,24 +10,25 @@ export const SteelFangs: VprGcdAbility = {
attackType: "Weaponskill",
gcd: 2.5,
cast: 0,
activatesBuffs: [HonedReavers],
};

export const DreadFangs: VprGcdAbility = {
export const ReavingFangs: VprGcdAbility = {
type: 'gcd',
name: "Dread Fangs",
name: "Reaving Fangs",
id: 34607,
potency: 100,
potency: 200,
attackType: "Weaponskill",
gcd: 2.5,
cast: 0,
activatesBuffs: [NoxiousGnash],
activatesBuffs: [HonedSteel],
};

export const HuntersSting: VprGcdAbility = {
type: 'gcd',
name: "Hunter's Sting",
id: 34608,
potency: 260,
potency: 300,
attackType: "Weaponskill",
gcd: 2.5,
cast: 0,
Expand All @@ -38,7 +39,7 @@ export const SwiftskinsSting: VprGcdAbility = {
type: 'gcd',
name: "Swiftskin's Sting",
id: 34609,
potency: 260,
potency: 300,
attackType: "Weaponskill",
gcd: 2.5,
cast: 0,
Expand All @@ -49,7 +50,7 @@ export const FlankstingStrike: VprGcdAbility = {
type: 'gcd',
name: "Flanksting Strike",
id: 34610,
potency: 340,
potency: 400,
attackType: "Weaponskill",
gcd: 2.5,
cast: 0,
Expand All @@ -61,7 +62,7 @@ export const FlanksbaneFang: VprGcdAbility = {
type: 'gcd',
name: "Flanksbane Fang",
id: 34611,
potency: 340,
potency: 400,
attackType: "Weaponskill",
gcd: 2.5,
cast: 0,
Expand All @@ -73,7 +74,7 @@ export const HindstingStrike: VprGcdAbility = {
type: 'gcd',
name: "Hindsting Strike",
id: 34612,
potency: 340,
potency: 400,
attackType: "Weaponskill",
gcd: 2.5,
cast: 0,
Expand All @@ -85,23 +86,22 @@ export const HindsbaneFang: VprGcdAbility = {
type: 'gcd',
name: "Hindsbane Fang",
id: 34613,
potency: 340,
potency: 400,
attackType: "Weaponskill",
gcd: 2.5,
cast: 0,
activatesBuffs: [FlankstungVenom],
updateGauge: gauge => gauge.serpentOfferings += 10,
};

export const Dreadwinder: VprGcdAbility = {
export const Vicewinder: VprGcdAbility = {
type: 'gcd',
name: "Dreadwinder",
name: "Vicewinder",
id: 34620,
potency: 450,
potency: 500,
attackType: "Weaponskill",
gcd: 3.0,
cast: 0,
activatesBuffs: [NoxiousGnash],
cooldown: {
time: 40,
charges: 2
Expand All @@ -113,7 +113,7 @@ export const HuntersCoil: VprGcdAbility = {
type: 'gcd',
name: "Hunter's Coil",
id: 34621,
potency: 550,
potency: 620,
attackType: "Weaponskill",
gcd: 3.0,
cast: 0,
Expand All @@ -125,7 +125,7 @@ export const SwiftskinsCoil: VprGcdAbility = {
type: 'gcd',
name: "Swiftskin's Coil",
id: 34622,
potency: 550,
potency: 620,
attackType: "Weaponskill",
gcd: 3.0,
cast: 0,
Expand All @@ -137,7 +137,7 @@ export const UncoiledFury: VprGcdAbility = {
type: 'gcd',
name: "Uncoiled Fury",
id: 34633,
potency: 600,
potency: 680,
attackType: "Weaponskill",
gcd: 3.5,
cast: 0,
Expand All @@ -148,7 +148,7 @@ export const Reawaken: VprGcdAbility = {
type: 'gcd',
name: "Reawaken",
id: 34626,
potency: 700,
potency: 750,
attackType: "Weaponskill",
gcd: 2.2,
cast: 0,
Expand All @@ -159,7 +159,7 @@ const GenerationBase: VprGcdAbility = {
name: null,
id: null,
type: 'gcd',
potency: 600,
potency: 680,
attackType: "Weaponskill",
gcd: 2.0,
cast: 0,
Expand Down Expand Up @@ -193,7 +193,7 @@ export const Ouroboros: VprGcdAbility = {
name: "Ouroboros",
id: 34631,
type: 'gcd',
potency: 600,
potency: 1150,
attackType: "Weaponskill",
gcd: 2.0,
cast: 0,
Expand All @@ -203,7 +203,7 @@ const LegacyBase: VprOgcdAbility = {
name: null,
id: null,
type: 'ogcd',
potency: 250,
potency: 280,
attackType: 'Ability'
}

Expand Down Expand Up @@ -249,38 +249,38 @@ export const TwinfangBite: VprOgcdAbility = {
name: "Twinfang Bite",
id: 34636,
type: 'ogcd',
potency: 100,
potency: 120,
attackType: 'Ability',
}

export const TwinbloodBite: VprOgcdAbility = {
name: "Twinblood Bite",
id: 34637,
type: 'ogcd',
potency: 100,
potency: 120,
attackType: 'Ability',
}

export const DeathRattle: VprOgcdAbility = {
name: "Death Rattle",
id: 34634,
type: 'ogcd',
potency: 250,
potency: 280,
attackType: 'Ability',
}

export const UncoiledTwinfang: VprOgcdAbility = {
name: "Uncoiled Twinfang",
id: 34644,
type: 'ogcd',
potency: 100,
potency: 120,
attackType: 'Ability',
}

export const UncoiledTwinblood: VprOgcdAbility = {
name: "Uncoiled Twinblood",
id: 34645,
type: 'ogcd',
potency: 100,
potency: 120,
attackType: 'Ability',
}
58 changes: 41 additions & 17 deletions packages/frontend/src/scripts/sims/melee/vpr/vpr_buffs.ts
Original file line number Diff line number Diff line change
@@ -1,46 +1,70 @@
import { Ability, Buff, BuffController, PersonalBuff } from "@xivgear/core/sims/sim_types";
import * as Actions from "./vpr_actions"

export const NoxiousGnash: PersonalBuff = {
name: "Noxious Gnash",
saveKey: "Noxious Gnash",
duration: 20,
export const HonedReavers: PersonalBuff = {
name: "Honed Reavers",
saveKey: "Honed Reavers",
duration: 60,
selfOnly: true,
effects: {
dmgIncrease: 0.1
// Increases potency of Reaving Fang by 100
},
statusId: 3667,
maxStackingDuration: 40,
};
statusId: 3772,
appliesTo: ability => ability.id == Actions.ReavingFangs.id,
beforeSnapshot<X extends Ability>(buffController: BuffController, ability: X): X {
buffController.removeSelf();
return {
...ability,
potency: ability.potency + 100,
};
},
}

export const HonedSteel: PersonalBuff = {
name: "Honed Steel",
saveKey: "Honed Steel",
duration: 60,
selfOnly: true,
effects: {
// Increases potency of Reaving Fang by 100
},
statusId: 3772,
appliesTo: ability => ability.id == Actions.SteelFangs.id,
beforeSnapshot<X extends Ability>(buffController: BuffController, ability: X): X {
buffController.removeSelf();
return {
...ability,
potency: ability.potency + 100,
};
},
}

export const HuntersInstinct: PersonalBuff = {
name: "Hunter's Instinct",
saveKey: "Hunter's Instinct",
duration: 20,
duration: 40,
selfOnly: true,
effects: {
dmgIncrease: 0.1
},
statusId: 3668,
maxStackingDuration: 40,
};

export const Swiftscaled: PersonalBuff = {
name: "Swiftscaled",
saveKey: "SwiftScaled",
duration: 20,
duration: 40,
selfOnly: true,
effects: {
haste: 15,
},
statusId: 3669,
maxStackingDuration: 40,
};

const ComboFinisherBaseBuff: Buff = {
name: null,
saveKey: null,
duration: 40,
duration: 60,
selfOnly: true,
effects: {
// Only applies to Hindsting strike, buffing potency by 100p
Expand Down Expand Up @@ -118,7 +142,7 @@ export const HuntersVenom: PersonalBuff = {
buffController.removeSelf();
return {
...ability,
potency: 150,
potency: 170,
};
}
}
Expand All @@ -136,7 +160,7 @@ export const SwiftskinsVenom: PersonalBuff = {
buffController.removeSelf();
return {
...ability,
potency: 150,
potency: 170,
};
}
}
Expand All @@ -154,7 +178,7 @@ export const PoisedForTwinfang: PersonalBuff = {
buffController.removeSelf();
return {
...ability,
potency: 150,
potency: 170,
};
}
}
Expand All @@ -172,7 +196,7 @@ export const PoisedForTwinblood: PersonalBuff = {
buffController.removeSelf();
return {
...ability,
potency: 150,
potency: 170,
};
}
}
Loading

0 comments on commit 3496d98

Please sign in to comment.