From 197600e634124871dd89a4088cbf7525922d8932 Mon Sep 17 00:00:00 2001 From: Shashank Atreya Date: Fri, 23 Aug 2024 04:30:21 +0530 Subject: [PATCH] implement items according to new structure --- resources/scripts/ext.dota2WebApi.toolbar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/scripts/ext.dota2WebApi.toolbar.js b/resources/scripts/ext.dota2WebApi.toolbar.js index c2c9c53..bfae8b3 100644 --- a/resources/scripts/ext.dota2WebApi.toolbar.js +++ b/resources/scripts/ext.dota2WebApi.toolbar.js @@ -530,7 +530,7 @@ $( () => { factionRoster += '|den=' + player.denies; factionRoster += '|gpm=' + player.goldPerMinute; factionRoster += '|xpm=' + player.xpPerMinute; - factionRoster += '|items=' + player.items.join( ',' ); + factionRoster += '|items=' + player.items.map( ( item ) => item.name ).join( ',' ); // @TODO LONE DRUID BEAR ITEMS factionRoster += '}}\n'; }