-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Sword of Narzissenkreuz * Add todo --------- Co-authored-by: lantua <[email protected]>
- Loading branch information
1 parent
a94910b
commit eb2a4a2
Showing
8 changed files
with
101 additions
and
0 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
apps/frontend/src/app/Data/Weapons/Sword/SwordOfNarzissenkreuz/index.tsx
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,48 @@ | ||
import type { WeaponKey } from '@genshin-optimizer/consts' | ||
import { allStats } from '@genshin-optimizer/gi-stats' | ||
import { input } from '../../../../Formula' | ||
import { | ||
constant, | ||
equal, | ||
infoMut, | ||
prod, | ||
subscript, | ||
} from '../../../../Formula/utils' | ||
import { customDmgNode } from '../../../Characters/dataUtil' | ||
import { st } from '../../../SheetUtil' | ||
import type { IWeaponSheet } from '../../IWeaponSheet' | ||
import WeaponSheet, { headerTemplate } from '../../WeaponSheet' | ||
import { dataObjForWeaponSheet } from '../../util' | ||
|
||
const key: WeaponKey = 'SwordOfNarzissenkreuz' | ||
const data_gen = allStats.weapon.data[key] | ||
|
||
const dmg_arr = [-1, 1.6, 2, 2.4, 2.8, 3.2] | ||
// TODO: Don't show dmg value when wielder has an Arkhe | ||
const dmg = equal( | ||
input.weapon.key, | ||
key, | ||
customDmgNode( | ||
prod( | ||
subscript(input.weapon.refinement, dmg_arr, { unit: '%' }), | ||
input.total.atk | ||
), | ||
'elemental', | ||
{ | ||
hit: { ele: constant('physical') }, | ||
} | ||
) | ||
) | ||
|
||
const data = dataObjForWeaponSheet(key, data_gen, undefined, { | ||
dmg, | ||
}) | ||
const sheet: IWeaponSheet = { | ||
document: [ | ||
{ | ||
header: headerTemplate(key, st('dmg')), | ||
fields: [{ node: infoMut(dmg, { name: st('dmg') }) }], | ||
}, | ||
], | ||
} | ||
export default new WeaponSheet(key, sheet, data_gen, data) |
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
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
Binary file added
BIN
+36 KB
...gi-assets/src/gen/weapons/SwordOfNarzissenkreuz/UI_EquipIcon_Sword_Purewill.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions
9
libs/gi-assets/src/gen/weapons/SwordOfNarzissenkreuz/index.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,9 @@ | ||
// This is a generated index file. | ||
import awakenIcon from './UI_EquipIcon_Sword_Purewill.png' | ||
import icon from './UI_EquipIcon_Sword_Purewill.png' | ||
|
||
const data = { | ||
awakenIcon, | ||
icon, | ||
} as const | ||
export default data |
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
38 changes: 38 additions & 0 deletions
38
libs/gi-stats/Data/Weapons/Sword/SwordOfNarzissenKreuz/data.json
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,38 @@ | ||
{ | ||
"weaponType": "sword", | ||
"rarity": 4, | ||
"mainStat": { | ||
"type": "atk", | ||
"base": 42.401, | ||
"curve": "GROW_CURVE_ATTACK_201" | ||
}, | ||
"subStat": { | ||
"type": "atk_", | ||
"base": 0.09, | ||
"curve": "GROW_CURVE_CRITICAL_201" | ||
}, | ||
"lvlCurves": [ | ||
{ | ||
"key": "atk", | ||
"base": 42.401, | ||
"curve": "GROW_CURVE_ATTACK_201" | ||
}, | ||
{ | ||
"key": "atk_", | ||
"base": 0.09, | ||
"curve": "GROW_CURVE_CRITICAL_201" | ||
} | ||
], | ||
"refinementBonus": {}, | ||
"ascensionBonus": { | ||
"atk": [ | ||
0, | ||
25.9, | ||
51.9, | ||
77.8, | ||
103.7, | ||
129.7, | ||
155.6 | ||
] | ||
} | ||
} |