diff options
author | Ledmitz <smoothshifter@tuta.io> | 2023-01-04 15:38:10 -0400 |
---|---|---|
committer | Ledmitz <smoothshifter@tuta.io> | 2023-01-04 15:38:10 -0400 |
commit | 830ae2e72a5f0deab0ff6cb7009cad6106f1c9ba (patch) | |
tree | 55ad94b317dcd4877ab664a299e4aa7e41742094 /tmw-info | |
parent | fd7c773a66555baf4183f74ef1871d58675be3a1 (diff) | |
download | tmw-info-830ae2e72a5f0deab0ff6cb7009cad6106f1c9ba.tar.gz tmw-info-830ae2e72a5f0deab0ff6cb7009cad6106f1c9ba.tar.bz2 tmw-info-830ae2e72a5f0deab0ff6cb7009cad6106f1c9ba.tar.xz tmw-info-830ae2e72a5f0deab0ff6cb7009cad6106f1c9ba.zip |
Fixed mob-search to keep up with server DB file changes. Drops now report correctly again.mobsearch_fix
Diffstat (limited to 'tmw-info')
-rwxr-xr-x | tmw-info | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -314,8 +314,8 @@ elif [ "$1" == "mob-search" ]; then done while IFS= read -r LINE; do MOB_ID=$(echo "$LINE" | awk '{print $1}' | sed 's/,//g') - DROP_IDS=($(echo "$LINE" | awk -F ',' '{print $30 $32 $34 $36 $38 $40 $42 $44}' | sed -E 's/ 0,//g' | sed 's/,//g' | sed -E 's/^\s*//g')) - DROP_PERCS=$(echo "$LINE" | awk -F ',' '{print $31 $33 $35 $37 $39 $41 $43 $45}' | sed -E 's/ 0,//g' | sed 's/,//g' | sed -E 's/^\s*//g') + DROP_IDS=($(echo "$LINE" | awk -F ',' '{print $31 $33 $35 $37 $39 $41 $43 $45}' | sed -E 's/ 0,//g' | sed 's/,//g' | sed -E 's/^\s*//g')) + DROP_PERCS=$(echo "$LINE" | awk -F ',' '{print $32 $34 $36 $38 $40 $42 $44 $46}' | sed -E 's/ 0,//g' | sed 's/,//g' | sed -E 's/^\s*//g') if [[ $(ls "$ITEM_DIR"/* 2> '/dev/null') != '' ]]; then for DROP_ID in "${DROP_IDS[@]}"; do grep -hE "^$DROP_ID, " "$ITEM_DIR"/* | awk '{print $2}' >> "$TMW_INFO/mob-drop-names-$MOB_ID.tmp" |