the rest of the formulas are compact, why did I spread these ones out so much
This commit is contained in:
parent
97147db78f
commit
9d61422cdc
1 changed files with 0 additions and 8 deletions
|
@ -94,27 +94,19 @@ end
|
||||||
|
|
||||||
formulas.worstCaseScenario = function(actor, mobile, ref)
|
formulas.worstCaseScenario = function(actor, mobile, ref)
|
||||||
local downPull = 0
|
local downPull = 0
|
||||||
|
|
||||||
local results = calculateAll(actor, mobile, ref)
|
local results = calculateAll(actor, mobile, ref)
|
||||||
|
|
||||||
local largest = common.keyOfLargestValue(results)
|
local largest = common.keyOfLargestValue(results)
|
||||||
downPull = results[largest]
|
downPull = results[largest]
|
||||||
|
|
||||||
local debugStr = string.format("Pulling %s down by %s using worst mode:%s", ref.id, downPull, common.camelCaseToWords(largest))
|
local debugStr = string.format("Pulling %s down by %s using worst mode:%s", ref.id, downPull, common.camelCaseToWords(largest))
|
||||||
|
|
||||||
return downPull, debugStr
|
return downPull, debugStr
|
||||||
end
|
end
|
||||||
|
|
||||||
formulas.bestCaseScenario = function(actor, mobile, ref)
|
formulas.bestCaseScenario = function(actor, mobile, ref)
|
||||||
local downPull = 0
|
local downPull = 0
|
||||||
|
|
||||||
local results = calculateAll(actor, mobile, ref)
|
local results = calculateAll(actor, mobile, ref)
|
||||||
|
|
||||||
local smallest = common.keyOfSmallestValue(results)
|
local smallest = common.keyOfSmallestValue(results)
|
||||||
downPull = results[smallest]
|
downPull = results[smallest]
|
||||||
|
|
||||||
local debugStr = string.format("Pulling %s down by %s using best mode:%s", ref.id, downPull, common.camelCaseToWords(smallest))
|
local debugStr = string.format("Pulling %s down by %s using best mode:%s", ref.id, downPull, common.camelCaseToWords(smallest))
|
||||||
|
|
||||||
return downPull, debugStr
|
return downPull, debugStr
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue