close #413 due to homestuck
This commit is contained in:
parent
c43ee4d2e2
commit
b9a4e8c204
1 changed files with 9 additions and 5 deletions
|
@ -1,16 +1,20 @@
|
||||||
package at.petrak.hexcasting.common.casting.operators.spells
|
package at.petrak.hexcasting.common.casting.operators.spells
|
||||||
|
|
||||||
import at.petrak.hexcasting.api.misc.MediaConstants
|
import at.petrak.hexcasting.api.casting.ParticleSpray
|
||||||
import at.petrak.hexcasting.api.mod.HexConfig
|
import at.petrak.hexcasting.api.casting.RenderedSpell
|
||||||
import at.petrak.hexcasting.api.mod.HexTags
|
|
||||||
import at.petrak.hexcasting.api.casting.*
|
|
||||||
import at.petrak.hexcasting.api.casting.castables.SpellAction
|
import at.petrak.hexcasting.api.casting.castables.SpellAction
|
||||||
import at.petrak.hexcasting.api.casting.eval.CastingEnvironment
|
import at.petrak.hexcasting.api.casting.eval.CastingEnvironment
|
||||||
|
import at.petrak.hexcasting.api.casting.getDouble
|
||||||
|
import at.petrak.hexcasting.api.casting.getEntity
|
||||||
import at.petrak.hexcasting.api.casting.iota.Iota
|
import at.petrak.hexcasting.api.casting.iota.Iota
|
||||||
import at.petrak.hexcasting.api.casting.mishaps.MishapImmuneEntity
|
import at.petrak.hexcasting.api.casting.mishaps.MishapImmuneEntity
|
||||||
import at.petrak.hexcasting.api.casting.mishaps.MishapLocationTooFarAway
|
import at.petrak.hexcasting.api.casting.mishaps.MishapLocationTooFarAway
|
||||||
|
import at.petrak.hexcasting.api.misc.MediaConstants
|
||||||
|
import at.petrak.hexcasting.api.mod.HexConfig
|
||||||
|
import at.petrak.hexcasting.api.mod.HexTags
|
||||||
import at.petrak.hexcasting.common.casting.operators.spells.great.OpTeleport
|
import at.petrak.hexcasting.common.casting.operators.spells.great.OpTeleport
|
||||||
import net.minecraft.world.entity.Entity
|
import net.minecraft.world.entity.Entity
|
||||||
|
import kotlin.math.absoluteValue
|
||||||
import kotlin.math.roundToInt
|
import kotlin.math.roundToInt
|
||||||
|
|
||||||
object OpBlink : SpellAction {
|
object OpBlink : SpellAction {
|
||||||
|
@ -42,7 +46,7 @@ object OpBlink : SpellAction {
|
||||||
|
|
||||||
return Triple(
|
return Triple(
|
||||||
Spell(target, delta),
|
Spell(target, delta),
|
||||||
(MediaConstants.SHARD_UNIT * delta * 0.5).roundToInt(),
|
(MediaConstants.SHARD_UNIT * delta.absoluteValue * 0.5).roundToInt(),
|
||||||
listOf(
|
listOf(
|
||||||
ParticleSpray.cloud(targetMiddlePos, 2.0, 50),
|
ParticleSpray.cloud(targetMiddlePos, 2.0, 50),
|
||||||
ParticleSpray.burst(targetMiddlePos.add(dvec), 2.0, 100)
|
ParticleSpray.burst(targetMiddlePos.add(dvec), 2.0, 100)
|
||||||
|
|
Loading…
Reference in a new issue