Somes fixes, blood on limbs\prosthetics, new textures

This commit is contained in:
Pao
2023-01-17 22:29:31 +01:00
parent 0d840baeff
commit 8656bd5696
7 changed files with 108 additions and 31 deletions

View File

@@ -53,15 +53,16 @@ function ISUninstallProsthesis:perform()
if self.bodyPart:getType() == v then
local part_name = FindTocBodyPartNameFromBodyPartType(v)
print("Found prost in " .. part_name)
if part_name then
toc_data[part_name].is_prosthesis_equipped = false
toc_data[part_name].prosthesis_factor = 1
--local side = string.gsub(part_name, "Hand" or "Forearm", "")
local item_full_type = self.item:getFullType()
print("Searching for " .. item_full_type)
for _, prost_v in ipairs(GetProsthesisList()) do
local prosthesis_name = string.match(self.item:getName(), prost_v)
local prosthesis_name = string.match(item_full_type, prost_v)
if prosthesis_name then
self.character:getInventory():AddItem(prosthesis_name)