Let's switch back to the OG name

This commit is contained in:
Pao
2023-03-04 00:35:21 +01:00
parent f55fe877f7
commit cf0c93fb4b
89 changed files with 651 additions and 651 deletions

View File

@@ -1,20 +1,20 @@
------------------------------------------
------------- JUST CUT IT OUT ------------
-------------- THE ONLY CURE -------------
------------------------------------------
---------------- CHEATS -----------------
if JCIO_Cheat == nil then
JCIO_Cheat = {}
if TOC_Cheat == nil then
TOC_Cheat = {}
end
JCIO_Cheat.ResetEverything = function()
TOC_Cheat.ResetEverything = function()
-- This has to be run on the local player to be sure that we're correctly reassigning everything
local player = getPlayer()
local playerInv = player:getInventory()
local modData = player:getModData()
modData.JCIO = nil
modData.TOC = nil
-- Removes traits just to be sure
local customTraits = player:getTraits()
@@ -23,12 +23,12 @@ JCIO_Cheat.ResetEverything = function()
customTraits:remove("Amputee_UpperArm")
JCIO.Init(_, player)
TOC.Init(_, player)
-- Destroy the amputation or prosthesis item
for _, partName in pairs(JCIO_Common.GetPartNames()) do
local amputationItemName = JCIO_Common.FindAmputationOrProsthesisName(partName, player, "Amputation")
local prostItemName = JCIO_Common.FindAmputationOrProsthesisName(partName, player, "Prosthesis")
for _, partName in pairs(TOC_Common.GetPartNames()) do
local amputationItemName = TOC_Common.FindAmputationOrProsthesisName(partName, player, "Amputation")
local prostItemName = TOC_Common.FindAmputationOrProsthesisName(partName, player, "Prosthesis")
if amputationItemName ~= nil then
local amputationItem = playerInv:FindAndReturn(amputationItemName)
if amputationItem ~= nil then
@@ -52,6 +52,6 @@ JCIO_Cheat.ResetEverything = function()
-- Reset special flag for legs amputations
JCIO_Anims.SetMissingFootAnimation(false)
TOC_Anims.SetMissingFootAnimation(false)
end