Some More stuff

This commit is contained in:
Pao
2023-02-26 22:01:14 +01:00
parent 6d2be51cd4
commit a536980d12
16 changed files with 314 additions and 315 deletions

View File

@@ -40,7 +40,7 @@ function ISCutLimb:start()
-- TODO Add a check so you can't cut your arm if you don't have hands or if you only have one arm and want to cut that same arm.
self:setActionAnim("SawLog")
local saw_item = TocGetSawInInventory(self.surgeon)
local saw_item = JCIO_Common.GetSawInInventory(self.surgeon)
self.surgeon:getEmitter():playSound("Amputation_Sound")
-- Return whatever object we've got in the inventory

View File

@@ -44,7 +44,7 @@ function ISInstallProsthesis:perform()
-- local toc_data = self.character:getModData().TOC
--local part_name = TocGetPartNameFromBodyPartType(self.bodyPart:getType())
local body_part_type = TocGetBodyPartFromPartName(self.part_name)
local body_part_type = JCIO_Common.GetBodyPartFromPartName(self.part_name)
-- Check if can be performed. This shouldn't be necessary, but just to be sure
if body_part_type == BodyPartType.UpperArm_L or body_part_type == BodyPartType.UpperArm_R then