Add "spent tt" currency to automator (#3455)

* Added "spent tt" currency to automator

* Add syntax highlight for new keyword

---------

Co-authored-by: Hirame1 <56225774+Hirame1@users.noreply.github.com>
This commit is contained in:
kajfik 2024-08-13 00:32:19 +02:00 committed by GitHub
parent aeaa7a358f
commit eb378f558f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 7 additions and 1 deletions

View File

@ -33,7 +33,7 @@ const AUTOMATOR_BLOCKS_COMPARISON_OPERATORS = ["<", ">", ">=", "<="];
const AUTOMATOR_BLOCKS_COMPARISON_CURRENCIES = [
"AM", "IP", "EP", "RM", "INFINITIES", "BANKED INFINITIES", "ETERNITIES", "REALITIES",
"PENDING IP", "PENDING EP", "PENDING TP", "PENDING RM", "PENDING GLYPH LEVEL",
"DT", "TP", "RG", "REP", "TT", "TOTAL TT", "TOTAL COMPLETIONS", "PENDING COMPLETIONS",
"DT", "TP", "RG", "REP", "TT", "TOTAL TT", "SPENT TT", "TOTAL COMPLETIONS", "PENDING COMPLETIONS",
"EC1 COMPLETIONS", "EC2 COMPLETIONS", "EC3 COMPLETIONS", "EC4 COMPLETIONS",
"EC5 COMPLETIONS", "EC6 COMPLETIONS", "EC7 COMPLETIONS", "EC8 COMPLETIONS",
"EC9 COMPLETIONS", "EC10 COMPLETIONS", "EC11 COMPLETIONS", "EC12 COMPLETIONS",

View File

@ -158,6 +158,7 @@ CodeMirror.defineSimpleMode("automato", {
{ regex: /x[\t ]+highest(\s|$)/ui, token: "variable-2" },
{ regex: /pending[\t ]+(completions|ip|ep|tp|rm|glyph[\t ]+level)(\s|$)/ui, token: "variable-2" },
{ regex: /total[\t ]+(completions|tt|space theorems)(\s|$)/ui, token: "variable-2" },
{ regex: /spent[\t ]+tt(\s|$)/ui, token: "variable-2" },
{ regex: /filter[ \t]+score/ui, token: "variable-2" },
{ regex: /ec(1[0-2]|[1-9])[\t ]+completions(\s|$)/ui, token: "variable-2" },
{ regex: /(am|ip|ep|all)(\s|$)/ui, token: "variable-2" },

View File

@ -159,6 +159,10 @@ createInCategory(AutomatorCurrency, "TotalTT", /total[ \t]+tt/i, {
$autocomplete: "total TT",
$getter: () => player.timestudy.theorem.plus(TimeTheorems.calculateTimeStudiesCost()),
});
createInCategory(AutomatorCurrency, "SpentTT", /spent[ \t]+tt/i, {
$autocomplete: "spent TT",
$getter: () => new Decimal(GameCache.currentStudyTree.value.spentTheorems[0]),
});
createInCategory(AutomatorCurrency, "TotalCompletions", /total[ \t]+completions/i, {
$autocomplete: "total completions",

View File

@ -538,6 +538,7 @@ export const automator = {
<b>rep</b> - Current Replicanti amount <br>
<b>tt</b> - Current Time Theorem amount <br>
<b>total tt</b> - TOTAL Time Theorems, includes all forms of generated TT and any spent on Studies <br>
<b>spent tt</b> - Time Theorems currently spent on all Time Studies <br>
<b>total completions</b> - Total completions of all Eternity Challenges <br>
<b>pending completions</b> - Total completions of current EC at Eternity <br>
<b>ec<u>X</u> completions</b> - Amount of EC completions for a certain EC (eg. "ec6 completions")<br>