Skip to content

Commit

Permalink
fix: trim enemy drop data better
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTenno committed Sep 24, 2021
1 parent 2bb5943 commit 69d5226
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Expand Up @@ -137,6 +137,8 @@ $RECYCLE.BIN/
# Copied site data, easier to just edit site and not commit excess files
site/data/


# Needs to be in the repo, but only manually updated, so it should be ignored by its own process.
.github/pushback.sh

# WebStorm
.idea/
2 changes: 1 addition & 1 deletion lib/enemyBlueprintTables.js
Expand Up @@ -17,7 +17,7 @@ module.exports = function($) {
}

let itemdropchance = $(tr.children[1]).text()
itemdropchance = itemdropchance.slice("Blueprint Drop Chance: ".length, itemdropchance.length - 1)
itemdropchance = itemdropchance.split(':')[1].trim();

// blueprintDropChance and mods are legacy, should be removed ASAP...
enemy = {_id: hash(text), enemyName: text, enemyItemDropChance: itemdropchance, blueprintDropChance: itemdropchance, items: [], mods: []}
Expand Down

0 comments on commit 69d5226

Please sign in to comment.