Skip to content

Commit

Permalink
feat: expand mon tracking for mighty mons to lvl55 (#914)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReuschelCGN authored Nov 22, 2024
1 parent e85712f commit 8982c24
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "poracle",
"version": "4.8.2",
"version": "4.8.3",
"description": "Webhook processing and personalised discord|telegram alarms",
"keywords": [
"poracle",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/poracleMessage/commands/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ exports.run = async (client, msg, args, options) => {
mincp: ['min_cp', 0],
macxp: ['max_cp', 9000],
level: ['min_level', 0],
maxlevel: ['max_level', 40],
maxlevel: ['max_level', 55],
atk: ['atk', 0],
def: ['def', 0],
sta: ['sta', 0],
Expand Down
2 changes: 1 addition & 1 deletion src/lib/poracleMessage/commands/track.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ exports.run = async (client, msg, args, options) => {
min_cp: +(parameterValues.cp?.min ?? 0),
max_cp: +(parameterValues.cp?.max ?? parameterValues.maxcp ?? 9000),
min_level: +(parameterValues.level?.min ?? 0),
max_level: +(parameterValues.level?.max ?? parameterValues.maxlevel ?? 40),
max_level: +(parameterValues.level?.max ?? parameterValues.maxlevel ?? 55),
atk: +(parameterValues.atk?.min ?? 0),
max_atk: +(parameterValues.atk?.max ?? parameterValues.maxatk ?? 15),
def: +(parameterValues.def?.min ?? 0),
Expand Down
2 changes: 1 addition & 1 deletion src/routes/apiTrackingMonster.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ module.exports = async (fastify, options) => {
min_cp: +defaultTo(row.min_cp, 0),
max_cp: +defaultTo(row.max_cp, 9000),
min_level: +defaultTo(row.min_level, 0),
max_level: +defaultTo(row.max_level, 40),
max_level: +defaultTo(row.max_level, 55),
atk: +defaultTo(row.atk, 0),
def: +defaultTo(row.def, 0),
sta: +defaultTo(row.sta, 0),
Expand Down

0 comments on commit 8982c24

Please sign in to comment.