Starting rewriting stuff to rename the mod

This commit is contained in:
Pao
2023-02-26 18:56:41 +01:00
parent 42ffca3dba
commit 65697cff04
18 changed files with 276 additions and 291 deletions

View File

@@ -158,7 +158,7 @@ local function UpdatePlayerHealth(player, part_data)
end
-- MAIN UPDATE FUNCTIONS
TOC.UpdateOnTick = function()
JCIO.UpdateOnTick = function()
local player = getPlayer()
if player == nil then
@@ -173,7 +173,7 @@ TOC.UpdateOnTick = function()
end
TOC.UpdateEveryTenMinutes = function()
JCIO.UpdateEveryTenMinutes = function()
local player = getPlayer()
@@ -184,7 +184,7 @@ TOC.UpdateEveryTenMinutes = function()
local part_data = player:getModData().TOC.Limbs
--Experience for prosthesis user
for _, side in pairs(TOC.side_names) do
for _, side in pairs(JCIO.sideNames) do
if part_data[side .. "_Hand"].is_prosthesis_equipped or part_data[side .. "_LowerArm"].is_prosthesis_equipped then
player:getXp():AddXP(Perks[side .. "_Hand"], 4)
end
@@ -215,7 +215,7 @@ TOC.UpdateEveryTenMinutes = function()
end
end
TOC.UpdateEveryOneMinute = function()
JCIO.UpdateEveryOneMinute = function()
local player = getPlayer()
-- To prevent errors during loading