forked from phenom/healer-man
Update Healer Man server
This commit is contained in:
1 parent
4c768fbec6
commit
b16821e92e
330 files changed
+35406
-1760
No files matched your search
@@ -1,5 +1,13 @@
|
||||
export const ROM_ROGUE_DAGGER_MASTERY_TAG = "rom-dagger-mastery";
|
||||
export const ROM_ROGUE_TREASURE_HUNTER_TAG = "rom-treasure-hunter";
|
||||
export const ROM_ROGUE_OFF_HAND_MASTERY_TAG = "rom-off-hand-mastery";
|
||||
export const ROM_ROGUE_OFF_HAND_MASTERY_DAMAGE_PERCENT = 4;
|
||||
export const ROM_ROGUE_OFF_HAND_MASTERY_ACCURACY_PERCENT = 4;
|
||||
export const ROM_ROGUE_COERCE_TAG = "rom-rogue-coerce";
|
||||
export const ROM_ROGUE_COERCE_PASSIVE_SPELL_ID = 493019;
|
||||
export const ROM_ROGUE_COERCE_LOW_BLOW_SPELL_ID = 490323;
|
||||
export const ROM_ROGUE_COERCE_DAMAGE_MULTIPLIER = 1.202;
|
||||
export const ROM_ROGUE_COERCE_ENERGY_COST_REDUCTION = 5;
|
||||
export const ROM_ROGUE_SHADOW_WALKER_PASSIVE_SPELL_ID = 491537;
|
||||
export const ROM_ROGUE_INSTANT_SHADOW_READY_TAG = "rom-rogue-instant-shadow-ready";
|
||||
|
||||
@@ -37,6 +45,45 @@ const NO_SHADOW_WALKER_ADJUSTMENT: RomRogueAbilityAdjustment = Object.freeze({
|
||||
cooldownIncreaseMs: 0,
|
||||
});
|
||||
|
||||
/** Coerce reduces only Low Blow's Energy cost for a Rogue/Scout who learned the passive. */
|
||||
export function romRogueCoerceAbilityAdjustment(
|
||||
classId: string,
|
||||
secondaryClassId: string | null | undefined,
|
||||
abilitySource: string | undefined,
|
||||
abilitySpellId: number,
|
||||
passiveSpellIds: readonly number[],
|
||||
): RomRogueAbilityAdjustment {
|
||||
if (classId !== "rom-rogue"
|
||||
|| secondaryClassId !== "rom-scout"
|
||||
|| abilitySource !== "runewaker"
|
||||
|| abilitySpellId !== ROM_ROGUE_COERCE_LOW_BLOW_SPELL_ID
|
||||
|| !passiveSpellIds.includes(ROM_ROGUE_COERCE_PASSIVE_SPELL_ID)) {
|
||||
return NO_SHADOW_WALKER_ADJUSTMENT;
|
||||
}
|
||||
return {
|
||||
allowsCombatUse: false,
|
||||
energyCostReduction: ROM_ROGUE_COERCE_ENERGY_COST_REDUCTION,
|
||||
cooldownIncreaseMs: 0,
|
||||
};
|
||||
}
|
||||
|
||||
export interface RomRogueCoerceDamageContext {
|
||||
readonly classId: string;
|
||||
readonly abilitySource: string | undefined;
|
||||
readonly abilitySpellId: number | undefined;
|
||||
readonly passiveTags: readonly string[];
|
||||
}
|
||||
|
||||
/** Current CoA Coerce adds 20.2% damage to Low Blow for a Rogue/Scout. */
|
||||
export function romRogueCoerceLowBlowDamageMultiplier(context: RomRogueCoerceDamageContext): number {
|
||||
return context.classId === "rom-rogue"
|
||||
&& context.abilitySource === "runewaker"
|
||||
&& context.abilitySpellId === ROM_ROGUE_COERCE_LOW_BLOW_SPELL_ID
|
||||
&& context.passiveTags.includes(ROM_ROGUE_COERCE_TAG)
|
||||
? ROM_ROGUE_COERCE_DAMAGE_MULTIPLIER
|
||||
: 1;
|
||||
}
|
||||
|
||||
/** Shadow Walker's exact Rogue/Priest payload applies only to Sneak Attack. */
|
||||
export function romRogueShadowWalkerAdjustment(
|
||||
classId: string,
|
||||
|
||||
Reference in new issue
Block a user