Fixed some errors from the last refactor

This commit is contained in:
Pao
2023-02-03 14:39:46 +01:00
parent c19a586110
commit d8805cc6e2
7 changed files with 69 additions and 79 deletions

View File

@@ -56,9 +56,9 @@ function ISUninstallProsthesis:perform()
if self.patient ~= self.surgeon and isClient() then
SendUnequipProsthesis(self.patient, self.part_name)
SendUnequipProsthesis(self.patient, self.part_name, self.item)
else
TheOnlyCure.UnequipProsthesis(self.patient, self.part_name)
TheOnlyCure.UnequipProsthesis(self.patient, self.part_name, self.item)
end
ISBaseTimedAction.perform(self)
@@ -69,7 +69,7 @@ function ISUninstallProsthesis:new(surgeon, patient, part_name)
local toc_limbs_data = patient:getModData().TOC.Limbs
o.item = toc_limbs_data[part_name].equipped_prosthesis
o.item = TocFindItemInProstBodyLocation(part_name, patient)
o.character = surgeon -- For animation purposes
o.patient = patient