mirror of
https://github.com/bdnugget/rs-sdk.git
synced 2026-11-07 09:07:30 +00:00
fix(hiscores): count equipped throwing weapon stacks once
This commit is contained in:
1 parent
415491a1cc
commit
1bc50391c8
1 file changed
+2
-1
@@ -225,7 +225,8 @@ async function updateWealthHiscores(account: HiscoreAccount, player: Player, pro
|
||||
if (item) {
|
||||
const objType = ObjType.get(item.id);
|
||||
if (objType) {
|
||||
const value = objType.cost * item.count;
|
||||
// Equipment scores count one item per slot, including stacked throwing weapons.
|
||||
const value = objType.cost;
|
||||
items.push({ id: item.id, name: objType.name || `obj_${item.id}`, value });
|
||||
totalValue += value;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user