Code improvements.

This commit is contained in:
MobiusDev
2016-04-24 16:30:15 +00:00
parent 8bd51aba1c
commit 2dd14bef9b
860 changed files with 8865 additions and 17041 deletions

View File

@@ -271,12 +271,9 @@ public final class Q00197_SevenSignsTheSacredBookOfSeal extends Quest
{
htmltext = "32593-06.html";
}
else if (qs.isCond(6))
else if (qs.isCond(6) && hasQuestItems(player, MYSTERIOUS_HAND_WRITTEN_TEXT, SCULPTURE_OF_DOUBT))
{
if (hasQuestItems(player, MYSTERIOUS_HAND_WRITTEN_TEXT, SCULPTURE_OF_DOUBT))
{
htmltext = "32593-07.html";
}
htmltext = "32593-07.html";
}
break;
}
@@ -308,14 +305,7 @@ public final class Q00197_SevenSignsTheSacredBookOfSeal extends Quest
{
if (qs.isCond(3))
{
if (isBusy)
{
htmltext = "32595-05.html";
}
else
{
htmltext = "32595-01.html";
}
htmltext = isBusy ? "32595-05.html" : "32595-01.html";
}
else if (qs.isCond(4))
{
@@ -324,12 +314,9 @@ public final class Q00197_SevenSignsTheSacredBookOfSeal extends Quest
htmltext = "32595-06.html";
}
}
else if (qs.getCond() >= 5)
else if ((qs.getCond() >= 5) && hasQuestItems(player, SCULPTURE_OF_DOUBT))
{
if (hasQuestItems(player, SCULPTURE_OF_DOUBT))
{
htmltext = "32595-10.html";
}
htmltext = "32595-10.html";
}
break;
}
@@ -342,12 +329,9 @@ public final class Q00197_SevenSignsTheSacredBookOfSeal extends Quest
htmltext = "32596-01.html";
}
}
else if (qs.getCond() >= 6)
else if ((qs.getCond() >= 6) && hasQuestItems(player, SCULPTURE_OF_DOUBT, MYSTERIOUS_HAND_WRITTEN_TEXT))
{
if (hasQuestItems(player, SCULPTURE_OF_DOUBT, MYSTERIOUS_HAND_WRITTEN_TEXT))
{
htmltext = "32596-05.html";
}
htmltext = "32596-05.html";
}
break;
}