re #291, nip
This commit is contained in:
parent
22fe434328
commit
399f8c5cad
2 changed files with 14 additions and 0 deletions
|
@ -105,6 +105,8 @@ public class RegisterPatterns {
|
|||
OpFisherman.INSTANCE);
|
||||
PatternRegistry.mapPattern(HexPattern.fromAngles("aada", HexDir.EAST), modLoc("fisherman/copy"),
|
||||
OpFishermanButItCopies.INSTANCE);
|
||||
PatternRegistry.mapPattern(HexPattern.fromAngles("wad", HexDir.EAST), modLoc("nip"),
|
||||
OpNip.INSTANCE);
|
||||
PatternRegistry.mapPattern(HexPattern.fromAngles("qaawdde", HexDir.SOUTH_EAST), modLoc("swizzle"),
|
||||
OpAlwinfyHasAscendedToABeingOfPureMath.INSTANCE);
|
||||
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
package at.petrak.hexcasting.common.casting.operators.stack
|
||||
|
||||
import at.petrak.hexcasting.api.spell.ConstMediaAction
|
||||
import at.petrak.hexcasting.api.spell.casting.CastingContext
|
||||
import at.petrak.hexcasting.api.spell.iota.Iota
|
||||
|
||||
object OpNip : ConstMediaAction {
|
||||
override val argc: Int
|
||||
get() = 2
|
||||
|
||||
override fun execute(args: List<Iota>, ctx: CastingContext): List<Iota> = listOf(args[1])
|
||||
}
|
Loading…
Reference in a new issue