Skip to content

Commit

Permalink
Update Script: added runes, sigil and relics
Browse files Browse the repository at this point in the history
Automating the format, so I don't have to manually update the data.

Also fixed was a missing Relic of the Flock
  • Loading branch information
berdandy committed Aug 24, 2024
1 parent d245000 commit 4a642d3
Show file tree
Hide file tree
Showing 4 changed files with 448 additions and 439 deletions.
11 changes: 10 additions & 1 deletion generate_offline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,16 @@ CACHES="item pet profession skill spec trait"

for cache in $CACHES; do
echo -n "."
gw2search --csv --$cache > static/${cache}s.csv
gw2search --csv --$cache | grep -v ',""$' > static/${cache}s.csv
done

# -------------------------------------------------------------
# item subsets

gw2search --csv --item "Superior Rune of " | grep -v Recipe: | sed 's/Superior Rune of \(the \)\?//' > static/runes.csv ; echo -n "."
gw2search --csv --item "Superior Sigil of " | grep -v Recipe: | sed 's/Superior Sigil of \(the \)\?//' > static/sigils.csv ; echo -n "."

### relics have some dirty data from pre-SotO items also being called relics (hence starting at the 15th result)
gw2search --csv --item "Relic of " | grep -v ',""$' | grep -v Recipe: | tail -n +15 | sed 's/Relic of \(the \)\?//' > static/relics.csv ; echo -n "."

echo " done"
154 changes: 77 additions & 77 deletions static/relics.csv
Original file line number Diff line number Diff line change
@@ -1,77 +1,77 @@
id,name
99997,Isgarren
100031,Monk
100048,Ice
100074,Cerus
100090,Dragonhunter
100115,Mabon
100144,Warrior
100148,Speed
100153,Fractal
100158,Mirage
100165,Necromancer
100177,Peitha
100194,Weaver
100219,Herald
100230,Krait
100248,Citadel
100262,Fireworks
100299,Warrior
100345,Daredevil
100368,Scourge
100385,Centaur
100388,Astral Ward
100390,Antitoxin
100400,Sunless
100411,Trooper
100429,Mercy
100432,Akeem
100442,Dwayna
100448,Citadel
100450,Chronomancer
100453,Firebrand
100455,Durability
100461,Lyhr
100527,Brawler
100542,Cavalier
100557,Wizard's Tower
100561,Adventurer
100562,Durability
100579,Nightmare
100580,Necromancer
100614,Evasion
100625,Leadership
100633,Flock
100659,Water
100693,Afflicted
100694,Unseen Invasion
100739,Reaper
100752,Pack
100775,Vass
100794,Resistance
100849,Aristocracy
100886,Evasion
100893,Zephyrite
100916,Thief
100924,Deadeye
100934,Defender
100942,Dagda
100947,Fireworks
101116,Febe
101139,Midnight King
101166,Demon Queen
101191,Nourys
101198,Nayos
101268,Karakosa
101737,Founding
101767,Twin Generals
101801,Mosyn
101863,Sorcerer
101943,Wayfinder
101955,Zakiros
102199,Blightbringer
102245,Atrocity
102595,Stormsinger
103015,Rivers
103424,Sorrow
103574,Claw
99965,"Flock"
99997,"Isgarren"
100031,"Monk"
100048,"Ice"
100074,"Cerus"
100090,"Dragonhunter"
100115,"Mabon"
100144,"Warrior"
100148,"Speed"
100153,"Fractal"
100158,"Mirage"
100165,"Necromancer"
100177,"Peitha"
100194,"Weaver"
100219,"Herald"
100230,"Krait"
100248,"Citadel"
100262,"Fireworks"
100299,"Warrior"
100345,"Daredevil"
100368,"Scourge"
100385,"Centaur"
100388,"Astral Ward"
100390,"Antitoxin"
100400,"Sunless"
100411,"Trooper"
100429,"Mercy"
100432,"Akeem"
100442,"Dwayna"
100448,"Citadel"
100450,"Chronomancer"
100453,"Firebrand"
100455,"Durability"
100461,"Lyhr"
100527,"Brawler"
100542,"Cavalier"
100557,"Wizard's Tower"
100561,"Adventurer"
100562,"Durability"
100579,"Nightmare"
100580,"Necromancer"
100614,"Evasion"
100625,"Leadership"
100633,"Flock"
100659,"Water"
100693,"Afflicted"
100694,"Unseen Invasion"
100739,"Reaper"
100752,"Pack"
100775,"Vass"
100794,"Resistance"
100849,"Aristocracy"
100886,"Evasion"
100893,"Zephyrite"
100916,"Thief"
100924,"Deadeye"
100934,"Defender"
100942,"Dagda"
100947,"Fireworks"
101116,"Febe"
101139,"Midnight King"
101166,"Demon Queen"
101191,"Nourys"
101198,"Nayos"
101268,"Karakosa"
101737,"Founding"
101767,"Twin Generals"
101801,"Mosyn"
101863,"Sorcerer"
101943,"Wayfinder"
101955,"Zakiros"
102199,"Blightbringer"
102245,"Atrocity"
102595,"Stormsinger"
103015,"Rivers"
103424,"Sorrow"
103574,"Claw"
Loading

0 comments on commit 4a642d3

Please sign in to comment.