Skip to content

Commit

Permalink
Begin work on Items for Tinny quest (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
AntumDeluge committed Jul 15, 2024
1 parent 51ea3d1 commit c1912b4
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
47 changes: 47 additions & 0 deletions src/games/stendhal/server/maps/quests/ItemsForTinny.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/***************************************************************************
* Copyright © 2024 - Faiumoni e. V. *
***************************************************************************
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
package games.stendhal.server.maps.quests;

import games.stendhal.server.entity.npc.quest.BringItemQuestBuilder;
import games.stendhal.server.entity.npc.quest.QuestManuscript;
import games.stendhal.server.maps.Region;


public class ItemsForTinny implements QuestManuscript {

@Override
public BringItemQuestBuilder story() {
final BringItemQuestBuilder quest = new BringItemQuestBuilder();

quest.info()
.name("Items for Tinny")
.internalName("items_for_tinny")
.description("Tinny the leather crafter needs to restock his shelves.")
.region(Region.DENIRAN_CITY)
.questGiverNpc("Tinny");

quest.history();

quest.offer()
.respondToRequest("Well, as a matter of fact I do have a task for you. I am in need of some"
+ " supplies. Would you be interested in helping me?")
.respondToReject("Ah well, maybe I can find another brave soul to help me.")
.respondToAccept("Good! There is a few things that I need to restock my shelves. I would"
+ " reward you nicely, I do love working with leather.");

quest.task();

quest.complete();

return quest;
}
}
18 changes: 18 additions & 0 deletions tests/games/stendhal/server/maps/quests/ItemsForTinnyTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/***************************************************************************
* Copyright © 2024 - Faiumoni e. V. *
***************************************************************************
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
package games.stendhal.server.maps.quests;

import utilities.QuestHelper;


public class ItemsForTinnyTest extends QuestHelper {
}

0 comments on commit c1912b4

Please sign in to comment.