Fixed TOC UI not working in MP

This commit is contained in:
Pao
2023-01-14 18:40:08 +01:00
parent 53e8d7456d
commit 3ce154079a
7 changed files with 241 additions and 123 deletions

View File

@@ -0,0 +1,18 @@
-- VARIOUS CHECKS --
if TheOnlyCure == nil then
TheOnlyCure = {}
end
function TheOnlyCure.CheckIfCanBeCut(toc_data, part_name)
return not toc_data[part_name].is_cut
end
function TheOnlyCure.CheckIfCanBeOperated(toc_data, part_name)
return toc_data[part_name].is_operated == false and toc_data[part_name].is_amputation_shown
end