Commits

Sylvain Rouquette committed 78d9700

fixed runes order and icons

Comments (0)

Files changed (1)

 			</div>\
 		</a>\
 		<ul class="runes">\
-			<li><a class="rune_0 d3-icon d3-icon-rune d3-icon-rune-medium" href="{href_rune_0}"><span class="rune-a"></span></a></li>\
-			<li><a class="rune_1 d3-icon d3-icon-rune d3-icon-rune-medium" href="{href_rune_1}"><span class="rune-b"></span></a></li>\
-			<li><a class="rune_2 d3-icon d3-icon-rune d3-icon-rune-medium" href="{href_rune_2}"><span class="rune-c"></span></a></li>\
-			<li><a class="rune_3 d3-icon d3-icon-rune d3-icon-rune-medium" href="{href_rune_3}"><span class="rune-d"></span></a></li>\
-			<li><a class="rune_4 d3-icon d3-icon-rune d3-icon-rune-medium" href="{href_rune_4}"><span class="rune-e"></span></a></li>\
+			<li><a class="rune_4 d3-icon d3-icon-rune d3-icon-rune-medium" href="{href_rune_4}"><span class="rune-{type_rune_4}"></span></a></li>\
+			<li><a class="rune_3 d3-icon d3-icon-rune d3-icon-rune-medium" href="{href_rune_3}"><span class="rune-{type_rune_3}"></span></a></li>\
+			<li><a class="rune_2 d3-icon d3-icon-rune d3-icon-rune-medium" href="{href_rune_2}"><span class="rune-{type_rune_2}"></span></a></li>\
+			<li><a class="rune_1 d3-icon d3-icon-rune d3-icon-rune-medium" href="{href_rune_1}"><span class="rune-{type_rune_1}"></span></a></li>\
+			<li><a class="rune_0 d3-icon d3-icon-rune d3-icon-rune-medium" href="{href_rune_0}"><span class="rune-{type_rune_0}"></span></a></li>\
 		</ul>\
 	</li>';
 
 							 .replace('{skill}', obj.name)
 				for (var rune in obj.runes) {
 					li = li.replace('{href_rune_'+rune+'}', RUNE_URL + obj.runes[rune].tooltipParams)
+						   .replace('{type_rune_'+rune+'}', obj.runes[rune].type)
 				}
 			}
 			else {