From e270b4f73b999716cf297ee66c9e5d8b52d7b2a7 Mon Sep 17 00:00:00 2001 From: ZioPao Date: Sun, 5 May 2024 12:38:20 +0200 Subject: [PATCH 1/4] updated steam desc --- dev_stuff/steam_desc.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/dev_stuff/steam_desc.txt b/dev_stuff/steam_desc.txt index 55017fb..6914803 100644 --- a/dev_stuff/steam_desc.txt +++ b/dev_stuff/steam_desc.txt @@ -6,9 +6,9 @@ Wait until you succumb to the virus or take matters into your hands. Cut off tha This version of [b]The Only Cure[/b] has been rebuilt from scratch to support future additions and to feel as close as possible as a vanilla mechanic. +[b]If you're using an older version of The Only Cure and want to switch with this, you're gonna need to create a new character\save to prevent issues.[/b] [b]The older version will be delisted shortly and it will not be supported anymore.[/b] - -Supports [b]Single Player[/b] and [b]Multiplayer[/b]! +[h1]Supports [b]Single Player[/b] and [b]Multiplayer[/b]. Host Mode is currently [b]UNSUPPORTED![/b][/h1] [h1]Setup[/h1] Use it with the following mods for the intended experience: @@ -17,6 +17,8 @@ Use it with the following mods for the intended experience: [*] [url=https://steamcommunity.com/sharedfiles/filedetails/?id=2934621024]Brutal Handwork[/url] [/list] +Place them [b]BEFORE[/b] The Only Cure in your mod list! + [hr][/hr] [h1]Quick guide[/h1] @@ -74,6 +76,10 @@ Got any issues or found some pesky bugs? Report them on GitHub! [th]dhert[/th] [th]Compatibility API[/th] [/tr] + [tr] + [th]JCloudJalix[/th] + [th]German translation[/th] + [/tr] [/table] [hr][/hr] From d35840d825314e8f14f289bd725be9e8c976fd63 Mon Sep 17 00:00:00 2001 From: ZioPao Date: Sun, 5 May 2024 13:27:20 +0200 Subject: [PATCH 2/4] 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 From 31995965f962b5c69e989727ce6127624f0ed6c0 Mon Sep 17 00:00:00 2001 From: ZioPao Date: Sun, 5 May 2024 13:50:47 +0200 Subject: [PATCH 3/4] Added leveling for ProstFamiliarity, dynamic xp --- media/lua/client/TOC/Controllers/LimitActionsController.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/media/lua/client/TOC/Controllers/LimitActionsController.lua b/media/lua/client/TOC/Controllers/LimitActionsController.lua index 8c9468a..b70c178 100644 --- a/media/lua/client/TOC/Controllers/LimitActionsController.lua +++ b/media/lua/client/TOC/Controllers/LimitActionsController.lua @@ -63,18 +63,20 @@ function ISBaseTimedAction:perform() og_ISBaseTimedAction_perform(self) TOC_DEBUG.print("Running ISBaseTimedAction.perform override") + TOC_DEBUG.print("max time: " .. tostring(self.maxTime)) local dcInst = DataController.GetInstance() if not dcInst:getIsAnyLimbCut() then return end local amputatedLimbs = CachedDataHandler.GetAmputatedLimbs(LocalPlayerController.username) + local xp = self.maxTime/100 for k, _ in pairs(amputatedLimbs) do local limbName = k -- We're checking for only "visible" amputations to prevent from having bleeds everywhere if dcInst:getIsCut(limbName) and dcInst:getIsVisible(limbName) then local side = CommonMethods.GetSide(limbName) - LocalPlayerController.playerObj:getXp():AddXP(Perks["Side_" .. side], 1) -- TODO Make it dynamic + LocalPlayerController.playerObj:getXp():AddXP(Perks["Side_" .. side], xp) if not dcInst:getIsCicatrized(limbName) and dcInst:getIsProstEquipped(limbName) then TOC_DEBUG.print("Trying for bleed, player met the criteria") LocalPlayerController.TryRandomBleed(self.character, limbName) @@ -83,7 +85,7 @@ function ISBaseTimedAction:perform() -- Level up prosthesis perk if dcInst:getIsProstEquipped(limbName) then - LocalPlayerController.playerObj:getXp():AddXP(Perks["ProstFamiliarity"], 1) -- TODO Make it dynamic + LocalPlayerController.playerObj:getXp():AddXP(Perks["ProstFamiliarity"], xp) end end From d512f0ba818ea9bc9ba3014d2ffb870ff28712a7 Mon Sep 17 00:00:00 2001 From: ZioPao Date: Sun, 5 May 2024 13:51:03 +0200 Subject: [PATCH 4/4] bump to mod.info and _version --- media/lua/client/TOC/Main.lua | 2 +- mod.info | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/media/lua/client/TOC/Main.lua b/media/lua/client/TOC/Main.lua index 4206c29..6ebb998 100644 --- a/media/lua/client/TOC/Main.lua +++ b/media/lua/client/TOC/Main.lua @@ -6,7 +6,7 @@ require("TOC/Events") ---@class Main local Main = { - _version = "2.0.3" + _version = "2.0.4" } function Main.Start() diff --git a/mod.info b/mod.info index 6504571..69a5a39 100644 --- a/mod.info +++ b/mod.info @@ -4,5 +4,5 @@ description=You've been bitten. You have only two choices. id=TheOnlyCure icon=icon.png url=https://github.com/ZioPao/The-Only-Cure -modversion=2.0.3 +modversion=2.0.4 pzversion=41.65