Skip to content

Commit

Permalink
feat: add ritual automation page to dictionary of spirits
Browse files Browse the repository at this point in the history
  • Loading branch information
klikli-dev committed Jun 9, 2024
1 parent 71b9c99 commit 067bf21
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/generated/resources/assets/occultism/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,8 @@
"book.occultism.dictionary_of_spirits.getting_started.familiar_rituals.more.text": "To find more about Familiars, see the [Familiar Rituals](category://familiar_rituals) Category.\n",
"book.occultism.dictionary_of_spirits.getting_started.familiar_rituals.more.title": "More Information",
"book.occultism.dictionary_of_spirits.getting_started.familiar_rituals.name": "Familiar Rituals",
"book.occultism.dictionary_of_spirits.getting_started.first_ritual.automation.text": "Instead of right-clicking the golden sacrificial bowl with the final ingredient, you can also use a Hopper or any type of pipe to insert the item into the bowl. The ritual will start automatically.\\\nNote that any rituals that summon tamed animals or familiars will summon them untamed instead.\n",
"book.occultism.dictionary_of_spirits.getting_started.first_ritual.automation.title": "Automatic Rituals",
"book.occultism.dictionary_of_spirits.getting_started.first_ritual.bowl_placement.text": "Possible locations for the sacrificial bowls.\n",
"book.occultism.dictionary_of_spirits.getting_started.first_ritual.bowl_text.text": "Next, place *at least* 4 [Sacrificial Bowls](item://occultism:sacrificial_bowl) close to the pentacle.\n\\\n\\\nThey must be placed **anywhere** within 8 blocks of the central [](item://occultism:golden_sacrificial_bowl). **The exact location does not matter.**\n",
"book.occultism.dictionary_of_spirits.getting_started.first_ritual.bowl_text.title": "Sacrificial Bowls",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,17 @@
"text": "book.occultism.dictionary_of_spirits.getting_started.first_ritual.start_ritual.text",
"title": "book.occultism.dictionary_of_spirits.getting_started.first_ritual.start_ritual.title",
"use_markdown_in_title": false
},
{
"type": "modonomicon:text",
"anchor": "",
"condition": {
"type": "modonomicon:none"
},
"show_title_separator": true,
"text": "book.occultism.dictionary_of_spirits.getting_started.first_ritual.automation.text",
"title": "book.occultism.dictionary_of_spirits.getting_started.first_ritual.automation.title",
"use_markdown_in_title": false
}
],
"parents": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1287,6 +1287,17 @@ Now it is time to place the ingredients you see on the next page in the (regular
Now all that remains is to drop appropriate ores near the crusher and wait for it to turn it into dust.
""".formatted(COLOR_PURPLE));

this.context().page("automation");
var automationText = BookTextPageModel.create()
.withTitle(this.context().pageTitle())
.withText(this.context().pageText());
this.lang.add(this.context().pageTitle(), "Automatic Rituals");
this.lang.add(this.context().pageText(),
"""
Instead of right-clicking the golden sacrificial bowl with the final ingredient, you can also use a Hopper or any type of pipe to insert the item into the bowl. The ritual will start automatically.\\
Note that any rituals that summon tamed animals or familiars will summon them untamed instead.
""".formatted(COLOR_PURPLE));


return BookEntryModel.create(this.modLoc(this.context().categoryId() + "/" + this.context().entryId()), this.context().entryName())
.withDescription(this.context().entryDescription())
Expand All @@ -1300,7 +1311,8 @@ Now it is time to place the ingredients you see on the next page in the (regular
ritualText,
ritualRecipe,
pentacleLinkHint,
startRitualText
startRitualText,
automationText
);
}

Expand Down

0 comments on commit 067bf21

Please sign in to comment.