Moved more stuff

This commit is contained in:
Pao
2023-01-13 01:36:56 +01:00
parent 7d379aeea6
commit 2f32a3d1cd

View File

@@ -33,12 +33,11 @@ function TheOnlyCure.CheckIfPlayerIsInfected(player, toc_data)
local body_damage = player:getBodyDamage() local body_damage = player:getBodyDamage()
for _, v in ipairs(GetLimbsBodyPartTypes()) do for _, v in ipairs(GetLimbsBodyPartTypes()) do
local toc_bodypart = FindTocDataPartNameFromBodyPartType(toc_data, v)
local toc_bodypart = TheOnlyCure.FindTocDataPartNameFromBodyPartType(toc_data, v)
if body_damage:getBodyPart(v):bitten() and toc_bodypart ~= nil then if body_damage:getBodyPart(v):bitten() and toc_bodypart ~= nil then
if toc_bodypart.is_cut then if toc_bodypart.is_cut then
toc_data[toc_bodypart].is_infected = true toc_data[toc_bodypart].is_infected = true
player:transmitModData() player:transmitModData()
end end
end end