Skip to content

Commit

Permalink
Add weapon resonance buffs
Browse files Browse the repository at this point in the history
  • Loading branch information
apache1123 committed Mar 28, 2024
1 parent d474dbe commit 91c1ce9
Show file tree
Hide file tree
Showing 19 changed files with 131 additions and 241 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
import type { CommonWeaponAttackBuffDefinition } from '../models/v4/attack-buff/common-weapon-attack-buff-definition';
import type { AttackBuffDefinition } from '../models/v4/attack-buff/attack-buff-definition';

export type CommonWeaponAttackBuffId = 'volt-resonance' | 'frost-resonance';

export const commonWeaponAttackBuffs: Record<
CommonWeaponAttackBuffId,
CommonWeaponAttackBuffDefinition
> = {
'volt-resonance': {
export const commonAttackBuffs: AttackBuffDefinition[] = [
{
id: 'volt-resonance',
displayName: 'Volt Resonance',
description: '+15% volt ATK when equipping 2 or more volt weapons',
Expand All @@ -21,13 +16,14 @@ export const commonWeaponAttackBuffs: Record<
},
cooldown: 0,
requirements: {
anyWeaponInTeam: ['Brevey', 'Huang (Mimi)', 'Yanuo'],
elementalTypeWeaponsInTeam: {
elementalType: 'Volt',
numOfWeapons: 2,
},
},
},
'frost-resonance': {
{
id: 'frost-resonance',
displayName: 'Frost Resonance',
description: '+15% frost ATK when equipping 2 or more frost weapons',
Expand All @@ -42,10 +38,11 @@ export const commonWeaponAttackBuffs: Record<
},
cooldown: 0,
requirements: {
anyWeaponInTeam: ['Brevey', 'Yanuo'],
elementalTypeWeaponsInTeam: {
elementalType: 'Frost',
numOfWeapons: 2,
},
},
},
};
];
61 changes: 61 additions & 0 deletions src/constants/common-damage-buffs.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
import type { DamageBuffDefinition } from '../models/v4/damage-buff/damage-buff-definition';

export const commonDamageBuffs: DamageBuffDefinition[] = [
{
id: 'attack-weapon-resonance',
displayName: 'Attack Resonance',
description:
'Equip at least 2 DPS-type weapons to activate. Increase final damage by 10%, which in team play is further increased to 40%.',
value: 0.1,
damageCategory: 'Weapon resonance',
elementalTypes: ['Altered', 'Flame', 'Frost', 'Physical', 'Volt'],
maxStacks: 1,
triggeredBy: {
combatStart: true,
},
duration: {
untilCombatEnd: true,
},
cooldown: 0,
requirements: { weaponResonance: 'Attack' },
},
{
id: 'balance-weapon-resonance',
displayName: 'Balance Resonance',
description:
'Equip at least 1 weapon of any type. Increase final damage and damage reduction by 5%, shatter and healing effect by 20%. In team play, increase final damage by an additional 35% and damage reduction by an additional 10%.',
value: 0.05,
damageCategory: 'Weapon resonance',
elementalTypes: ['Altered', 'Flame', 'Frost', 'Physical', 'Volt'],
maxStacks: 1,
triggeredBy: {
combatStart: true,
},
duration: {
untilCombatEnd: true,
},
cooldown: 0,
requirements: { weaponResonance: 'Balance' },
},
{
id: 'force-impact',
displayName: 'Force Impact',
description:
'When the weapon is fully charged, the next attack applies Force Impact on the enemy for 45 seconds, increasing their frost and volt damage taken by 10%',
value: 0.1,
elementalTypes: ['Frost', 'Volt'],
damageCategory: '[TEMP_UNKNOWN]',
maxStacks: 1,
triggeredBy: {
fullChargeOfWeapons: ['Brevey'],
weaponAttacks: ['brevey-skill-million-metz-shockwave'],
},
duration: {
value: 45000,
},
cooldown: 15000,
requirements: {
anyWeaponInTeam: ['Brevey'],
},
},
];
27 changes: 0 additions & 27 deletions src/constants/common-weapon-damage-buffs.ts

This file was deleted.

6 changes: 3 additions & 3 deletions src/constants/simulacrum-traits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export const simulacrumTraits: Data<SimulacrumName, SimulacrumTrait> = {
},
cooldown: 0,
requirements: {
weaponInTeam: 'Brevey',
anyWeaponInTeam: ['Brevey'],
},
},
],
Expand Down Expand Up @@ -492,7 +492,7 @@ export const simulacrumTraits: Data<SimulacrumName, SimulacrumTrait> = {
},
cooldown: 0,
requirements: {
weaponInTeam: 'Icarus',
anyWeaponInTeam: ['Icarus'],
},
},
],
Expand Down Expand Up @@ -1281,7 +1281,7 @@ export const simulacrumTraits: Data<SimulacrumName, SimulacrumTrait> = {
},
cooldown: 0,
requirements: {
weaponInTeam: 'Yanuo',
anyWeaponInTeam: ['Yanuo'],
},
},
],
Expand Down
Loading

0 comments on commit 91c1ce9

Please sign in to comment.