Skip to content

Commit

Permalink
Implement thanatos' reflection (placeholder name for OpThanos) (#731)
Browse files Browse the repository at this point in the history
  • Loading branch information
object-Object authored Aug 23, 2024
2 parents b4aa319 + 2c24f31 commit f3f9d07
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,9 @@ public class HexActions {
public static final ActionRegistryEntry WRITE$LOCAL = make("write/local",
new ActionRegistryEntry(HexPattern.fromAngles("eqqwawqaaw", HexDir.NORTH_WEST), OpPushLocal.INSTANCE));

public static final ActionRegistryEntry THANATOS = make("thanatos",
new ActionRegistryEntry(HexPattern.fromAngles("qqaed", HexDir.SOUTH_EAST), OpThanos.INSTANCE));

// == Consts ==

public static final ActionRegistryEntry CONST$NULL = make("const/null",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,8 @@
"eval/cc": "Iris' Gambit",
for_each: "Thoth's Gambit",
halt: "Charon's Gambit",

thanatos: "Thanatos' Reflection",

"interop/": {
"gravity/": {
get: "Gravitational Purification",
Expand Down Expand Up @@ -1778,6 +1779,8 @@

"eval/cc.1": "Cast a pattern or list of patterns from the stack exactly like $(l:patterns/meta#hexcasting:eval)$(action)Hermes' Gambit/$, except that a unique \"Jump\" iota is pushed to the stack beforehand. ",
"eval/cc.2": "When the \"Jump\"-iota is executed, it'll skip the rest of the patterns and jump directly to the end of the pattern list.$(p)While this may seem redundant given $(l:patterns/meta#hexcasting:halt)$(action)Charon's Gambit/$ exists, this allows you to exit $(italic)nested/$ $(l:patterns/meta#hexcasting:eval)$(action)Hermes'/$ invocations in a controlled way, where Charon only allows you to exit one.$(p)The \"Jump\" iota will apparently stay on the stack even after execution is finished... better not think about the implications of that.",

"thanatos.1": "Adds the number of patterns a _Hex is still capable of evaluating to the stack. This is reduced by one for each pattern cast by the _Hex."
},

circle_patterns: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@
{
"type": "patchouli:text",
"text": "hexcasting.page.meta.halt.2"
},
{
"type": "hexcasting:pattern",
"op_id": "hexcasting:thanatos",
"anchor": "hexcasting:thanatos",
"output": "number",
"text": "hexcasting.page.meta.thanatos.1"
}
]
}

0 comments on commit f3f9d07

Please sign in to comment.