Skip to content

Commit

Permalink
Added extensive pet support (#4)
Browse files Browse the repository at this point in the history
Added extensive pet support (#4)
  • Loading branch information
builder-247 authored Jan 16, 2021
1 parent 8f44804 commit 19f4e12
Show file tree
Hide file tree
Showing 9 changed files with 2,884 additions and 31 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"extends": "airbnb/base"
"extends": "airbnb/base",
"parser": "babel-eslint"
}
142 changes: 142 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"prismarine-nbt": "^1.3.0"
},
"devDependencies": {
"babel-eslint": "^10.1.0",
"eslint": "^7.4.0",
"eslint-config-airbnb": "^18.2.0",
"eslint-plugin-import": "^2.21.2",
Expand Down
30 changes: 28 additions & 2 deletions src/constants/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,31 @@ const misc = require('./misc');

const MAX_SOULS = 209;
const rarityOrder = ['special', 'mythic', 'legendary', 'epic', 'rare', 'uncommon', 'common'];
const petTiers = ['common', 'uncommon', 'rare', 'epic', 'legendary'];
const rarityColors = {
common: 'f',
uncommon: 'a',
rare: 9,
epic: 5,
legendary: 6,
mythic: 'd',
special: 'c',
};
const symbols = {
health: '❤',
defense: '❈',
strength: '❁',
crit_chance: '☣',
crit_damage: '☠',
intelligence: '✎',
speed: '✦',
sea_creature_chance: 'α',
magic_find: '✯',
pet_luck: '♣',
attack_speed: '⚔️',
true_defense: '❂',
ferocity: '⫽',
ability_damage: '✹',
};
const statTemplate = {
damage: 0,
health: 0,
Expand All @@ -21,14 +45,16 @@ const statTemplate = {
sea_creature_chance: 0,
magic_find: 0,
pet_luck: 0,
true_defense: 0,
ferocity: 0,
ability_damage: 0,
};

module.exports = {
MAX_SOULS,
rarityOrder,
petTiers,
rarityColors,
symbols,
statTemplate,
...leveling,
...bonuses,
Expand Down
Loading

0 comments on commit 19f4e12

Please sign in to comment.