Rolled back change on func check for dsc2line

This commit is contained in:
Collin Smith
2020-07-03 20:04:37 -07:00
parent 6e2ded3550
commit 1977b0e93a

View File

@ -306,7 +306,7 @@ public class SpellsPanel extends WidgetGroup implements Disposable, CharData.Ski
add(new Label(Riiablo.string.lookup("skilldesc3") + skill.reqlevel, font)).center().space(SPACING).row();
}
for (int i = 0; i < desc.dsc2line.length; i++) {
if (desc.dsc2line[i] <= 1) break;
if (desc.dsc2line[i] <= 0) break;
if (i == 0) add().height(font.getLineHeight()).center().space(SPACING).row();
String str = calc(desc, i, desc.descline, desc.dsc2texta, desc.dsc2textb, desc.dsc2calca, desc.dsc2calcb, skill, sLvl);
if (str != null) add(new Label(str, Riiablo.fonts.font16)).center().space(SPACING).row();