Skip to content

Commit

Permalink
Started documentation of nephthys
Browse files Browse the repository at this point in the history
  • Loading branch information
miyucomics committed Feb 21, 2024
1 parent 3796c40 commit f96c8a4
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,11 @@ import at.petrak.hexcasting.api.spell.math.HexDir
import at.petrak.hexcasting.api.spell.math.HexPattern
import at.petrak.hexcasting.api.spell.mishaps.MishapNotEnoughArgs

object OpDiver : Action {
object OpNephthys : Action {
override fun operate(continuation: SpellContinuation, stack: MutableList<Iota>, ravenmind: Iota?, ctx: CastingContext): OperationResult {
if (stack.size < 2)
throw MishapNotEnoughArgs(2, stack.size)

// WHY IS THE STACK INDEXED LKE THIS?
// IT'S A STACK
// YOU KNOW, WHEN YOU STACK TWO THINGS ON TOP OF EACH OTHER
// 0 should be the fucking top!
// This cost me two hours of debugging
val instructions = stack.getList(stack.lastIndex - 1)
val diveAmount = stack.getPositiveInt(stack.lastIndex)
stack.removeLastOrNull()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ import at.petrak.hexcasting.api.PatternRegistry
import at.petrak.hexcasting.api.spell.Action
import at.petrak.hexcasting.api.spell.math.HexDir
import at.petrak.hexcasting.api.spell.math.HexPattern
import at.petrak.hexcasting.common.casting.operators.eval.OpEval
import miyucomics.hexical.Hexical
import miyucomics.hexical.casting.patterns.operators.eval.OpDiver
import miyucomics.hexical.casting.patterns.operators.eval.OpNephthys
import miyucomics.hexical.casting.patterns.spells.OpChorusBlink
import miyucomics.hexical.casting.patterns.spells.OpConjureBouncyBlock
import miyucomics.hexical.casting.patterns.spells.OpPing
Expand All @@ -18,7 +17,7 @@ object HexicalPatterns {
private var PATTERNS: MutableList<Triple<HexPattern, Identifier, Action>> = ArrayList()
private var PER_WORLD_PATTERNS: MutableList<Triple<HexPattern, Identifier, Action>> = ArrayList()

var DIVER_GAMBIT = register(HexPattern.fromAngles("deaqqdq", HexDir.SOUTH_EAST), "dive", OpDiver);
var NEPHTHYS_GAMBIT = register(HexPattern.fromAngles("deaqqdq", HexDir.SOUTH_EAST), "nephthys", OpNephthys);

var CHORUS_BLINK: HexPattern = register(HexPattern.fromAngles("aawqqqq", HexDir.SOUTH_EAST), "chorus_blink", OpChorusBlink())
var CONJURE_BOUNCY_BLOCK: HexPattern = register(HexPattern.fromAngles("dee", HexDir.NORTH_WEST), "conjure_bouncy_block", OpConjureBouncyBlock())
Expand Down
8 changes: 6 additions & 2 deletions common/src/main/resources/assets/hexical/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@
"pattern.hexical.surveil_sentinel": "Surveil Sentinel",
"pattern.hexical.ping": "Ping",

"hexical.category": "Hexomancy",
"hexical.category.desc": "I feel strangely more receptive of the ambient media around me. I can even feel it responding to certain tasks I perform, as if suggesting spells to me. Because I am essentially divining spells from the media, I shall call it hexomancy.",
"hexical.page.hexical_metaevals": "Hexical Metaevaluations",
"hexcasting.spell.hexical:nephthys": "Nephthys Gambit",
"hexical.page.nephthys": "Pops a pattern list and a number from the stack and dives down n iota to casts the pattern list. Useful for surgery-like operations. It's extremely versatile and I can mend almost any error in my stack using Bookkeeper's Gambit, pushing iota after a dive, and transforming surfaced iota. It was named after a goddess of mourning and rivers, lending to how it buries/dives down into the stack.",

"hexical.category.hexomancy": "Hexomancy",
"hexical.category.hexomancy.desc": "I feel strangely more receptive of the ambient media around me. I can even feel it responding to certain tasks I perform, as if suggesting spells to me. Because I am essentially divining spells from the media, I shall call it hexomancy.",

"hexcasting.spell.hexical:chorus_blink": "Chorus Blink",
"hexical.page.chorus_blink.1": "Between Blink, Greater Teleport, ender pearls, and chorus fruit, this spell serves a harmonious midpoint for safe, precise, and cheap teleportation.",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "hexical.category",
"name": "hexical.category.hexomancy",
"icon": "hexical:lamp",
"description": "hexical.category.desc"
"description": "hexical.category.hexomancy.desc"
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"anchor": "hexical:chorus_blink",
"input": "vec",
"output": "",
"hex_size": 4,
"text": "hexical.page.chorus_blink.1"
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"anchor": "hexical:conjure_bouncy_block",
"input": "vec",
"output": "",
"hex_size": 4,
"text": "hexical.page.conjure_bouncy_block.1"
},
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "hexical.page.hexical_metaevals",
"icon": "minecraft:ender_eye",
"category": "hexcasting:patterns",
"pages": [
{
"type": "hexcasting:pattern",
"op_id": "hexical:nephthys",
"anchor": "hexical:nephthys",
"input": "list of patterns, number",
"output": "varies",
"text": "hexical.page.nephthys"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"anchor": "hexical:ping",
"input": "vec",
"output": "",
"hex_size": 4,
"text": "hexical.page.ping.1"
},
{
Expand Down

0 comments on commit f96c8a4

Please sign in to comment.