That's a lot of stuff, fixed X on online UI, prosthesis unequipping, prosthesis equipping for MP, ecc.

This commit is contained in:
Pao
2023-01-22 19:37:11 +01:00
parent ccbd88b2a7
commit 36bee73878
11 changed files with 370 additions and 114 deletions

View File

@@ -24,7 +24,22 @@ function CheckIfCanBeOperated(part_name)
end
function CheckIfProsthesisCanBeEquipped(part_name)
function CheckIfProsthesisCanBeEquipped(part_name, item)
local part_data = getPlayer():getModData().TOC.Limbs
if item ~= nil then
if part_data[part_name].is_operated then
return true
end
else
return false
end
-- check if prosthesis is in the surgeon inventory... we need to get it before
end