I said, changed some todos.

This commit is contained in:
Pao
2023-01-15 17:52:36 +01:00
parent 86ebb72d49
commit 505a3cc7e2
5 changed files with 13 additions and 8 deletions

View File

@@ -25,10 +25,11 @@ function ISBaseTimedAction:adjustMaxTime(maxTime)
local protPartNames = {"RightHand", "RightForearm", "LeftHand", "LeftForearm"}
local otherPartNames = {"RightArm", "LeftArm"}
--TODO this is dumb, it just makes action a lot slower, without checking for special cases like reading. Find a better way
for i,name in ipairs(protPartNames) do
if modData.TOC[name].is_cut then
if modData.TOC[name].is_prosthesis_equipped then
maxTime = maxTime * modData.TOC[name].prosthesis_factor --TODO this is dumb
maxTime = maxTime * modData.TOC[name].prosthesis_factor
else
maxTime = maxTime * 2;
end