From 3593c1536c862c541025938c4b56ad519b1283d9 Mon Sep 17 00:00:00 2001 From: Jordan Irwin Date: Wed, 17 Apr 2024 02:26:12 -0700 Subject: [PATCH] Set quests with hard scoring --- .../stendhal/server/maps/quests/CloakCollector2.java | 10 +++++++--- .../stendhal/server/maps/quests/MithrilCloak.java | 2 ++ .../stendhal/server/maps/quests/StuffForBaldemar.java | 3 +++ .../stendhal/server/maps/quests/UltimateCollector.java | 2 ++ 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/games/stendhal/server/maps/quests/CloakCollector2.java b/src/games/stendhal/server/maps/quests/CloakCollector2.java index 6cdc2d519e3..1af55f16822 100644 --- a/src/games/stendhal/server/maps/quests/CloakCollector2.java +++ b/src/games/stendhal/server/maps/quests/CloakCollector2.java @@ -22,6 +22,7 @@ import games.stendhal.common.parser.Expression; import games.stendhal.common.parser.Sentence; import games.stendhal.server.core.engine.SingletonRepository; +import games.stendhal.server.core.rp.HOFScore; import games.stendhal.server.entity.Entity; import games.stendhal.server.entity.item.Item; import games.stendhal.server.entity.npc.ChatAction; @@ -76,6 +77,7 @@ public class CloakCollector2 extends AbstractQuest { public String getSlotName() { return QUEST_SLOT; } + /** * Returns a list of the names of all cloaks that the given player still has * to bring to fulfill the quest. @@ -371,13 +373,15 @@ public boolean fire(final Player player, final Sentence sentence, final Entity e @Override public void addToWorld() { - step_1(); - step_2(); - step_3(); fillQuestInfo( "Cloaks Collector part 2", "Josephine wants even more cloaks!", false); + setBaseHOFScore(HOFScore.HARD); + + step_1(); + step_2(); + step_3(); } private static void rewardPlayer(final Player player) { diff --git a/src/games/stendhal/server/maps/quests/MithrilCloak.java b/src/games/stendhal/server/maps/quests/MithrilCloak.java index 805d36a36e7..a72c61cdcd4 100644 --- a/src/games/stendhal/server/maps/quests/MithrilCloak.java +++ b/src/games/stendhal/server/maps/quests/MithrilCloak.java @@ -20,6 +20,7 @@ import games.stendhal.common.grammar.Grammar; import games.stendhal.server.core.engine.SingletonRepository; import games.stendhal.server.core.events.LoginListener; +import games.stendhal.server.core.rp.HOFScore; import games.stendhal.server.entity.item.scroll.TwilightMossScroll; import games.stendhal.server.entity.player.Player; import games.stendhal.server.maps.Region; @@ -95,6 +96,7 @@ public void addToWorld() { "Mithril Cloak", "A shiny and high defense cloak is available for those willing to complete a long list of tasks for the seamstress Ida.", false); + setBaseHOFScore(HOFScore.HARD); // login notifier to teleport away players logging into the twilight zone. SingletonRepository.getLoginNotifier().addListener(new LoginListener() { diff --git a/src/games/stendhal/server/maps/quests/StuffForBaldemar.java b/src/games/stendhal/server/maps/quests/StuffForBaldemar.java index 5d9a160712f..4ee79dcc45c 100644 --- a/src/games/stendhal/server/maps/quests/StuffForBaldemar.java +++ b/src/games/stendhal/server/maps/quests/StuffForBaldemar.java @@ -18,6 +18,7 @@ import games.stendhal.common.parser.Sentence; import games.stendhal.server.core.engine.SingletonRepository; +import games.stendhal.server.core.rp.HOFScore; import games.stendhal.server.entity.item.Item; import games.stendhal.server.entity.npc.ChatAction; import games.stendhal.server.entity.npc.ConversationPhrases; @@ -250,6 +251,8 @@ public void addToWorld() { "Stuff for Baldemar", "Baldemar, a friendly mithrilbourgh elite wizard, will forge a special shield.", false); + setBaseHOFScore(HOFScore.HARD); + step_1(); step_2(); step_3(); diff --git a/src/games/stendhal/server/maps/quests/UltimateCollector.java b/src/games/stendhal/server/maps/quests/UltimateCollector.java index 63124a7d7fb..efa5fc49c2d 100644 --- a/src/games/stendhal/server/maps/quests/UltimateCollector.java +++ b/src/games/stendhal/server/maps/quests/UltimateCollector.java @@ -23,6 +23,7 @@ import games.stendhal.common.grammar.Grammar; import games.stendhal.common.parser.Sentence; import games.stendhal.server.core.engine.SingletonRepository; +import games.stendhal.server.core.rp.HOFScore; import games.stendhal.server.core.rule.EntityManager; import games.stendhal.server.entity.item.Item; import games.stendhal.server.entity.npc.ChatAction; @@ -534,6 +535,7 @@ public void addToWorld() { "Ultimate Weapon Collector", "Balduin, the hermit who is living on Ados rock, has a last and ultimate challenge for collectors.", true); + setBaseHOFScore(HOFScore.HARD); checkCollectingQuests(); requestItem();