More cleaning, first stuff to implement mp compatibile prosthesis equipping
This commit is contained in:
@@ -4,15 +4,21 @@ if TheOnlyCure == nil then
|
||||
TheOnlyCure = {}
|
||||
end
|
||||
|
||||
function TheOnlyCure.CheckIfCanBeCut(toc_data, part_name)
|
||||
function CheckIfCanBeCut(part_name)
|
||||
|
||||
return not toc_data[part_name].is_cut
|
||||
return not getPlayer():getModData().TOC[part_name].is_cut
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TheOnlyCure.CheckIfCanBeOperated(toc_data, part_name)
|
||||
function CheckIfCanBeOperated(part_name)
|
||||
|
||||
local toc_data = getPlayer():getModData().TOC
|
||||
|
||||
return toc_data[part_name].is_operated == false and toc_data[part_name].is_amputation_shown
|
||||
|
||||
end
|
||||
|
||||
function CheckIfProsthesisCanBeEquipped(part_name)
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user