Do not use switch for less than three cases.

This commit is contained in:
MobiusDev
2018-04-03 11:58:00 +00:00
parent c2ce624e58
commit cc58e1b9cf

View File

@@ -228,13 +228,9 @@ public class Q11019_TribalBenefit extends Quest
{
if (npc.getId() == NEWBIE_GUIDE)
{
switch (qs.getCond())
if (qs.isCond(1))
{
case 1:
{
htmltext = "30602-02a.html";
break;
}
htmltext = "30602-02a.html";
}
break;
}