| 
						
						
						
					 | 
					 | 
					@ -1,12 +1,16 @@ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import { getCategory, createExtraEntry, createBase, createSamples } from './base'; | 
					 | 
					 | 
					 | 
					import { createExtraEntry, createBase, createSamples } from './base'; | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import { Entry, Quality, EquipBase, Equip, Categorys } from './bean'; | 
					 | 
					 | 
					 | 
					import { Entry, Quality, EquipBase, Equip, Categorys } from './bean'; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import { qualitys, extra_entry_num } from './constant'; | 
					 | 
					 | 
					 | 
					import { qualitys, extra_entry_num } from './constant'; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					const extraEntrys = ['atk', 'crit', 'critDmg', 'hp', 'def', 'atkPercent', 'defPercent', 'hpPercent', 'dmgPercent']; | 
					 | 
					 | 
					 | 
					const extraEntrys = ['atk', 'crit', 'critDmg', 'hp', 'def', 'atkPercent', 'defPercent', 'hpPercent', 'dmgPercent']; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					const coefficient = { shabby: 0.7, ordinary: 1, artifact: 1.5, epic: 1.8, unique: 2, colorful: 2 }; | 
					 | 
					 | 
					 | 
					const coefficient = { shabby: 0.7, ordinary: 1, artifact: 1.5, epic: 1.8, unique: 2, colorful: 2 }; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					class WeaponCategory extends Categorys { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					  type: string = 'weapon'; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					export const weaponColorfulCategorys: Categorys[] = [ | 
					 | 
					 | 
					 | 
					export const weaponColorfulCategorys: Categorys[] = [ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  new Categorys( | 
					 | 
					 | 
					 | 
					  new WeaponCategory( | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    'qiuai', | 
					 | 
					 | 
					 | 
					    'qiuai', | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    'weapon/求爱.png', | 
					 | 
					 | 
					 | 
					    'weapon/求爱.png', | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    [ | 
					 | 
					 | 
					 | 
					    [ | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -18,70 +22,70 @@ export const weaponColorfulCategorys: Categorys[] = [ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  ), | 
					 | 
					 | 
					 | 
					  ), | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					]; | 
					 | 
					 | 
					 | 
					]; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					export const weaponUniqueCategorys: Categorys[] = [ | 
					 | 
					 | 
					 | 
					export const weaponUniqueCategorys: WeaponCategory[] = [ | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  new Categorys('creation', 'U_Sword01.png', [ | 
					 | 
					 | 
					 | 
					  new WeaponCategory('creation', 'U_Sword01.png', [ | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    { type: 'atk', valCoefficient: 1.8 }, | 
					 | 
					 | 
					 | 
					    { type: 'atk', valCoefficient: 1.8 }, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    { type: 'crit', valCoefficient: 1.5 }, | 
					 | 
					 | 
					 | 
					    { type: 'crit', valCoefficient: 1.5 }, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    { type: 'critDmg', valCoefficient: 1.3 }, | 
					 | 
					 | 
					 | 
					    { type: 'critDmg', valCoefficient: 1.3 }, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  ]), | 
					 | 
					 | 
					 | 
					  ]), | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  new Categorys('nameless', 'U_Sword02.png', [ | 
					 | 
					 | 
					 | 
					  new WeaponCategory('nameless', 'U_Sword02.png', [ | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    { type: 'atk', valCoefficient: 2.7 }, | 
					 | 
					 | 
					 | 
					    { type: 'atk', valCoefficient: 2.7 }, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    { type: 'crit', valCoefficient: 2.5 }, | 
					 | 
					 | 
					 | 
					    { type: 'crit', valCoefficient: 2.5 }, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  ]), | 
					 | 
					 | 
					 | 
					  ]), | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  new Categorys('scarlet', 'U_Sword03.png', [ | 
					 | 
					 | 
					 | 
					  new WeaponCategory('scarlet', 'U_Sword03.png', [ | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    { type: 'atk', valCoefficient: 1.8 }, | 
					 | 
					 | 
					 | 
					    { type: 'atk', valCoefficient: 1.8 }, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    { type: 'crit', valCoefficient: 1.5 }, | 
					 | 
					 | 
					 | 
					    { type: 'crit', valCoefficient: 1.5 }, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    { type: 'critDmg', valCoefficient: 1.3 }, | 
					 | 
					 | 
					 | 
					    { type: 'critDmg', valCoefficient: 1.3 }, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  ]), | 
					 | 
					 | 
					 | 
					  ]), | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  new Categorys('death', 'U_Sword04.png', [ | 
					 | 
					 | 
					 | 
					  new WeaponCategory('death', 'U_Sword04.png', [ | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    { type: 'atk', valCoefficient: 1.8 }, | 
					 | 
					 | 
					 | 
					    { type: 'atk', valCoefficient: 1.8 }, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    { type: 'crit', valCoefficient: 1.5 }, | 
					 | 
					 | 
					 | 
					    { type: 'crit', valCoefficient: 1.5 }, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    { type: 'critDmg', valCoefficient: 1.3 }, | 
					 | 
					 | 
					 | 
					    { type: 'critDmg', valCoefficient: 1.3 }, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  ]), | 
					 | 
					 | 
					 | 
					  ]), | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  new Categorys('frostDragon', 'U_Sword05.png', [ | 
					 | 
					 | 
					 | 
					  new WeaponCategory('frostDragon', 'U_Sword05.png', [ | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    { type: 'atk', valCoefficient: 1.8 }, | 
					 | 
					 | 
					 | 
					    { type: 'atk', valCoefficient: 1.8 }, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    { type: 'crit', valCoefficient: 1.5 }, | 
					 | 
					 | 
					 | 
					    { type: 'crit', valCoefficient: 1.5 }, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    { type: 'critDmg', valCoefficient: 1.3 }, | 
					 | 
					 | 
					 | 
					    { type: 'critDmg', valCoefficient: 1.3 }, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  ]), | 
					 | 
					 | 
					 | 
					  ]), | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  new Categorys('dragon', 'U_Sword06.png', [ | 
					 | 
					 | 
					 | 
					  new WeaponCategory('dragon', 'U_Sword06.png', [ | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    { type: 'atk', valCoefficient: 2.8 }, | 
					 | 
					 | 
					 | 
					    { type: 'atk', valCoefficient: 2.8 }, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    { type: 'critDmg', valCoefficient: 2.2 }, | 
					 | 
					 | 
					 | 
					    { type: 'critDmg', valCoefficient: 2.2 }, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  ]), | 
					 | 
					 | 
					 | 
					  ]), | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  new Categorys('adventurer', 'U_Sword07.png', [ | 
					 | 
					 | 
					 | 
					  new WeaponCategory('adventurer', 'U_Sword07.png', [ | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    { type: 'atk', valCoefficient: 2.4 }, | 
					 | 
					 | 
					 | 
					    { type: 'atk', valCoefficient: 2.4 }, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    { type: 'hp', valCoefficient: 1.8 }, | 
					 | 
					 | 
					 | 
					    { type: 'hp', valCoefficient: 1.8 }, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  ]), | 
					 | 
					 | 
					 | 
					  ]), | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  new Categorys('seraphim', 'U_Sword08.png', [ | 
					 | 
					 | 
					 | 
					  new WeaponCategory('seraphim', 'U_Sword08.png', [ | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    { type: 'atk', valCoefficient: 2.6 }, | 
					 | 
					 | 
					 | 
					    { type: 'atk', valCoefficient: 2.6 }, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    { type: 'def', valCoefficient: 1.8 }, | 
					 | 
					 | 
					 | 
					    { type: 'def', valCoefficient: 1.8 }, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  ]), | 
					 | 
					 | 
					 | 
					  ]), | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  new Categorys('shuzhuwan', 'U_Sword09.png', [{ type: 'atk', valCoefficient: 3.9 }]), | 
					 | 
					 | 
					 | 
					  new WeaponCategory('shuzhuwan', 'U_Sword09.png', [{ type: 'atk', valCoefficient: 3.9 }]), | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  new Categorys('leibse', 'U_Sword10.png', [ | 
					 | 
					 | 
					 | 
					  new WeaponCategory('leibse', 'U_Sword10.png', [ | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    { type: 'atk', valCoefficient: 1.9 }, | 
					 | 
					 | 
					 | 
					    { type: 'atk', valCoefficient: 1.9 }, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    { type: 'def', valCoefficient: 1.2 }, | 
					 | 
					 | 
					 | 
					    { type: 'def', valCoefficient: 1.2 }, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    { type: 'bloc', valCoefficient: 0.4 }, | 
					 | 
					 | 
					 | 
					    { type: 'bloc', valCoefficient: 0.4 }, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  ]), | 
					 | 
					 | 
					 | 
					  ]), | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					]; | 
					 | 
					 | 
					 | 
					]; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					export const weaponCategorys: Categorys[] = [ | 
					 | 
					 | 
					 | 
					export const weaponCategorys: WeaponCategory[] = [ | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  new Categorys('hellrock', 'W_Sword016.png', [ | 
					 | 
					 | 
					 | 
					  new WeaponCategory('hellrock', 'W_Sword016.png', [ | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    { type: 'atk', valCoefficient: 1.2 }, | 
					 | 
					 | 
					 | 
					    { type: 'atk', valCoefficient: 1.2 }, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    { type: 'crit', valCoefficient: 1.3 }, | 
					 | 
					 | 
					 | 
					    { type: 'crit', valCoefficient: 1.3 }, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  ]), | 
					 | 
					 | 
					 | 
					  ]), | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  new Categorys('warrior', 'W_Sword007.png', [ | 
					 | 
					 | 
					 | 
					  new WeaponCategory('warrior', 'W_Sword007.png', [ | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    { type: 'atk', valCoefficient: 1.2 }, | 
					 | 
					 | 
					 | 
					    { type: 'atk', valCoefficient: 1.2 }, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    { type: 'def', valCoefficient: 0.5 }, | 
					 | 
					 | 
					 | 
					    { type: 'def', valCoefficient: 0.5 }, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  ]), | 
					 | 
					 | 
					 | 
					  ]), | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  new Categorys('redWillow', 'W_Sword019.png', [ | 
					 | 
					 | 
					 | 
					  new WeaponCategory('redWillow', 'W_Sword019.png', [ | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    { type: 'atk', valCoefficient: 1.3 }, | 
					 | 
					 | 
					 | 
					    { type: 'atk', valCoefficient: 1.3 }, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    { type: 'hp', valCoefficient: 1.1 }, | 
					 | 
					 | 
					 | 
					    { type: 'hp', valCoefficient: 1.1 }, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  ]), | 
					 | 
					 | 
					 | 
					  ]), | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  new Categorys('sword', 'W_Sword001.png', [{ type: 'atk', valCoefficient: 1.7 }]), | 
					 | 
					 | 
					 | 
					  new WeaponCategory('sword', 'W_Sword001.png', [{ type: 'atk', valCoefficient: 1.7 }]), | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  new Categorys('waveBlade', 'W_Sword021.png', [{ type: 'atk', valCoefficient: 1.7 }]), | 
					 | 
					 | 
					 | 
					  new WeaponCategory('waveBlade', 'W_Sword021.png', [{ type: 'atk', valCoefficient: 1.7 }]), | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  new Categorys('furryPaw', 'W_Fist003.png', [ | 
					 | 
					 | 
					 | 
					  new WeaponCategory('furryPaw', 'W_Fist003.png', [ | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    { type: 'atk', valCoefficient: 2 }, | 
					 | 
					 | 
					 | 
					    { type: 'atk', valCoefficient: 2 }, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    { type: 'crit', valCoefficient: 0.7 }, | 
					 | 
					 | 
					 | 
					    { type: 'crit', valCoefficient: 0.7 }, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  ]), | 
					 | 
					 | 
					 | 
					  ]), | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  new Categorys('iceCrystals', 'W_Sword018.png', [ | 
					 | 
					 | 
					 | 
					  new WeaponCategory('iceCrystals', 'W_Sword018.png', [ | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    { type: 'atk', valCoefficient: 1.4 }, | 
					 | 
					 | 
					 | 
					    { type: 'atk', valCoefficient: 1.4 }, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    { type: 'critDmg', valCoefficient: 1.3 }, | 
					 | 
					 | 
					 | 
					    { type: 'critDmg', valCoefficient: 1.3 }, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  ]), | 
					 | 
					 | 
					 | 
					  ]), | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -95,10 +99,9 @@ export const initialWeapon = () => { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  return new Equip(type, 1, qualityBean, base, extraEntry); | 
					 | 
					 | 
					 | 
					  return new Equip(type, 1, qualityBean, base, extraEntry); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					}; | 
					 | 
					 | 
					 | 
					}; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					export const createWeapon = (quality, lv) => { | 
					 | 
					 | 
					 | 
					export const createweapon = (quality, lv, category) => { | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  const type = 'weapon'; | 
					 | 
					 | 
					 | 
					  const type = 'weapon'; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  const qualityBean = new Quality(quality, coefficient[quality]); | 
					 | 
					 | 
					 | 
					  const qualityBean = new Quality(quality, coefficient[quality]); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  const category = getCategory(quality, weaponCategorys, weaponUniqueCategorys, weaponColorfulCategorys); | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  const base = createBase(quality, lv, category, coefficient); | 
					 | 
					 | 
					 | 
					  const base = createBase(quality, lv, category, coefficient); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  const extraEntry = new Array(); | 
					 | 
					 | 
					 | 
					  const extraEntry = new Array(); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  const extraEntryNum = extra_entry_num[quality]; | 
					 | 
					 | 
					 | 
					  const extraEntryNum = extra_entry_num[quality]; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |