Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
beee6f409c | ||
|
|
540f510eb0 |
@@ -7,7 +7,7 @@
|
|||||||
<img src='https://img.shields.io/badge/Steam-000000?style=for-the-badge&logo=steam&logoColor=white' />
|
<img src='https://img.shields.io/badge/Steam-000000?style=for-the-badge&logo=steam&logoColor=white' />
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
You're bitten. You have two choices.
|
# You're bitten. You have two choices.
|
||||||
Wait until you succumb to the virus or take matters into your hands. Cut off that infected part and live to die another day.
|
Wait until you succumb to the virus or take matters into your hands. Cut off that infected part and live to die another day.
|
||||||
|
|
||||||
This version of **The Only Cure** has been rebuilt from scratch to support future additions and to feel as close as possible as a vanilla mechanic.
|
This version of **The Only Cure** has been rebuilt from scratch to support future additions and to feel as close as possible as a vanilla mechanic.
|
||||||
@@ -16,6 +16,7 @@ This version of **The Only Cure** has been rebuilt from scratch to support futur
|
|||||||
|
|
||||||
Supports **Single Player** and **Multiplayer**!
|
Supports **Single Player** and **Multiplayer**!
|
||||||
|
|
||||||
|
|
||||||
# Setup
|
# Setup
|
||||||
Use it with the following mods for the intended experience:
|
Use it with the following mods for the intended experience:
|
||||||
- [Fancy Handwork](https://steamcommunity.com/sharedfiles/filedetails/?id=2904920097)
|
- [Fancy Handwork](https://steamcommunity.com/sharedfiles/filedetails/?id=2904920097)
|
||||||
|
|||||||
@@ -268,7 +268,7 @@ end
|
|||||||
local function CheckLimbFeasibility(limbName)
|
local function CheckLimbFeasibility(limbName)
|
||||||
local dcInst = DataController.GetInstance()
|
local dcInst = DataController.GetInstance()
|
||||||
local isFeasible = not dcInst:getIsCut(limbName) or dcInst:getIsProstEquipped(limbName)
|
local isFeasible = not dcInst:getIsCut(limbName) or dcInst:getIsProstEquipped(limbName)
|
||||||
TOC_DEBUG.print("isFeasible="..tostring(isFeasible))
|
--TOC_DEBUG.print("isFeasible="..tostring(isFeasible))
|
||||||
return isFeasible
|
return isFeasible
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -71,11 +71,13 @@ function TourniquetController.WrapClothingAction(obj, wrappedFunc)
|
|||||||
group:setMultiItem(TourniquetController.bodyLoc, false)
|
group:setMultiItem(TourniquetController.bodyLoc, false)
|
||||||
end
|
end
|
||||||
|
|
||||||
wrappedFunc(obj)
|
local ogValue = wrappedFunc(obj)
|
||||||
|
|
||||||
if isTourniquet then
|
if isTourniquet then
|
||||||
group:setMultiItem(TourniquetController.bodyLoc, true)
|
group:setMultiItem(TourniquetController.bodyLoc, true)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return ogValue -- Needed for isValid
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
@@ -98,12 +100,12 @@ end
|
|||||||
|
|
||||||
local og_ISWearClothing_isValid = ISWearClothing.isValid
|
local og_ISWearClothing_isValid = ISWearClothing.isValid
|
||||||
function ISWearClothing:isValid()
|
function ISWearClothing:isValid()
|
||||||
TourniquetController.WrapClothingAction(self, og_ISWearClothing_isValid)
|
return TourniquetController.WrapClothingAction(self, og_ISWearClothing_isValid)
|
||||||
end
|
end
|
||||||
|
|
||||||
local og_ISUnequipAction_perform = ISUnequipAction.perform
|
local og_ISUnequipAction_perform = ISUnequipAction.perform
|
||||||
function ISUnequipAction:perform()
|
function ISUnequipAction:perform()
|
||||||
TourniquetController.WrapClothingAction(self, og_ISUnequipAction_perform)
|
return TourniquetController.WrapClothingAction(self, og_ISUnequipAction_perform)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user