- {itemList.filter((item)=>{
- switch (tabPage) {
- case 2:{
- return item[0].name==="Assault Rifle"
- }
- case 3:{
- return item[0].name==="Launcher"
- }
- case 4:{
- return item[0].name==="Rod"
- }
- case 5:{
- return item[0].name==="Talis"
- }
- default:{
- return true
- }
- }
- }).filter((item)=>{
- if (filter.length>0) {
- return (item[1].name.toLowerCase()+" "+item[0].name.toLowerCase()).includes(filter.toLowerCase())
- } else {
- return true
+ dataFunction={()=>{
+ var dat1=p.GetData("weapon_existence_data")
+ return Array.isArray(dat1)?dat1.map((we)=>{
+ var weapon_type=p.GetData("weapon_type",we.weapon_type_id,undefined,true)
+ var weapon=p.GetData("weapon",we.weapon_id,undefined,true)
+ var potential=p.GetData("potential",weapon.potential_id,undefined,true)
+ return [weapon_type,weapon,potential]
+ }):[]
+ }}
+ filterFunction={(page,item)=>{
+ switch (page) {
+ case 2:return item[0].name==="Assault Rifle"
+ case 3:return item[0].name==="Launcher"
+ case 4:return item[0].name==="Rod"
+ case 5:return item[0].name==="Talis"
+ default:return true
}
- }).sort((a,b)=>{
- switch (sortSelector) {
- case "Rarity":{
- return b[1].rarity-a[1].rarity
- }
- case "Attack":{
- return b[1].atk-a[1].atk
- }
- default:{
- return 0
- }
- }
- }).map((item)=>
{item[1].name} {item[0].name} {item[1].atk}{item[2].name}Lv.4: Potency +24%/ 20% chance of Restasigne not being consumed on use. Effect starts 10 sec after equip
{item[1].name} {item[0].name} {item[1].atk}{item[2].name}Lv.4: Potency +24%/ 20% chance of Restasigne not being consumed on use. Effect starts 10 sec after equip