From a311136d49768eece458f9fa3712bba01b25ac9d Mon Sep 17 00:00:00 2001 From: kopareigns <kopareigns@gmail.com> Date: Thu, 11 Oct 2018 21:45:59 -0400 Subject: [PATCH] smoother intelligence cost boosts --- src/utility/assayWidgets.tw | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/src/utility/assayWidgets.tw b/src/utility/assayWidgets.tw index 33e23757b90..fd56b5c5387 100644 --- a/src/utility/assayWidgets.tw +++ b/src/utility/assayWidgets.tw @@ -1323,25 +1323,8 @@ <</if>> <</if>> -/* this can be handled, save for the vertex, with a cubic function but I can not for the life of me derive the formula without one of theose graphing calculators */ -<<set _int = $args[0].intelligence+$args[0].intelligenceImplant>> -<<if _int >= 130>> - <<set _slaveMultiplier += 1.6>> -<<elseif _int > 95>> - <<set _slaveMultiplier += 0.8>> -<<elseif _int > 50>> - <<set _slaveMultiplier += 0.4>> -<<elseif _int > 15>> - <<set _slaveMultiplier += 0.2>> -<<elseif _int >= -15>> - <<set _slaveMultiplier += 0.1>> -<<elseif _int >= -50>> - <<set _slaveMultiplier += -0.2>> -<<elseif _int >= -95>> - <<set _slaveMultiplier += -0.4>> -<<elseif _int >= -100>> - <<set _slaveMultiplier += -0.8>> -<</if>> +<<set _int = Math.clamp($args[0].intelligence+$args[0].intelligenceImplant,-130,130)>> /* make absolutely certain we do not use +-131 in the next line */ +<<set _slaveMultiplier += Math.asin(_int/131)>> <<if $args[0].vagina > -1 && $arcologies[0].FSRestartSMR == 1>> <<if $args[0].dick > 0>> -- GitLab