Fixed SP, added some tests

This commit is contained in:
ZioPao
2024-01-10 23:43:36 +01:00
parent 02c992b12a
commit f984a834fc
6 changed files with 76 additions and 22 deletions

View File

@@ -19,14 +19,14 @@ function CauterizeAction:new(character, limbName, stoveObj)
-- We need to follow ISBaseTimedAction. self.character is gonna be the surgeon
o.character = character
o.ovenObj = stoveObj
o.stoveObj = stoveObj
o.limbName = limbName
o.stopOnWalk = true
o.stopOnRun = true
-- Max time depends on the strength
o.maxTime = 100
o.maxTime = 20
if o.character:isTimedActionInstant() then o.maxTime = 1 end
return o