Swap ammo mould over to ContentAPI

This commit is contained in:
ceikry
2021-12-31 09:51:49 -06:00
parent 46d0406581
commit b7f0c64f95
2 changed files with 29 additions and 21 deletions
+7
View File
@@ -1265,6 +1265,13 @@ fun setQuestStage(player: Player, quest: String, stage: Int) {
player.questRepository.setStage(QuestRepository.getQuests()[quest]!!, stage)
}
/**
* Check if a quest is complete
*/
fun isQuestComplete(player: Player, quest: String): Boolean {
return player.questRepository.getStage(quest) == 100
}
/**
* Gets a scenery definition from the given ID
* @param id the ID of the scenery to get the definition for.