From 9d61422cdc476ca4521c8b8bef191728d29dba88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lilian=20J=C3=B3nsd=C3=B3ttir?= Date: Sat, 14 Aug 2021 14:26:37 -0700 Subject: [PATCH] the rest of the formulas are compact, why did I spread these ones out so much --- MWSE/mods/celediel/ASinkingFeeling/main.lua | 8 -------- 1 file changed, 8 deletions(-) diff --git a/MWSE/mods/celediel/ASinkingFeeling/main.lua b/MWSE/mods/celediel/ASinkingFeeling/main.lua index a9b4af1..53d509d 100644 --- a/MWSE/mods/celediel/ASinkingFeeling/main.lua +++ b/MWSE/mods/celediel/ASinkingFeeling/main.lua @@ -94,27 +94,19 @@ end formulas.worstCaseScenario = function(actor, mobile, ref) local downPull = 0 - local results = calculateAll(actor, mobile, ref) - local largest = common.keyOfLargestValue(results) downPull = results[largest] - local debugStr = string.format("Pulling %s down by %s using worst mode:%s", ref.id, downPull, common.camelCaseToWords(largest)) - return downPull, debugStr end formulas.bestCaseScenario = function(actor, mobile, ref) local downPull = 0 - local results = calculateAll(actor, mobile, ref) - local smallest = common.keyOfSmallestValue(results) downPull = results[smallest] - local debugStr = string.format("Pulling %s down by %s using best mode:%s", ref.id, downPull, common.camelCaseToWords(smallest)) - return downPull, debugStr end