Fixed a stupid mistake that broke the ovens

This commit is contained in:
Pao
2023-01-09 23:04:54 +01:00
parent 2373dbf7f5
commit 4e4d7752f2
5 changed files with 48 additions and 74 deletions

View File

@@ -46,15 +46,9 @@ local function healUpdatePart(partName, modData, player)
if bodyPart:getFractureTime()>0 then bodyPart:setFractureTime(0) end
-- During healing
-- this will not happen every 10 sec or some shit like that.
-- We will allow stitching. Surgery is needed only to have a faster cicatrization
if modData_part.IsCut and not modData_part.IsCicatrized then
if modData_part.CicaTimeLeft < 0 then
player:Say(getText('UI_ContextMenu_My') .. partName .. getText('UI_ContextMenu_Now_cut')) -- dunno if this works.
if modData_part.CicaTimeLeft < 0 then
player:Say(getText('UI_ContextMenu_My') .. partName .. getText('UI_ContextMenu_Now_cut'))
modData_part.IsCicatrized = true;
player:getTraits():add("Brave")
player:getTraits():add("Insensitive")
@@ -63,9 +57,7 @@ local function healUpdatePart(partName, modData, player)
bodyPart:setBleedingTime(0);
bodyPart:setDeepWoundTime(0);
player:transmitModData()
end
end
end
--Phantom pain