Difference between revisions of "Widget:RuneDisp"

From Official Runecraft Wiki
Line 49: Line 49:
 
const option = document.createElement('option');
 
const option = document.createElement('option');
 
option.value = rne;
 
option.value = rne;
if (runefiles.indexOf(rne)+1 == activationlayer) {
+
if (reversedRunes.indexOf(rne)+1 == activationlayer) {
 
option.textContent = 'Activation Layer';
 
option.textContent = 'Activation Layer';
 
} else {
 
} else {
option.textContent = 'Layer '+ (runefiles.indexOf(rne)+1);
+
option.textContent = 'Layer '+ (reversedRunes.indexOf(rne)+1);
 
}
 
}
 
select.appendChild(option);
 
select.appendChild(option);

Revision as of 18:19, 14 January 2022