summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sassbot/modules/artifact2-0/Calculate.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/sassbot/modules/artifact2-0/Calculate.py b/sassbot/modules/artifact2-0/Calculate.py
new file mode 100644
index 0000000..251a193
--- /dev/null
+++ b/sassbot/modules/artifact2-0/Calculate.py
@@ -0,0 +1,8 @@
+# Embedded file name: /home/bouncer/sassbot/modules/artifact2-0/Calculate.py
+import math
+
+def DiminishingReturns(score, scale, reduction):
+ if score < 0:
+ return -diminishing_returns(-score, scale)
+ DiminishedReturn = int(math.ceil(math.sqrt(4 * (1 * score) / scale / 2) * scale)) - reduction
+ return DiminishedReturn \ No newline at end of file