minor edits/typos
This commit is contained in:
parent
ef398a2428
commit
800382abb4
2 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ this.modes = {
|
||||||
},
|
},
|
||||||
allEquipmentNecroEdit = {
|
allEquipmentNecroEdit = {
|
||||||
value = 3,
|
value = 3,
|
||||||
description = "Actors are pulled down by their encumbrance percentage multiplied by triple the down-pull multiplier, " ..
|
description = "Actors are pulled down by double the weight of all equipped gear multiplied by a hundredth of the down-pull multiplier, " ..
|
||||||
"except any weight above 135 only counts 10%. Lessens the gap between the lightest and heaviest heavy armours.",
|
"except any weight above 135 only counts 10%. Lessens the gap between the lightest and heaviest heavy armours.",
|
||||||
},
|
},
|
||||||
worstCaseScenario = {
|
worstCaseScenario = {
|
||||||
|
|
|
@ -57,7 +57,7 @@ formulas.allEquipmentNecroEdit = function(actor, ref)
|
||||||
-- Thanks Necrolesian for this formula
|
-- Thanks Necrolesian for this formula
|
||||||
-- https://forums.nexusmods.com/index.php?/topic/10349253-a-sinking-feeling/page-2#entry97870268
|
-- https://forums.nexusmods.com/index.php?/topic/10349253-a-sinking-feeling/page-2#entry97870268
|
||||||
local term1 = ((config.multipliers.allEquipment / 100) * totalWeight) * 2
|
local term1 = ((config.multipliers.allEquipment / 100) * totalWeight) * 2
|
||||||
local term2 = ((config.multipliers.allEquipment / 100) * (totalWeight - 135) * 0.2) + 270
|
local term2 = ((config.multipliers.allEquipment / 100) * (totalWeight - 135) * 0.2 + 270)
|
||||||
local downPull = math.min(term1, term2)
|
local downPull = math.min(term1, term2)
|
||||||
local debugStr = string.format("Pulling %s down by %s (instead of %s) using equipment weight mode (necro edit) (%s total equipment weight)",
|
local debugStr = string.format("Pulling %s down by %s (instead of %s) using equipment weight mode (necro edit) (%s total equipment weight)",
|
||||||
ref.id, downPull, math.max(term1, term2), totalWeight)
|
ref.id, downPull, math.max(term1, term2), totalWeight)
|
||||||
|
|
Loading…
Add table
Reference in a new issue