You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
3.0 KiB
76 lines
3.0 KiB
import { getCategory, createExtraEntry, createBase, createSamples } from './base'; |
|
import { Entry, Quality, EquipBase, Equip, Categorys } from './bean'; |
|
import { qualitys, extra_entry_num } from './constant'; |
|
|
|
const extraEntrys = ['atk', 'hp', 'def', 'moveSpeed', 'dmgReduc']; |
|
const coefficient = { shabby: 0.7, ordinary: 1, artifact: 1.3, epic: 1.5, unique: 1.8, colorful: 1.8 }; |
|
export const shoesColorfulCategorys: Categorys[] = []; |
|
|
|
export const shoesUniqueCategorys: Categorys[] = [ |
|
new Categorys('qxzl', 'shoes/浅夏紫灵.png', [ |
|
{ type: 'moveSpeed', valCoefficient: 1.5 }, |
|
{ type: 'atk', valCoefficient: 1.2 }, |
|
{ type: 'hp', valCoefficient: 1.4 }, |
|
]), |
|
new Categorys('xuedun', 'shoes/血遁靴.png', [ |
|
{ type: 'moveSpeed', valCoefficient: 2.8 }, |
|
{ type: 'hp', valCoefficient: 1.2 }, |
|
]), |
|
new Categorys('talang', 'shoes/踏浪.png', [ |
|
{ type: 'moveSpeed', valCoefficient: 1.8 }, |
|
{ type: 'hp', valCoefficient: 1 }, |
|
{ type: 'atk', valCoefficient: 1.2 }, |
|
]), |
|
new Categorys('jiuwanli', 'shoes/九万里.png', [ |
|
{ type: 'moveSpeed', valCoefficient: 1.9 }, |
|
{ type: 'def', valCoefficient: 1 }, |
|
{ type: 'hp', valCoefficient: 1.2 }, |
|
]), |
|
new Categorys('hongchen', 'shoes/红尘.png', [ |
|
{ type: 'moveSpeed', valCoefficient: 1.2 }, |
|
{ type: 'def', valCoefficient: 1.5 }, |
|
{ type: 'hp', valCoefficient: 1.4 }, |
|
]), |
|
]; |
|
export const shoesCategorys: Categorys[] = [ |
|
new Categorys('lingguan', 'shoes/灵官靴.png', [ |
|
{ type: 'moveSpeed', valCoefficient: 0.8 }, |
|
{ type: 'def', valCoefficient: 1.8 }, |
|
]), |
|
new Categorys('quanchi', 'shoes/犬齿鞋.png', [ |
|
{ type: 'moveSpeed', valCoefficient: 0.8 }, |
|
{ type: 'hp', valCoefficient: 1.8 }, |
|
]), |
|
new Categorys('kunlun', 'shoes/昆仑履.png', [ |
|
{ type: 'moveSpeed', valCoefficient: 0.8 }, |
|
{ type: 'def', valCoefficient: 0.8 }, |
|
{ type: 'hp', valCoefficient: 0.8 }, |
|
]), |
|
]; |
|
|
|
export const initialshoes = () => { |
|
const type = 'shoes'; |
|
const qualityBean = new Quality(qualitys[0], coefficient[qualitys[0]]); |
|
const base = new EquipBase('initial', 'shoes/新手.png', [new Entry('moveSpeed', 10, '+10%', 10, 10)]); |
|
const extraEntry = [new Entry('hp', 10, '+10', 10, 10)]; |
|
return new Equip(type, 1, qualityBean, base, extraEntry); |
|
}; |
|
|
|
export const createshoes = (quality, lv) => { |
|
const type = 'shoes'; |
|
const qualityBean = new Quality(quality, coefficient[quality]); |
|
const category = getCategory(quality, shoesCategorys, shoesUniqueCategorys, shoesColorfulCategorys); |
|
const base = createBase(quality, lv, category, coefficient); |
|
const extraEntry = new Array(); |
|
const extraEntryNum = extra_entry_num[quality]; |
|
for (let i = 0; i < extraEntryNum; i++) { |
|
extraEntry.push(shoesExtraEntry(quality, lv)); |
|
} |
|
return new Equip(type, lv, qualityBean, base, extraEntry); |
|
}; |
|
|
|
export const shoesExtraEntry = (quality, lv) => { |
|
return createExtraEntry(quality, lv, extraEntrys, coefficient); |
|
}; |
|
|
|
export const shoesSamples = createSamples(shoesCategorys, shoesUniqueCategorys, shoesColorfulCategorys, 'shoes', coefficient);
|
|
|