-
Notifications
You must be signed in to change notification settings - Fork 717
/
Copy pathspelldatadump_ptr.sh
executable file
·40 lines (32 loc) · 1.11 KB
/
spelldatadump_ptr.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
# convert unix line endings to windows since that's been the standard
convert_line_ending()
{
sed 's/$'"/`echo \\\r`/" $1.unix > $1
rm $1.unix
}
CLASSES=(warrior hunter monk paladin rogue shaman mage warlock druid deathknight priest demonhunter evoker)
# get directory of this script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
PTR="ptr=1"
cd $DIR/..
for CLASS in "${CLASSES[@]}"
do
echo "Processing $CLASS"
FILE="SpellDataDump/${CLASS}_ptr.txt"
echo $FILE
./engine/simc display_build="0" $PTR spell_query="spell.class=$CLASS" > $FILE.unix
convert_line_ending $FILE
done
FILE=SpellDataDump/allspells_ptr.txt
./engine/simc display_build="0" $PTR spell_query="spell" > $FILE.unix
convert_line_ending $FILE
FILE=SpellDataDump/nonclass_ptr.txt
./engine/simc display_build="0" $PTR spell_query="spell.class=none" > $FILE.unix
convert_line_ending $FILE
FILE=SpellDataDump/build_info_ptr.txt
./engine/simc display_build="2" $PTR > $FILE.unix
convert_line_ending $FILE
FILE=SpellDataDump/bonus_ids_ptr.txt
./engine/simc display_build="0" $PTR show_bonus_ids="1" > $FILE.unix
convert_line_ending $FILE