Fixing interactions

This commit is contained in:
ZioPao
2024-01-09 00:04:57 +01:00
parent 06e41790ca
commit aeb1bca94d
5 changed files with 27 additions and 15 deletions

View File

@@ -91,9 +91,9 @@ function CleanWoundAction:perform()
self.bodyPart:setAdditionalPain(self.bodyPart:getAdditionalPain() + addPain)
self.bandage:Use()
local limbName = CommonMethods.GetLimbNameFromBodyPart(self.bodyPart)
-- TOC Data handling
-- TODO CHeck if correct in MP
local limbName = CommonMethods.GetLimbNameFromBodyPart(self.bodyPart)
local dcInst = DataController.GetInstance(self.otherPlayer:getUsername())
local currentWoundDirtyness = dcInst:getWoundDirtyness(limbName)
@@ -102,6 +102,7 @@ function CleanWoundAction:perform()
dcInst:setWoundDirtyness(limbName, newWoundDirtyness)
dcInst:apply()
-- Clean visual
local bbptEnum = BloodBodyPartType[limbName]