From d35840d825314e8f14f289bd725be9e8c976fd63 Mon Sep 17 00:00:00 2001 From: ZioPao Date: Sun, 5 May 2024 13:27:20 +0200 Subject: [PATCH] Added level scaling for prosthetics --- .../lua/client/TOC/Controllers/LimitActionsController.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/media/lua/client/TOC/Controllers/LimitActionsController.lua b/media/lua/client/TOC/Controllers/LimitActionsController.lua index e34d71f..8c9468a 100644 --- a/media/lua/client/TOC/Controllers/LimitActionsController.lua +++ b/media/lua/client/TOC/Controllers/LimitActionsController.lua @@ -79,6 +79,13 @@ function ISBaseTimedAction:perform() TOC_DEBUG.print("Trying for bleed, player met the criteria") LocalPlayerController.TryRandomBleed(self.character, limbName) end + + + -- Level up prosthesis perk + if dcInst:getIsProstEquipped(limbName) then + LocalPlayerController.playerObj:getXp():AddXP(Perks["ProstFamiliarity"], 1) -- TODO Make it dynamic + end + end end end