From dd018718419621ad48ac11cfe97206c43bda6b66 Mon Sep 17 00:00:00 2001 From: Daniel Saukel Date: Sat, 14 Aug 2021 17:53:23 +0200 Subject: [PATCH] Updated Requirements (markdown) --- Requirements.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Requirements.md b/Requirements.md index d1aaf86..e338a92 100644 --- a/Requirements.md +++ b/Requirements.md @@ -72,6 +72,25 @@ requirements: - "15-16" ``` +### Time since start & finish +Cooldown since the dungeon has been played for the last time. timeSinceStart counts since the dungeon has been started (tried), timeSinceFinish allows for infinite tries but prevents entering the dungeon if the player has already succeeded within the timeframe. +``` +requirements: + timeSinceStart: 0.05 # 3 minutes + timeSinceFinish: 24.0 +``` + +### Finished dungeons +The dungeons that must be finished before the dungeon may be played. +``` + # Players must have finished all of the following dungeons at least once: + finishedDungeons: + - Test1 # Test1 + - Test2/Test3 # AND EITHER Test2 and Test3 + - 7:Test4 # and Test4 within the last 7 hours + - 0.05:Test5 # and Test5 within the last 3 minutes +``` + ## API Creating a requirement is as easy as implementing the [Requirement](https://erethon.de/javadocs/dungeonsxl/de/erethon/dungeonsxl/api/Requirement.html) interface in a class with a [DungeonsAPI](https://erethon.de/javadocs/dungeonsxl/de/erethon/dungeonsxl/api/DungeonsAPI.html) parameter. See [here](https://github.com/DRE2N/DungeonsXL/blob/master/core/src/main/java/de/erethon/dungeonsxl/requirement/FeeMoneyRequirement.java) for reference.