Skip to content
This repository has been archived by the owner on Jan 21, 2021. It is now read-only.

Commit

Permalink
add stat shards support for kb
Browse files Browse the repository at this point in the history
  • Loading branch information
OrangeNote committed Dec 14, 2018
1 parent f3b3b19 commit 084f944
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions plugins/koreanbuilds.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ function extractPage(html, champObj, champion, role, rec, callback, pageType) {

var pages = [];
var runecount = -1;
var slots = $("div[class^=perk-itm]");
var slots = $("div[class^=perk-itm], div[class^=statperk]");


$("img[src^='//statics.koreanbuilds.net/perks/']", slots).each(function(index) {
if(index % 8 == 0) {
console.log(index)
if(index % 11 == 0) {
pages.push({
"name": champObj.name + " " + role + " BC "+ $('#circle-big').text(),
"primaryStyleId": -1,
Expand All @@ -45,7 +46,7 @@ function extractPage(html, champObj, champion, role, rec, callback, pageType) {
var secondary = $('#reforged-secondary .perk-img-c').attr("src");
secondary = secondary.replace("//statics.koreanbuilds.net/perk-types/", "");
secondary = secondary.replace(".png", "");
if(index % 6 == 0) {
if(index % 9 == 0) {
pages[pages.length - 1].primaryStyleId = stylesMap[primary];
pages[pages.length - 1].subStyleId = stylesMap[secondary];
}
Expand Down

0 comments on commit 084f944

Please sign in to comment.