|
@@ -2368,22 +2368,14 @@ public class Quest extends ManagedScript
|
|
|
* @return
|
|
|
*/
|
|
|
public String getHtm(String prefix, String fileName)
|
|
|
- {
|
|
|
+ {
|
|
|
String content = HtmCache.getInstance().getHtm(prefix, fileName.startsWith("data/") ? fileName : "data/scripts/" + getDescr().toLowerCase() + "/" + getName() + "/" + fileName);
|
|
|
if (content == null)
|
|
|
{
|
|
|
content = HtmCache.getInstance().getHtm(prefix, "data/scripts/quests/Q" + getName() + "/" + fileName);
|
|
|
if (content == null)
|
|
|
{
|
|
|
- // UnAfraid: TODO: Temp fix must be removed once all quests are updated.
|
|
|
- if (getQuestIntId() > 0)
|
|
|
- {
|
|
|
- content = HtmCache.getInstance().getHtm(prefix, "data/scripts/quests/Q" + String.format("%05d", getQuestIntId()) + "_" + getName().split("_")[1] + "/" + fileName);
|
|
|
- }
|
|
|
- if (content == null)
|
|
|
- {
|
|
|
- content = HtmCache.getInstance().getHtmForce(prefix, "data/scripts/quests/" + getName() + "/" + fileName);
|
|
|
- }
|
|
|
+ content = HtmCache.getInstance().getHtmForce(prefix, "data/scripts/quests/" + getName() + "/" + fileName);
|
|
|
}
|
|
|
}
|
|
|
return content;
|