Skip to content

Commit

Permalink
Add Rei
Browse files Browse the repository at this point in the history
  • Loading branch information
apache1123 committed Mar 28, 2024
1 parent aedf4b6 commit c3c400d
Show file tree
Hide file tree
Showing 6 changed files with 163 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tof-tools",
"version": "3.12.0",
"version": "3.13.0",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
Binary file added public/icons/weapons/rei.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/constants/changelog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,4 +201,9 @@ export const changelog: Changelog = [
date: new Date(Date.UTC(2024, 2, 15)),
title: 'Add a page containing useful links',
},
{
semver: '3.13.0',
date: new Date(Date.UTC(2024, 2, 29)),
title: 'Add Rei',
},
];
34 changes: 34 additions & 0 deletions src/constants/matrix-set-definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export type MatrixSetBaseName =
| 'Nan Yin'
| 'Nemesis'
| 'Plotti'
| 'Rei'
| 'Rubilia'
| 'Ruby'
| 'Saki Fuwa'
Expand Down Expand Up @@ -80,6 +81,7 @@ export const matrixSet2pcOrder: DataAllIds<MatrixSet2pcName> = [
'Nan Yin 2pc',
'Nemesis 2pc',
'Plotti 2pc',
'Rei 2pc',
'Rubilia 2pc',
'Ruby 2pc',
'Saki Fuwa 2pc',
Expand Down Expand Up @@ -124,6 +126,7 @@ export const matrixSet4pcOrder: DataAllIds<MatrixSet4pcName> = [
'Nan Yin 4pc',
'Nemesis 4pc',
'Plotti 4pc',
'Rei 4pc',
'Rubilia 4pc',
'Ruby 4pc',
'Saki Fuwa 4pc',
Expand Down Expand Up @@ -566,6 +569,14 @@ export const matrixSetDefinitionsLookup: DataById<
critRateBuffs: [],
critDamageBuffs: [],
},
'Rei 2pc': {
id: 'Rei 2pc',
displayName: 'Rei 2pc',
pieces: 2,
attackPercentBuffs: [],
critRateBuffs: [],
critDamageBuffs: [],
},
'Rubilia 2pc': {
id: 'Rubilia 2pc',
displayName: 'Rubilia 2pc',
Expand Down Expand Up @@ -1072,6 +1083,29 @@ export const matrixSetDefinitionsLookup: DataById<
critRateBuffs: [],
critDamageBuffs: [],
},
'Rei 4pc': {
id: 'Rei 4pc',
displayName: 'Rei 4pc',
pieces: 4,
attackPercentBuffs: [
{
description:
"After dealing damage with Rei's weapon, increase volt and frost ATK by 12% for 5 seconds",
starValues: [
{ star: 0, value: 0.12 },
{ star: 1, value: 0.12 },
{ star: 2, value: 0.12 },
{ star: 3, value: 0.12 },
],
elementalTypes: ['Volt', 'Frost'],
canStack: false,
isActivePassively: false,
weaponRequirement: 'Rei',
},
],
critRateBuffs: [],
critDamageBuffs: [],
},
'Rubilia 4pc': {
id: 'Rubilia 4pc',
displayName: 'Rubilia 4pc',
Expand Down
44 changes: 44 additions & 0 deletions src/constants/simulacrum-traits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,50 @@ export const simulacrumTraits: Data<SimulacrumName, SimulacrumTrait> = {
},
],
},
Rei: {
id: 'Rei',
displayName: 'Rei',
attackBuffs: [],
damageBuffs: [
{
id: 'rei-trait',
displayName: 'Rei trait',
description: 'Increase final damage by 18%',
value: 0.18,
elementalTypes: ['Altered', 'Flame', 'Frost', 'Physical', 'Volt'],
damageCategory: '[TEMP_TRAIT]',
maxStacks: 1,
triggeredBy: {
combatStart: true,
},
duration: {
untilCombatEnd: true,
},
cooldown: 0,
},
{
id: 'rei-trait-attack-resonance',
displayName: 'Rei trait - Attack resonance',
description:
'Increase volt damage by 8% when Attack Resonance is activated',
value: 0.08,
elementalTypes: ['Volt'],
damageCategory: '[TEMP_TRAIT]',
maxStacks: 1,
triggeredBy: {
combatStart: true,
},
duration: {
untilCombatEnd: true,
},
cooldown: 0,
requirements: {
weaponResonance: 'Attack',
},
},
],
miscellaneousBuffs: [],
},
Rubilia: {
id: 'Rubilia',
displayName: 'Rubilia',
Expand Down
79 changes: 79 additions & 0 deletions src/constants/weapon-definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export type WeaponName =
| 'Nan Yin'
| 'Nemesis'
| 'Plotti'
| 'Rei'
| 'Rubilia'
| 'Ruby'
| 'Saki Fuwa'
Expand Down Expand Up @@ -71,6 +72,7 @@ export const weaponDefinitions: Data<WeaponName, WeaponDefinition> = {
'Nan Yin',
'Nemesis',
'Plotti',
'Rei',
'Rubilia',
'Ruby',
'Saki Fuwa',
Expand Down Expand Up @@ -1624,6 +1626,83 @@ export const weaponDefinitions: Data<WeaponName, WeaponDefinition> = {
attackBuffs: [],
damageBuffs: [],
},
Rei: {
id: 'Rei',
displayName: 'Rei',
resonanceElements: ['Volt', 'Frost'],
damageElement: 'Volt',
type: 'DPS',
attackPercentBuffs: [
{
id: 'Volt Resonance',
displayName: 'Volt Resonance',
description: '+15% volt ATK when equipping 2 or more volt weapons',
value: 0.15,
elementalTypes: ['Volt'],
canStack: false,
isActivePassively: true,
minStarRequirement: 0,
maxStarRequirement: 6,
elementalResonanceRequirements: ['Volt'],
},
{
id: 'Frost Resonance',
displayName: 'Frost Resonance',
description: '+15% frost ATK when equipping 2 or more frost weapons',
value: 0.15,
elementalTypes: ['Frost'],
canStack: false,
isActivePassively: true,
minStarRequirement: 0,
maxStarRequirement: 6,
elementalResonanceRequirements: ['Frost'],
},
{
id: 'Energy Consumption - Volt',
displayName: 'Energy Consumption',
description: '+15% volt ATK when Energy Consumption is active',
value: 0.15,
elementalTypes: ['Volt'],
canStack: false,
isActivePassively: false,
minStarRequirement: 0,
maxStarRequirement: 6,
},
{
id: 'Energy Consumption - Frost',
displayName: 'Energy Consumption',
description: '+5% volt ATK when Energy Consumption is active',
value: 0.05,
elementalTypes: ['Frost'],
canStack: false,
isActivePassively: false,
minStarRequirement: 0,
maxStarRequirement: 6,
},
],
critRateBuffs: [],
normalAttacks: [],
dodgeAttacks: [],
skills: [],
discharge: {
id: 'rei-discharge',
displayName: 'Rei discharge [placeholder]',
elementalType: 'Volt',
type: 'discharge',
attackMultiplier: 0,
attackFlat: 0,
duration: 5000,
cooldown: 0,
charge: 0,
requirements: {
hasFullCharge: true,
notActiveWeapon: 'Rei',
},
},
effects: [],
attackBuffs: [],
damageBuffs: [],
},
Rubilia: {
id: 'Rubilia',
displayName: 'Rubilia',
Expand Down

0 comments on commit c3c400d

Please sign in to comment.