I said fixed.
This commit is contained in:
@@ -61,8 +61,10 @@ function FixSingleBodyPartType(body_part_type, use_oven)
|
|||||||
body_part_type:setBleeding(false)
|
body_part_type:setBleeding(false)
|
||||||
body_part_type:setBleedingTime(0) -- no bleeding since it's been cauterized
|
body_part_type:setBleedingTime(0) -- no bleeding since it's been cauterized
|
||||||
else
|
else
|
||||||
body_part_type:setBleeding(true);
|
-- TODO Think a little better about this
|
||||||
body_part_type:setBleedingTime(ZombRand(1, 5)); -- Reset the bleeding, maybe make it random
|
body_part_type:setBleeding(false)
|
||||||
|
|
||||||
|
--body_part_type:setBleedingTime(ZombRand(1, 5)) -- Reset the bleeding, maybe make it random
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -34,10 +34,13 @@ function TheOnlyCure.CheckIfPlayerIsInfected(player, toc_data)
|
|||||||
|
|
||||||
for _, v in ipairs(GetLimbsBodyPartTypes()) do
|
for _, v in ipairs(GetLimbsBodyPartTypes()) do
|
||||||
|
|
||||||
local toc_bodypart = TheOnlyCure.FindBodyPartFromBodyPartType(toc_data, v)
|
local toc_bodypart = TheOnlyCure.FindTocDataPartNameFromBodyPartType(toc_data, v)
|
||||||
if body_damage:getBodyPart(v):bitten() and not toc_data[toc_bodypart].is_cut then
|
if body_damage:getBodyPart(v):bitten() and toc_bodypart ~= nil then
|
||||||
toc_data[toc_bodypart].is_infected = true
|
if toc_bodypart.is_cut then
|
||||||
player:transmitModData()
|
toc_data[toc_bodypart].is_infected = true
|
||||||
|
player:transmitModData()
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -87,9 +87,9 @@ function ISCutLimb:perform()
|
|||||||
end
|
end
|
||||||
|
|
||||||
if self.patient ~= self.surgeon and isClient() then
|
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
|
else
|
||||||
CutArm(self.partName, surgeonFact, useBandage, bandageAlcool, usePainkiller, painkillerCount);
|
TheOnlyCure.CutLimb(self.part_name, surgeon_factor, bandage_table, painkiller_table)
|
||||||
end
|
end
|
||||||
self.surgeon:getXp():AddXP(Perks.Doctor, 400);
|
self.surgeon:getXp():AddXP(Perks.Doctor, 400);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user