I said fixed.

This commit is contained in:
Pao
2023-01-12 22:32:33 +01:00
parent 2999fe7bf3
commit 650159a046
3 changed files with 13 additions and 8 deletions

View File

@@ -61,8 +61,10 @@ function FixSingleBodyPartType(body_part_type, use_oven)
body_part_type:setBleeding(false)
body_part_type:setBleedingTime(0) -- no bleeding since it's been cauterized
else
body_part_type:setBleeding(true);
body_part_type:setBleedingTime(ZombRand(1, 5)); -- Reset the bleeding, maybe make it random
-- TODO Think a little better about this
body_part_type:setBleeding(false)
--body_part_type:setBleedingTime(ZombRand(1, 5)) -- Reset the bleeding, maybe make it random
end
end

View File

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

View File

@@ -87,9 +87,9 @@ function ISCutLimb:perform()
end
if self.patient ~= self.surgeon and isClient() then
SendCutArm(self.patient, self.partName, surgeonFact, useBandage, bandageAlcool, usePainkiller, painkillerCount);
SendCutLimb(self.patient, self.part_name, surgeon_factor, bandage_table, painkiller_table)
else
CutArm(self.partName, surgeonFact, useBandage, bandageAlcool, usePainkiller, painkillerCount);
TheOnlyCure.CutLimb(self.part_name, surgeon_factor, bandage_table, painkiller_table)
end
self.surgeon:getXp():AddXP(Perks.Doctor, 400);