Skip to content
This repository was archived by the owner on Mar 29, 2021. It is now read-only.

Commit 46c97fc

Browse files
committed
fixes #277
1 parent a7aa751 commit 46c97fc

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

src/mods/tier.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,21 @@ idrinth.tier = {
187187
var ln = {
188188
type: 'td'
189189
};
190+
if (
191+
idrinth.tier.list[listKey].hasOwnProperty ( 'loot' ) &&
192+
idrinth.tier.list[listKey].loot.hasOwnProperty ( difficulty ) &&
193+
idrinth.tier.list[listKey].loot[difficulty].hasOwnProperty ( ic ) &&
194+
idrinth.tier.list[listKey].loot[difficulty][ic]
195+
) {
196+
ln.attributes = ln.attributes?ln.attributes:new Array();
197+
var title = "";
198+
for(var key in idrinth.tier.list[listKey].loot[difficulty][ic]) {
199+
if(idrinth.tier.list[listKey].loot[difficulty][ic].hasOwnProperty (key)) {
200+
title += key.toUpperCase()+": "+idrinth.tier.list[listKey].loot[difficulty][ic][key]+"\n";
201+
}
202+
}
203+
ln.attributes.push({name:'title',value:title});
204+
}
190205
if (
191206
idrinth.tier.list[listKey].hasOwnProperty ( difficulty ) &&
192207
idrinth.tier.list[listKey][difficulty].hasOwnProperty ( ic )

0 commit comments

Comments
 (0)