forked from MagicBane/Server
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
601 B
28 lines
601 B
6 months ago
|
package engine.QuestSystem;
|
||
|
|
||
|
import engine.objects.ItemBase;
|
||
|
import engine.objects.NPC;
|
||
|
import engine.objects.PlayerCharacter;
|
||
|
|
||
|
import java.util.ArrayList;
|
||
|
|
||
|
public class QuestObject {
|
||
|
|
||
|
public String QuestName;
|
||
|
public String description;
|
||
|
public int objectiveCount;
|
||
|
public int objectiveCountRequired;
|
||
|
public ArrayList<String> progressionNames;
|
||
|
public PlayerCharacter owner;
|
||
|
|
||
|
public QuestObject(){
|
||
|
|
||
|
}
|
||
|
public void tryProgress(String option){
|
||
|
if(this.progressionNames.contains(option))
|
||
|
this.objectiveCount++;
|
||
|
else
|
||
|
return;
|
||
|
}
|
||
|
}
|