mirror of
https://github.com/DaanVandenBosch/phantasmal-world.git
synced 2025-04-04 22:58:29 +08:00
Store items in json format. Fixed bug in HuntOptimizerStore.
This commit is contained in:
parent
e3c47d73c9
commit
f78de96ef5
1319
public/items.ephinea.json
Normal file
1319
public/items.ephinea.json
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,440 +0,0 @@
|
||||
name
|
||||
AddSlot
|
||||
Agito (1975)
|
||||
Agito (1977)
|
||||
Agito (1980)
|
||||
Agito (1983)
|
||||
Agito (1991)
|
||||
Agito (2001)
|
||||
Alive Aqhu
|
||||
Alliance Uniform
|
||||
Amplifier of Anti
|
||||
Amplifier of Barta
|
||||
Amplifier of Blue
|
||||
Amplifier of Deband
|
||||
Amplifier of Foie
|
||||
Amplifier of Gibarta
|
||||
Amplifier of Gifoie
|
||||
Amplifier of Gizonde
|
||||
Amplifier of Rabarta
|
||||
Amplifier of Rafoie
|
||||
Amplifier of Razonde
|
||||
Amplifier of Red
|
||||
Amplifier of Resta
|
||||
Amplifier of Shifta
|
||||
Amplifier of Yellow
|
||||
Amplifier of Zonde
|
||||
Ancient Saber
|
||||
Angel Harp
|
||||
Angel/Luck
|
||||
Angel/Mind
|
||||
Angry Fist
|
||||
Ano Bazooka
|
||||
Ano Rifle
|
||||
Anti Android Rifle
|
||||
Anti-Light Ring
|
||||
Arms
|
||||
Assist Barrier
|
||||
Asteron Belt
|
||||
Asuka
|
||||
Attribute Plate
|
||||
Attribute Wall
|
||||
Aura Field
|
||||
Baton
|
||||
Battle Verge
|
||||
Beam
|
||||
Belra's Right Arm
|
||||
Berdys
|
||||
Berdysh
|
||||
Berill Photon
|
||||
Black Hound Cuirass
|
||||
Black Odoshi Domaru
|
||||
Black Odoshi Red Nimaidou
|
||||
Blade
|
||||
Blade Dance
|
||||
Blaster
|
||||
Bloody Art
|
||||
Blue Barrier
|
||||
Blue Odoshi Violet Nimaidou
|
||||
Bluefull Card
|
||||
Book of Hitogata
|
||||
Booma's Right Arm
|
||||
Branch of Pakupaku
|
||||
Bravace
|
||||
Brave Hammer
|
||||
Brave Knuckle
|
||||
Breaker
|
||||
Brightness Circle
|
||||
Bringer's Right Arm
|
||||
Brionac
|
||||
Caduceus
|
||||
Calibur
|
||||
Cannon
|
||||
Cannon Rouge
|
||||
Celestial Armor
|
||||
Centurion/Ability
|
||||
Chain Sawd
|
||||
Christmas Present
|
||||
Cladding of Epsilon
|
||||
Claymore
|
||||
Clio
|
||||
Club of Laconium
|
||||
Club of Zumiuran
|
||||
Combat Gear
|
||||
Commander Uniform
|
||||
Congeal Cloak
|
||||
Crimson Coat
|
||||
Cross Scar
|
||||
Crush Bullet
|
||||
Cure/Confuse
|
||||
Cure/Freeze
|
||||
Cure/Paralysis
|
||||
Cure/Poison
|
||||
Cure/Shock
|
||||
Cure/Slow
|
||||
Cursed Cloak
|
||||
Custom Barrier ver.OO
|
||||
Custom Frame ver.OO
|
||||
Custom Ray ver.OO
|
||||
Cutter
|
||||
D-Parts ver1.01
|
||||
D-Parts ver2.10
|
||||
D-Photon Core
|
||||
DB's Armor
|
||||
DB's Saber
|
||||
DB's Saber (3062)
|
||||
DB's Saber (3064)
|
||||
DB's Saber (3067)
|
||||
DB's Saber (3069 Chris)
|
||||
DB's Saber (3069 Torato)
|
||||
DB's Saber (3070)
|
||||
DB's Saber (3073)
|
||||
DB's Saber (3075)
|
||||
DB's Saber (3077)
|
||||
DB's Shield
|
||||
DF Field
|
||||
DF Shield
|
||||
Daylight Scar
|
||||
De Rol Le Shell
|
||||
Def Material
|
||||
Delsaber's Left Arm
|
||||
Delsaber's Right Arm
|
||||
Demolition Comet
|
||||
Demonic Fork
|
||||
Devil/Battle
|
||||
Devil/Technique
|
||||
Diska
|
||||
Diska of Braveman
|
||||
Diska of Liberator
|
||||
Divine Protection
|
||||
Double Saber
|
||||
Dragon Scale
|
||||
Dragon Slayer
|
||||
Dragon's Claw
|
||||
Dragon/HP
|
||||
Dress Plate
|
||||
Durandal
|
||||
Earth Wand: Brownie
|
||||
Easter Egg
|
||||
Edge
|
||||
Electro Frame
|
||||
Elysion
|
||||
Evade Material
|
||||
Evil Curst
|
||||
Fatsia
|
||||
Final Impact
|
||||
Fire Scepter: Agni
|
||||
Flamberge
|
||||
Flame Garment
|
||||
Flame Visit
|
||||
Flapjack Flapper
|
||||
Flight Cutter
|
||||
Flight Fan
|
||||
Flowen's Frame
|
||||
Flowen's Shield
|
||||
Flowen's Sword
|
||||
Flowen's Sword (3060)
|
||||
Flowen's Sword (3064)
|
||||
Flowen's Sword (3067)
|
||||
Flowen's Sword (3073)
|
||||
Flowen's Sword (3077)
|
||||
Flowen's Sword (3079)
|
||||
Flowen's Sword (3082)
|
||||
Flowen's Sword (3083)
|
||||
Flowen's Sword (3084)
|
||||
Frozen Shooter
|
||||
Gae Bolg
|
||||
Gal Gryphon's Wing
|
||||
Galatine
|
||||
Gatling
|
||||
General/Arm
|
||||
General/Legs
|
||||
General/Mind
|
||||
General/Power
|
||||
Gi Gue's Body
|
||||
Gigobooma's Right Arm
|
||||
Girasole
|
||||
Glaive
|
||||
Glide Divine
|
||||
Gobooma's Right Arm
|
||||
God Hand
|
||||
God/Ability
|
||||
God/Arm
|
||||
God/Battle
|
||||
God/Body
|
||||
God/HP
|
||||
God/Legs
|
||||
God/Luck
|
||||
God/Mind
|
||||
God/Power
|
||||
God/TP
|
||||
God/Technique
|
||||
Grass Assassin's Arms
|
||||
Gratia
|
||||
Graviton Plate
|
||||
Greenill Card
|
||||
Guard Wave
|
||||
Guardianna
|
||||
Guilty Light
|
||||
Gungnir
|
||||
Guren
|
||||
H&S25 Justice
|
||||
HP Material
|
||||
HP/Restorate
|
||||
HP/Revival
|
||||
Handgun: Guld
|
||||
Handgun: Milla
|
||||
Heart of Poumn
|
||||
Heaven Punisher
|
||||
Heaven Striker
|
||||
Heaven Striker Coat
|
||||
Heavenly/Ability
|
||||
Heavenly/Arms
|
||||
Heavenly/Battle
|
||||
Heavenly/Body
|
||||
Heavenly/HP
|
||||
Heavenly/Legs
|
||||
Heavenly/Luck
|
||||
Heavenly/Mind
|
||||
Heavenly/Power
|
||||
Heavenly/Resist
|
||||
Heavenly/TP
|
||||
Hero/Ability
|
||||
Hildebear's Head
|
||||
Hildeblue's Head
|
||||
Hitogata
|
||||
Holy Ray
|
||||
Ice Staff: Dagon
|
||||
Ignition Cloak
|
||||
Imperial Pick
|
||||
Infantry Gear
|
||||
Infantry Mantle
|
||||
Inferno Bazooka
|
||||
Invisible Guard
|
||||
Jack-O'-Lantern
|
||||
Justy-23ST
|
||||
Kaladbolg
|
||||
Kamui
|
||||
Kasami Bracer
|
||||
Kunai
|
||||
Kusanagi
|
||||
L&K14 Combat
|
||||
L&K38 Combat
|
||||
Laconium Axe
|
||||
Lame d'Argent
|
||||
Laser
|
||||
Last Survivor
|
||||
Launcher
|
||||
Lavis Cannon
|
||||
Liberta Kit
|
||||
Lieutenant Gear
|
||||
Lieutenant Mantle
|
||||
Light Relief
|
||||
Limiter
|
||||
Luck Material
|
||||
Luminous Field
|
||||
M&A60 Vise
|
||||
Mace of Adaman
|
||||
Madam's Parasol
|
||||
Madam's Umbrella
|
||||
Mag
|
||||
Magic Rock "Moola"
|
||||
Magic Stone "Iritista"
|
||||
Maguwa
|
||||
Mahu
|
||||
Maser Beam
|
||||
Master/Ability
|
||||
Meteor Cudgel
|
||||
Meteor Smash
|
||||
Mind Material
|
||||
Monkey King Bar
|
||||
Monogrinder
|
||||
Morning Glory
|
||||
Morning Prayer
|
||||
Mother Garb
|
||||
Mother Garb+
|
||||
Musashi
|
||||
NUG2000-Bazooka
|
||||
Nei's Claw
|
||||
Officer Uniform
|
||||
Ophelie Seize
|
||||
Oran Card
|
||||
P-arm's Arms
|
||||
PB/Create
|
||||
Panzer Faust
|
||||
Parasitic Gene "Flow"
|
||||
Partisan of Lightning
|
||||
Parts of Baranz
|
||||
Parts of Egg Blaster
|
||||
Perfect/Resist
|
||||
Phoenix Claw
|
||||
Phonon Maser
|
||||
Photon Claw
|
||||
Photon Crystal
|
||||
Photon Launcher
|
||||
Pillar
|
||||
Pinkal Card
|
||||
Plantain Leaf
|
||||
Pole
|
||||
Power Material
|
||||
Prophets of Motav
|
||||
Proto Regene Gear
|
||||
Psycho Wand
|
||||
Purplenum Card
|
||||
Rabbit Wand
|
||||
Rage de Feu
|
||||
Rambling May
|
||||
Rappy's Beak
|
||||
Rappy's Wing
|
||||
Recovery Barrier
|
||||
Red Barrier
|
||||
Red Coat
|
||||
Red Dagger
|
||||
Red Handgun
|
||||
Red Mechgun
|
||||
Red Odoshi Domaru
|
||||
Red Partisan
|
||||
Red Ring
|
||||
Red Saber
|
||||
Red Scorpio
|
||||
Red Slicer
|
||||
Red Sword
|
||||
Redria Card
|
||||
Regene Gear Adv.
|
||||
Regenerate Gear
|
||||
Regenerate Gear B.P.
|
||||
Repeater
|
||||
Resist/Fire
|
||||
Resist/Flame
|
||||
Resist/Freeze
|
||||
Resist/Light
|
||||
Resist/Thunder
|
||||
Revival Cuirass
|
||||
Revival Garment
|
||||
Rianov 303SNR
|
||||
Rianov 303SNR-1
|
||||
Rianov 303SNR-2
|
||||
Rianov 303SNR-3
|
||||
Rianov 303SNR-4
|
||||
Rianov 303SNR-5
|
||||
Rico's Earring
|
||||
Rico's Glasses
|
||||
Rika's Claw
|
||||
Ripper
|
||||
Ruby Bullet
|
||||
Rupika
|
||||
S-Parts ver1.16
|
||||
S-Parts ver2.01
|
||||
S-beat's Arms
|
||||
S-red's Arms
|
||||
Sacred Cloth
|
||||
Sacred Duster
|
||||
Sacred Guard
|
||||
Sange
|
||||
Sawcer
|
||||
Scape Doll
|
||||
Scepter
|
||||
Sealed J-Sword
|
||||
Secret Gear
|
||||
Secure Feet
|
||||
Select Cloak
|
||||
Sense Plate
|
||||
Shouren
|
||||
Silence Claw
|
||||
Sinow Berill's Arms
|
||||
Siren Glass Hammer
|
||||
Skyly Card
|
||||
Slicer of Assassin
|
||||
Slicer of Fanatic
|
||||
Smartlink
|
||||
Smoking Plate
|
||||
Snake Spire
|
||||
Sol Atomizer
|
||||
Solferino
|
||||
Sorcerer's Right Arm
|
||||
Soul Banish
|
||||
Spirit Cuirass
|
||||
Spirit Garment
|
||||
Spread Needle
|
||||
Staff
|
||||
Stag Cutlery
|
||||
Standstill Shield
|
||||
Star Amplifier
|
||||
Star Atomizer
|
||||
Star Cuirass
|
||||
Sting Tip
|
||||
Stink Frame
|
||||
Stink Shield
|
||||
Storm Wand: Indra
|
||||
Striker
|
||||
Striker Plus
|
||||
Suppressed Gun
|
||||
Swordsman Lore
|
||||
Syncesta
|
||||
TP/Restorate
|
||||
TP/Revival
|
||||
Talis
|
||||
Tanegashima
|
||||
Technical Crozier
|
||||
Tempest Cloak
|
||||
The Sigh of a God
|
||||
Thirteen
|
||||
Trigrinder
|
||||
Trimate
|
||||
Tripolic Reflector
|
||||
Tripolic Shield
|
||||
Twin Blaze
|
||||
Twin Brand
|
||||
Twin Chakram
|
||||
Twin Psychogun
|
||||
Tyrell's Parasol
|
||||
V101
|
||||
V501
|
||||
V502
|
||||
V801
|
||||
Valkyrie
|
||||
Varista
|
||||
Victor Axe
|
||||
Viridia Card
|
||||
Visk-235W
|
||||
Vivienne
|
||||
Vjaya
|
||||
Vulcan
|
||||
Wals-MK2
|
||||
Wedding Dress
|
||||
Whitill Card
|
||||
Windmill
|
||||
Yamato
|
||||
Yamigarasu
|
||||
Yasakani Magatama
|
||||
Yasha
|
||||
Yasminkov 2000H
|
||||
Yasminkov 3000R
|
||||
Yasminkov 7000V
|
||||
Yasminkov 9000M
|
||||
Yata Mirror
|
||||
Yellow Barrier
|
||||
Yellowboze Card
|
||||
Yunchang
|
||||
Zanba
|
||||
Zero Divide
|
Can't render this file because it contains an unexpected character in line 261 and column 12.
|
@ -46,12 +46,15 @@ class HuntOptimizerStore {
|
||||
}
|
||||
|
||||
initialize = async () => {
|
||||
try {
|
||||
await this.loadFromLocalStorage();
|
||||
autorun(this.storeInLocalStorage);
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
}
|
||||
|
||||
loadFromLocalStorage = async () => {
|
||||
try {
|
||||
const wantedItemsJson = localStorage.getItem(
|
||||
`HuntOptimizerStore.wantedItems.${applicationStore.currentServer}`
|
||||
);
|
||||
@ -72,9 +75,6 @@ class HuntOptimizerStore {
|
||||
|
||||
this.wantedItems.replace(wantedItems);
|
||||
}
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
}
|
||||
|
||||
storeInLocalStorage = () => {
|
||||
|
@ -3,6 +3,8 @@ import { Item, Server } from "../domain";
|
||||
import { Loadable } from "../Loadable";
|
||||
import { ServerMap } from "./ServerMap";
|
||||
|
||||
type ItemDTO = { name: string }
|
||||
|
||||
class ItemStore {
|
||||
private itemMap = new Map<string, Item>();
|
||||
|
||||
@ -22,10 +24,10 @@ class ItemStore {
|
||||
|
||||
private async loadItems(server: Server): Promise<Item[]> {
|
||||
const response = await fetch(
|
||||
`${process.env.PUBLIC_URL}/items.${Server[server].toLowerCase()}.tsv`
|
||||
`${process.env.PUBLIC_URL}/items.${Server[server].toLowerCase()}.json`
|
||||
);
|
||||
const data = await response.text();
|
||||
return data.split('\n').slice(1).map(name => this.dedupItem(name));
|
||||
const data: Array<ItemDTO> = await response.json();
|
||||
return data.map(({ name }) => this.dedupItem(name));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user