Skip to content

Commit

Permalink
More stacky stacky
Browse files Browse the repository at this point in the history
  • Loading branch information
miyucomics committed Sep 7, 2024
1 parent 8e0ab8d commit b069fd1
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/miyucomics/hexical/registry/HexicalPatterns.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import at.petrak.hexcasting.api.spell.math.HexPattern
import at.petrak.hexcasting.api.utils.vecFromNBT
import at.petrak.hexcasting.common.blocks.akashic.BlockAkashicBookshelf
import at.petrak.hexcasting.common.casting.operators.selectors.OpGetEntitiesBy
import at.petrak.hexcasting.common.casting.operators.stack.OpTwiddling
import at.petrak.hexcasting.common.lib.hex.HexIotaTypes
import miyucomics.hexical.HexicalMain
import miyucomics.hexical.casting.iota.IdentifierIota
Expand Down Expand Up @@ -120,6 +121,8 @@ object HexicalPatterns {

register("displace", "qaqqqqeedaqqqa", HexDir.NORTH_EAST, OpDisplace())

register("swap_one_three", "ddwqaq", HexDir.NORTH_EAST, OpTwiddling(3, intArrayOf(2, 1, 0)))
register("swap_two_three", "aawede", HexDir.EAST, OpTwiddling(3, intArrayOf(1, 0, 2)))
register("theodolite", "wqaa", HexDir.EAST, OpGetEntityData { entity ->
val upPitch = (-entity.pitch + 90) * (Math.PI.toFloat() / 180)
val yaw = -entity.headYaw * (Math.PI.toFloat() / 180)
Expand Down
4 changes: 4 additions & 0 deletions src/main/resources/assets/hexical/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,10 @@
"hexical.page.entity_width.summary": "Similar to $(l:patterns/basics#hexcasting:get_entity_height)$(action)Stadiometer's Purification$() but pushes the width of an entity rather than its height.",
"hexcasting.spell.hexical:theodolite": "Theodolite's Purification",
"hexical.page.theodolite.summary": "Similar to $(l:patterns/basics#hexcasting:get_entity_look)$(action)Alidade's Purification$() but pushes the vector that points upwards from their head rather than the entity's facing vector.",
"hexcasting.spell.hexical:swap_one_three": "Reflecting Gambit",
"hexical.page.swap_one_three.summary": "Reflects the order of the top three iota, turning A, B, C into C, B, A. Essentially swaps the top and the third-from-the-top iota.",
"hexcasting.spell.hexical:swap_two_three": "Bubbling Gambit",
"hexical.page.swap_two_three.summary": "Causes the third-from-the-top iota to bubble up over the second-from-the-top iota, essentially swapping them.",
"hexcasting.spell.hexical:dup_many": "Dioscuri Gambit II",
"hexical.page.dup_many.summary": "Takes a number and duplicates that many elements of the stack while preserving order.",
"hexcasting.spell.hexical:similar": "Similarity Distillation",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,20 @@
"input": "entity",
"output": "vector",
"text": "hexical.page.theodolite.summary"
}, {
"type": "hexcasting:pattern",
"op_id": "hexical:swap_one_three",
"anchor": "hexical:swap_one_three",
"input": "any, any, any",
"output": "any, any, any",
"text": "hexical.page.swap_one_three.summary"
}, {
"type": "hexcasting:pattern",
"op_id": "hexical:swap_two_three",
"anchor": "hexical:swap_two_three",
"input": "any, any, any",
"output": "any, any, any",
"text": "hexical.page.swap_two_three.summary"
}, {
"type": "hexcasting:pattern",
"op_id": "hexical:dup_many",
Expand Down
7 changes: 7 additions & 0 deletions success.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Removing src/hexdoc_hexical/_export/generated/assets/
Removing src/hexdoc_hexical/_export/generated/data/
Removing src/hexdoc_hexical/_export/generated/hexical.hexdoc.json
Removing src/hexdoc_hexical/_export/generated/hexical.patterns.hexdoc.json



0 comments on commit b069fd1

Please sign in to comment.