Skip to content

Commit

Permalink
fix: Add check for player in temple for cutscene in tHoD
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoinkwiz committed Oct 2, 2024
1 parent aeebf0b commit bc90819
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,15 @@
import com.questhelper.helpers.quests.secretsofthenorth.ArrowChestPuzzleStep;
import com.questhelper.panel.PanelDetails;
import com.questhelper.questhelpers.BasicQuestHelper;
import com.questhelper.questhelpers.QuestHelper;
import com.questhelper.questinfo.QuestHelperQuest;
import com.questhelper.requirements.ManualRequirement;
import com.questhelper.requirements.Requirement;
import com.questhelper.requirements.conditional.NpcCondition;
import com.questhelper.requirements.item.ItemRequirement;
import com.questhelper.requirements.item.ItemRequirements;
import com.questhelper.requirements.npc.DialogRequirement;
import com.questhelper.requirements.npc.NpcInteractingRequirement;
import com.questhelper.requirements.npc.NpcInteractingWithNpcRequirement;
import com.questhelper.requirements.player.FreeInventorySlotRequirement;
import com.questhelper.requirements.player.InInstanceRequirement;
import com.questhelper.requirements.player.SkillRequirement;
import com.questhelper.requirements.quest.QuestRequirement;
import com.questhelper.requirements.util.Operation;
Expand Down Expand Up @@ -100,9 +98,9 @@ public class TheHeartOfDarkness extends BasicQuestHelper
inSecondTrialRoom, southEastGateUnlocked, southWestChestOpened, hasReadPoem, knowAboutDirections, inArrowPuzzle, combatStarted,
startedInvestigation, freeInvSlots4;

Requirement tenochGuilty, hasTalkedToTenoch, siliaGuilty, hasTalkedToSilia, hasTalkedToAdrius, eleuiaGuilty, hasTalkedToEleuia, inFirstIceRoom,
inSecondIceAreaFirstRoom, inSecondIceAreaSecondRoom, inThirdIceArea, pulledFirstLever, pulledSecondLever, pulledThirdLever, unlockedShortcut,
inBossRoom;
Requirement tenochGuilty, hasTalkedToTenoch, siliaGuilty, hasTalkedToSilia, hasTalkedToAdrius, eleuiaGuilty, hasTalkedToEleuia, inTempleCutscene,
inFirstIceRoom, inSecondIceAreaFirstRoom, inSecondIceAreaSecondRoom, inThirdIceArea, pulledFirstLever, pulledSecondLever, pulledThirdLever,
unlockedShortcut, inBossRoom;

ObjectStep activateSecondStatue, activateFirstStatue, activateThirdStatue, activateFourthStatue;

Expand Down Expand Up @@ -270,7 +268,7 @@ public Map<Integer, QuestStep> loadSteps()
steps.put(48, searchChestForEmissaryRobes);

ConditionalStep goToTemple = new ConditionalStep(this, talkToItzlaToFollow);
goToTemple.addStep(and(princeIsFollowing, emissaryRobes), enterTemple);
goToTemple.addStep(or(inTempleCutscene, and(princeIsFollowing, emissaryRobes)), enterTemple);
goToTemple.addStep(princeIsFollowing, searchChestForEmissaryRobes);
steps.put(50, goToTemple);

Expand Down Expand Up @@ -468,6 +466,9 @@ private void setupConditions()

freeInvSlots4 = new FreeInventorySlotRequirement(4);

ZoneRequirement inTemple = new ZoneRequirement(new Zone(new WorldPoint(1677, 3244, 0), new WorldPoint(1691, 3251, 0)));
inTempleCutscene = and(inTemple, new InInstanceRequirement());

firstIceRoom = new Zone(new WorldPoint(1660, 9595, 2), new WorldPoint(1724, 9659, 2));
inFirstIceRoom = new ZoneRequirement(firstIceRoom);

Expand Down

0 comments on commit bc90819

Please sign in to comment.