Skip to content

Commit

Permalink
simulate ItemDeliveryQuest
Browse files Browse the repository at this point in the history
  • Loading branch information
nhnb committed Sep 17, 2023
1 parent 50a41d1 commit 2daf718
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,32 @@ public void build(SpeakerNPC npc, String questSlot, QuestTaskBuilder task, ChatC
}

((DeliverItemTask) task).prepareBaker();
}

@Override
void simulateFirst(String npc, QuestSimulator simulator) {
simulator.info("Player is in a non-human form.");
simulator.info("");
simulator.playerSays("hi");
simulator.playerSays("quest");
simulator.npcSays(npc, respondIfUnableToWearUniform);
simulator.playerSays("bye");
simulator.info("");
simulator.info("Player becomes a human.");
simulator.info("");

super.simulateFirst(npc, simulator);

simulator.info("Time passes.");
simulator.info("");

simulator.playerSays("hi");
simulator.playerSays("quest");
simulator.npcSays(npc, respondIfLastQuestFailed);
simulator.playerSays("yes");
simulator.npcSays(npc, respondToAccept);
simulator.playerSays("bye");
simulator.info("");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ void prepareBaker() {

@Override
void simulate(QuestSimulator simulator) {
// TODO Auto-generated method stub

simulator.info("Player delivered [flavor] to [customerName] in time.");
simulator.info("");
}

@Override
Expand Down

0 comments on commit 2daf718

Please sign in to comment.