-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Begin work on Items for Tinny quest (WIP)
- Loading branch information
1 parent
51ea3d1
commit c1912b4
Showing
2 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
18
tests/games/stendhal/server/maps/quests/ItemsForTinnyTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { | ||
} |