Skip to content

Commit

Permalink
Set quests with hard scoring
Browse files Browse the repository at this point in the history
  • Loading branch information
AntumDeluge committed May 16, 2024
1 parent fd5e822 commit 3593c15
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/games/stendhal/server/maps/quests/CloakCollector2.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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) {
Expand Down
2 changes: 2 additions & 0 deletions src/games/stendhal/server/maps/quests/MithrilCloak.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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() {
Expand Down
3 changes: 3 additions & 0 deletions src/games/stendhal/server/maps/quests/StuffForBaldemar.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down
2 changes: 2 additions & 0 deletions src/games/stendhal/server/maps/quests/UltimateCollector.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 3593c15

Please sign in to comment.