From 63c5281673ee8968db1ee26490ba0323f9b7117e Mon Sep 17 00:00:00 2001 From: Alberto Rota Date: Tue, 6 Aug 2019 13:00:21 +0200 Subject: [PATCH] Added "hasCompletedQuest" conditio --- StardustLib/sys/stardust/quickbar/conditions.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/StardustLib/sys/stardust/quickbar/conditions.lua b/StardustLib/sys/stardust/quickbar/conditions.lua index 38fb84b9..f08042b1 100644 --- a/StardustLib/sys/stardust/quickbar/conditions.lua +++ b/StardustLib/sys/stardust/quickbar/conditions.lua @@ -23,5 +23,6 @@ function conditions.statPositive(stat) return status.statPositive(stat) end function conditions.statNegative(stat) return not status.statPositive(stat) end function conditions.species(species) return player.species() == species end function conditions.ownShip() return player.worldId() == player.ownShipWorldId() end +function conditions.hasCompletedQuest(questId) return player.hasCompletedQuest(questId) end function conditions.configExists(key) return root.assetJson(key) ~= nil end