@@ -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]
|
||||
|
||||
@@ -63,22 +63,31 @@ 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)
|
||||
end
|
||||
|
||||
|
||||
-- Level up prosthesis perk
|
||||
if dcInst:getIsProstEquipped(limbName) then
|
||||
LocalPlayerController.playerObj:getXp():AddXP(Perks["ProstFamiliarity"], xp)
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -6,7 +6,7 @@ require("TOC/Events")
|
||||
|
||||
---@class Main
|
||||
local Main = {
|
||||
_version = "2.0.3"
|
||||
_version = "2.0.4"
|
||||
}
|
||||
|
||||
function Main.Start()
|
||||
|
||||
Reference in New Issue
Block a user