Add basic data

pull/1/head
I Made Setia Baruna 2020-10-24 00:49:42 +07:00
parent c46f34d21e
commit c076964559
3 changed files with 81 additions and 0 deletions

27
src/data/characters.js Normal file
View File

@ -0,0 +1,27 @@
import { elements } from './elements';
import { weapons } from './weapons';
export const characters = {
amber: { name: 'Amber', element: elements.pyro, weapon: weapons.bow, rarity: 4 },
barbara: { name: 'Barbara', element: elements.hydro, weapon: weapons.catalyst, rarity: 4 },
beidou: { name: 'Beidou', element: elements.electro, weapon: weapons.claymore, rarity: 4 },
bennett: { name: 'Bennett', element: elements.pyro, weapon: weapons.sword, rarity: 4 },
chongyun: { name: 'Chongyun', element: elements.cryo, weapon: weapons.claymore, rarity: 4 },
diluc: { name: 'Diluc', element: elements.pyro, weapon: weapons.claymore, rarity: 5 },
fischl: { name: 'Fischl', element: elements.electro, weapon: weapons.bow, rarity: 4 },
jean: { name: 'Jean', element: elements.anemo, weapon: weapons.sword, rarity: 5 },
kaeya: { name: 'Kaeya', element: elements.cryo, weapon: weapons.sword, rarity: 4 },
keqing: { name: 'Keqing', element: elements.electro, weapon: weapons.sword, rarity: 5 },
lisa: { name: 'Lisa', element: elements.electro, weapon: weapons.catalyst, rarity: 4 },
mona: { name: 'Mona', element: elements.hydro, weapon: weapons.catalyst, rarity: 5 },
ningguang: { name: 'Ningguang', element: elements.geo, weapon: weapons.catalyst, rarity: 4 },
noelle: { name: 'Noelle', element: elements.geo, weapon: weapons.claymore, rarity: 4 },
qiqi: { name: 'Qiqi', element: elements.cryo, weapon: weapons.sword, rarity: 5 },
razor: { name: 'Razor', element: elements.electro, weapon: weapons.claymore, rarity: 4 },
sucrose: { name: 'Sucrose', element: elements.anemo, weapon: weapons.catalyst, rarity: 4 },
traveler_anemo: { name: 'Traveler (Anemo)', element: elements.anemo, weapon: weapons.sword, rarity: 5 },
traveler_geo: { name: 'Traveler (Geo)', element: elements.geo, weapon: weapons.sword, rarity: 5 },
venti: { name: 'Venti', element: elements.anemo, weapon: weapons.bow, rarity: 5 },
xiangling: { name: 'Xiangling', element: elements.pyro, weapon: weapons.polearm, rarity: 4 },
xingqiu: { name: 'Xingqiu', element: elements.hydro, weapon: weapons.sword, rarity: 4 },
};

32
src/data/elements.js Normal file
View File

@ -0,0 +1,32 @@
export const elements = {
geo: {
id: 'geo',
name: 'Geo',
simpleName: 'Stone',
},
anemo: {
id: 'anemo',
name: 'Anemo',
simpleName: 'Wind',
},
pyro: {
id: 'pyro',
name: 'Pyro',
simpleName: 'Fire',
},
hydro: {
id: 'hydro',
name: 'Hydro',
simpleName: 'Water',
},
electro: {
id: 'electro',
name: 'Electro',
simpleName: 'Electro',
},
cryo: {
id: 'cryo',
name: 'Cryo',
simpleName: 'Ice',
},
};

22
src/data/weapons.js Normal file
View File

@ -0,0 +1,22 @@
export const weapons = {
sword: {
id: 'sword',
name: 'Sword',
},
bow: {
id: 'bow',
name: 'Bow',
},
polearm: {
id: 'polearm',
name: 'Polearm',
},
claymore: {
id: 'claymore',
name: 'Claymore',
},
catalyst: {
id: 'catalyst',
name: 'Catalyst',
},
};