From 0a18fc110ee810d457934313b8e58a9ec44851b1 Mon Sep 17 00:00:00 2001 From: Hendrik Brummermann Date: Wed, 18 Oct 2023 08:35:00 +0200 Subject: [PATCH] respondToUnrepeatableRequest may include remaining time --- .../stendhal/server/entity/npc/quest/QuestOfferBuilder.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/games/stendhal/server/entity/npc/quest/QuestOfferBuilder.java b/src/games/stendhal/server/entity/npc/quest/QuestOfferBuilder.java index 08d305b5a9b..28ee0858b95 100644 --- a/src/games/stendhal/server/entity/npc/quest/QuestOfferBuilder.java +++ b/src/games/stendhal/server/entity/npc/quest/QuestOfferBuilder.java @@ -23,6 +23,7 @@ import games.stendhal.server.entity.npc.ConversationStates; import games.stendhal.server.entity.npc.SpeakerNPC; import games.stendhal.server.entity.npc.action.MultipleActions; +import games.stendhal.server.entity.npc.action.SayTimeRemainingAction; import games.stendhal.server.entity.npc.action.SetQuestAction; import games.stendhal.server.entity.npc.action.SetQuestAndModifyKarmaAction; import games.stendhal.server.entity.npc.condition.AndCondition; @@ -193,8 +194,8 @@ public void build(SpeakerNPC npc, String questSlot, QuestTaskBuilder task, ChatC new QuestCompletedCondition(questSlot), new NotCondition(new TimePassedCondition(questSlot, 1, repeatableAfterMinutes))), ConversationStates.ATTENDING, - respondToUnrepeatableRequest, - null); + null, + new SayTimeRemainingAction(questSlot, 1, repeatableAfterMinutes, respondToUnrepeatableRequest, true)); } else {