reformatted everything
This commit is contained in:
@@ -51,13 +51,12 @@ function ISCutLimb:start()
|
||||
|
||||
body_damage_part:setBleeding(true)
|
||||
body_damage_part:setCut(true)
|
||||
body_damage_part:setBleedingTime(ZombRand(10,20))
|
||||
body_damage_part:setBleedingTime(ZombRand(10, 20))
|
||||
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function ISCutLimb:findArgs()
|
||||
local surgeon_factor = self.surgeon:getPerkLevel(Perks.Doctor)
|
||||
if self.surgeon:getDescriptor():getProfession() == "surgeon" then surgeon_factor = surgeon_factor + 15 end
|
||||
@@ -67,10 +66,11 @@ function ISCutLimb:findArgs()
|
||||
local bandage_table = {
|
||||
use_bandage = false,
|
||||
bandage_type = nil,
|
||||
is_bandage_sterilized = nil}
|
||||
is_bandage_sterilized = nil
|
||||
}
|
||||
local painkiller_table = {}
|
||||
|
||||
|
||||
|
||||
local bandage = self.surgeon:getInventory():FindAndReturn('Bandage')
|
||||
local sterilized_bandage = self.surgeon:getInventory():FindAndReturn('AlcoholBandage')
|
||||
|
||||
@@ -102,7 +102,6 @@ function ISCutLimb:findArgs()
|
||||
return surgeon_factor, bandage_table, painkiller_table
|
||||
end
|
||||
|
||||
|
||||
function ISCutLimb:perform()
|
||||
local surgeon_factor, bandage_table, painkiller_table = self:findArgs()
|
||||
|
||||
@@ -125,7 +124,6 @@ function ISCutLimb:perform()
|
||||
|
||||
end
|
||||
|
||||
|
||||
function ISCutLimb:new(patient, surgeon, part_name)
|
||||
local o = {}
|
||||
setmetatable(o, self)
|
||||
@@ -146,4 +144,4 @@ function ISCutLimb:new(patient, surgeon, part_name)
|
||||
o.fromHotbar = true
|
||||
if o.patient:isTimedActionInstant() then o.maxTime = 1 end
|
||||
return o
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user