port swindler's cost removal from 1.0
This commit is contained in:
parent
508dde11ef
commit
868086009f
1 changed files with 2 additions and 5 deletions
|
@ -1,11 +1,9 @@
|
||||||
package at.petrak.hexcasting.common.casting.operators.stack
|
package at.petrak.hexcasting.common.casting.operators.stack
|
||||||
|
|
||||||
import at.petrak.hexcasting.api.misc.ManaConstants
|
|
||||||
import at.petrak.hexcasting.api.spell.OperationResult
|
import at.petrak.hexcasting.api.spell.OperationResult
|
||||||
import at.petrak.hexcasting.api.spell.Operator
|
import at.petrak.hexcasting.api.spell.Operator
|
||||||
import at.petrak.hexcasting.api.spell.SpellDatum
|
import at.petrak.hexcasting.api.spell.SpellDatum
|
||||||
import at.petrak.hexcasting.api.spell.casting.CastingContext
|
import at.petrak.hexcasting.api.spell.casting.CastingContext
|
||||||
import at.petrak.hexcasting.api.spell.casting.OperatorSideEffect
|
|
||||||
import at.petrak.hexcasting.api.spell.casting.SpellContinuation
|
import at.petrak.hexcasting.api.spell.casting.SpellContinuation
|
||||||
import at.petrak.hexcasting.api.spell.getChecked
|
import at.petrak.hexcasting.api.spell.getChecked
|
||||||
import at.petrak.hexcasting.api.spell.mishaps.MishapInvalidIota
|
import at.petrak.hexcasting.api.spell.mishaps.MishapInvalidIota
|
||||||
|
@ -13,7 +11,6 @@ import at.petrak.hexcasting.api.spell.mishaps.MishapNotEnoughArgs
|
||||||
import at.petrak.hexcasting.api.utils.asTranslatedComponent
|
import at.petrak.hexcasting.api.utils.asTranslatedComponent
|
||||||
import it.unimi.dsi.fastutil.ints.IntArrayList
|
import it.unimi.dsi.fastutil.ints.IntArrayList
|
||||||
import kotlin.math.abs
|
import kotlin.math.abs
|
||||||
import kotlin.math.ln
|
|
||||||
import kotlin.math.roundToInt
|
import kotlin.math.roundToInt
|
||||||
|
|
||||||
// "lehmer code"
|
// "lehmer code"
|
||||||
|
@ -58,13 +55,13 @@ object OpAlwinfyHasAscendedToABeingOfPureMath : Operator {
|
||||||
editTarget = editTarget.subList(1, editTarget.size)
|
editTarget = editTarget.subList(1, editTarget.size)
|
||||||
}
|
}
|
||||||
|
|
||||||
val cost = (ln((strides.lastOrNull() ?: 0).toFloat()) * ManaConstants.DUST_UNIT).toInt()
|
// val cost = (ln((strides.lastOrNull() ?: 0).toFloat()) * ManaConstants.DUST_UNIT).toInt()
|
||||||
|
|
||||||
return OperationResult(
|
return OperationResult(
|
||||||
continuation,
|
continuation,
|
||||||
stack,
|
stack,
|
||||||
local,
|
local,
|
||||||
listOf(OperatorSideEffect.ConsumeMana(cost))
|
listOf() // OperatorSideEffect.ConsumeMana(cost)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue