Skip to content

Commit 305acb5

Browse files
authored
Add Shellbane Gryphon and Sailing (#301)
1 parent 7b4bc4c commit 305acb5

File tree

6 files changed

+17
-8
lines changed

6 files changed

+17
-8
lines changed

package-lock.json

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"@sapphire/discord.js-utilities": "^7.1.6",
4747
"@sentry/node": "^7.28.0",
4848
"@sentry/tracing": "^7.28.0",
49-
"@wise-old-man/utils": "^4.0.4",
49+
"@wise-old-man/utils": "^4.0.6",
5050
"axios": "^1.9.0",
5151
"canvas": "^2.6.1",
5252
"cors": "^2.8.5",

public/x2/sailing.png

2.31 KB
Loading

public/x2/shellbane_gryphon.png

3.1 KB
Loading

src/commands/instances/player/PlayerStatsCommand.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
} from '../../../utils';
1919

2020
const RENDER_WIDTH = 215;
21-
const RENDER_HEIGHT = 260;
21+
const RENDER_HEIGHT = 294;
2222
const RENDER_PADDING = 15;
2323

2424
// Used to render stats in correct order
@@ -46,6 +46,7 @@ const INGAME_SKILL_ORDER = [
4646
Metric.FIREMAKING,
4747
Metric.WOODCUTTING,
4848
Metric.FARMING,
49+
Metric.SAILING,
4950
Metric.OVERALL
5051
] as string[];
5152

@@ -141,8 +142,13 @@ class PlayerStatsCommand extends Command {
141142

142143
const isRanked = skills[skill].experience > -1;
143144

144-
const x = Math.floor(index / 8);
145-
const y = index % 8;
145+
let x = Math.floor(index / 8);
146+
let y = index % 8;
147+
148+
if (skill === 'overall') {
149+
x = 1;
150+
y = 8;
151+
}
146152

147153
const originX = RENDER_PADDING - 7 + x * 67;
148154
const originY = RENDER_PADDING - 5 + y * 31;

src/utils/discord.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ const MetricEmoji = {
4343
[Metric.RUNECRAFTING]: '<:runecrafting:706462611327287347>',
4444
[Metric.HUNTER]: '<:hunter:706462611218366534>',
4545
[Metric.CONSTRUCTION]: '<:construction:706462610853330986>',
46+
[Metric.SAILING]: '<:sailing:1437131470698446990>',
4647
// Boss emojis
4748
[Metric.ABYSSAL_SIRE]: '<:abyssal_sire:729839920969023519>',
4849
[Metric.ALCHEMICAL_HYDRA]: '<:alchemical_hydra:729839921207967765>',
@@ -86,6 +87,7 @@ const MetricEmoji = {
8687
[Metric.SARACHNIS]: '<:sarachnis:729840085377220628>',
8788
[Metric.SCORPIA]: '<:scorpia:729840084962115666>',
8889
[Metric.SCURRIUS]: '<:scurrius:1199712038193217606>',
90+
[Metric.SHELLBANE_GRYPHON]: '<:shellbane_gryphon:1437131472254406738>',
8991
[Metric.SKOTIZO]: '<:skotizo:729840085398454273>',
9092
[Metric.SOL_HEREDIT]: '<:sol_heredit:1220023750339334154>',
9193
[Metric.SPINDEL]: '<:venenatis:729840086795157595>',

0 commit comments

Comments
 (0)