From d77ede68acf80e2ea53edc515627021efdeaa736 Mon Sep 17 00:00:00 2001 From: "yrsegal@gmail.com" Date: Tue, 12 Apr 2022 11:21:14 -0400 Subject: [PATCH] alwinfy requests it, alwinfy gets new cost --- .../operators/stack/OpAlwinfyHasAscendedToABeingOfPureMath.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/at/petrak/hexcasting/common/casting/operators/stack/OpAlwinfyHasAscendedToABeingOfPureMath.kt b/src/main/java/at/petrak/hexcasting/common/casting/operators/stack/OpAlwinfyHasAscendedToABeingOfPureMath.kt index b7b56e16..5917c4f2 100644 --- a/src/main/java/at/petrak/hexcasting/common/casting/operators/stack/OpAlwinfyHasAscendedToABeingOfPureMath.kt +++ b/src/main/java/at/petrak/hexcasting/common/casting/operators/stack/OpAlwinfyHasAscendedToABeingOfPureMath.kt @@ -10,8 +10,8 @@ import at.petrak.hexcasting.common.casting.mishaps.MishapInvalidIota import at.petrak.hexcasting.common.casting.mishaps.MishapNotEnoughArgs import it.unimi.dsi.fastutil.ints.IntArrayList import net.minecraft.network.chat.TranslatableComponent -import net.minecraft.util.Mth import kotlin.math.abs +import kotlin.math.ln import kotlin.math.roundToInt // "lehmer code" @@ -51,7 +51,7 @@ object OpAlwinfyHasAscendedToABeingOfPureMath : Operator { editTarget = editTarget.subList(1, editTarget.size) } - val cost = Mth.sqrt((strides.lastOrNull() ?: 0).toFloat()).toInt() + val cost = (ln((strides.lastOrNull() ?: 0).toFloat()) * 10000).toInt() return OperationResult( stack,