Overrided mods instead of just replacing them

This commit is contained in:
Pao
2023-01-17 01:31:49 +01:00
parent 505a3cc7e2
commit 64c2010a60
5 changed files with 104 additions and 169 deletions

View File

@@ -43,13 +43,13 @@ function ISUninstallProsthesis:perform()
local toc_data = self.character:getModData().TOC
local body_part_type = self.bodyPart:getType()
local accepting_body_parts = GetAcceptingProsthesisBodyParts()
local accepting_body_parts = GetAcceptingProsthesisBodyPartTypes()
if accepting_body_parts == nil then
return -- should never happen
end
for _, v in ipairs(GetAcceptingProsthesisBodyParts()) do
for _, v in ipairs(GetAcceptingProsthesisBodyPartTypes()) do
if self.bodyPart:getType() == v then
local part_name = FindTocBodyPartNameFromBodyPartType(v)