Atherys / AtherysQuests

A questing plugin for the A'therys Horizons server
GNU General Public License v3.0
3 stars 2 forks source link

Repeatable quests #53

Closed raxiam closed 5 years ago

raxiam commented 5 years ago

Problem: Currently quests can only be completed once. In order to maximise playability, quests should be made repeatable. Proposed Solution: Quest makeQuestRepeatable(Quest q, Integer minutes, Integer limit)

Integer minutes is the interval for when a quest can be repeated. Once a player has completed or failed a quest (due to timed quests), the interval starts its counter and locks the player from picking up the quest until it's done counting.

If Integer limit is passed a 0 or null (whichever is easiest) the quest can be repeated an unlimited amount of times. Otherwise, the number passed (if limit>1) is the exact amount of times it can be repeated.

HaedHutner commented 5 years ago

To make this a bit easier to use, maybe use a Period object of some sort, like the that comes with the Java 8s datetime api

LJNIC commented 5 years ago

To make this a bit easier to use, maybe use a Period object of some sort, like the that comes with the Java 8s datetime api

I think the Duration class will work pretty well.