Skip to content

Commit 1c6e40a

Browse files
committed
Add missing goals to bridge duels
1 parent a1478c6 commit 1c6e40a

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

src/structures/MiniGames/Duels.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@ class DuelsGamemode {
113113
* @type {number}
114114
*/
115115
this.goldenApplesEatan = data[`${mode}_golden_apples_eaten`] || 0;
116+
/**
117+
* Goals (only shows up in bridge)
118+
* @type {number}
119+
*/
120+
this.goals = data[`${mode}_goals`] || 0;
116121
}
117122
}
118123

@@ -803,6 +808,18 @@ class DuelsBridge {
803808
this['2v2v2v2'].goldenApplesEatan +
804809
this['3v3v3v3'].goldenApplesEatan +
805810
this.ctf.goldenApplesEatan;
811+
/**
812+
* Goals
813+
* @type {number}
814+
*/
815+
this.goals =
816+
this.solo.goals +
817+
this.doubles.goals +
818+
this.threes.goals +
819+
this.fours.goals +
820+
this['2v2v2v2'].goals +
821+
this['3v3v3v3'].goals +
822+
this.ctf.goals;
806823
}
807824
}
808825

typings/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3814,6 +3814,7 @@ declare module 'hypixel-api-reborn' {
38143814
blocksPlaced: number;
38153815
healthRegenerated: number;
38163816
goldenApplesEatan: number;
3817+
goals: number;
38173818
}
38183819
class DuelsUHC {
38193820
constructor(data: Record<string, unknown>, mode: string, title: string);
@@ -3941,6 +3942,7 @@ declare module 'hypixel-api-reborn' {
39413942
blocksPlaced: number;
39423943
healthRegenerated: number;
39433944
goldenApplesEatan: number;
3945+
goals: number;
39443946
}
39453947
class Duels {
39463948
constructor(data: Record<string, unknown>);

0 commit comments

Comments
 (0)