Skip to content

Commit

Permalink
chore: mention that a demonic partner is not a familiar
Browse files Browse the repository at this point in the history
  • Loading branch information
klikli-dev committed Jan 21, 2024
1 parent 81b63b4 commit 4d9cc1e
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 0 deletions.
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 @@ -163,6 +163,8 @@
"book.occultism.dictionary_of_spirits.familiar_rituals.demonic_partner.description2.title": "Demonic Partner",
"book.occultism.dictionary_of_spirits.familiar_rituals.demonic_partner.description3.text": "Demons, of course, deal in contracts, and what better contract than a marriage contract?\n",
"book.occultism.dictionary_of_spirits.familiar_rituals.demonic_partner.description3.title": "Demonic Partner",
"book.occultism.dictionary_of_spirits.familiar_rituals.demonic_partner.familiar.text": "The Demonic Partner Chapter is part of the Familiar Category of this book because of the similarities, however a Partner is obviously not a familiar.\n\\\n\\\nAs such, they also cannot be stored in a [](item://occultism:familiar_ring). You can, however, use a [](item://occultism:soul_gem) as for any other being.\n",
"book.occultism.dictionary_of_spirits.familiar_rituals.demonic_partner.familiar.title": "Not a Familiar",
"book.occultism.dictionary_of_spirits.familiar_rituals.demonic_partner.husband.title": "Demonic Husband",
"book.occultism.dictionary_of_spirits.familiar_rituals.demonic_partner.name": "Demonic Partner",
"book.occultism.dictionary_of_spirits.familiar_rituals.demonic_partner.wife.title": "Demonic Wife",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@
"title": "book.occultism.dictionary_of_spirits.familiar_rituals.demonic_partner.about.title",
"use_markdown_in_title": false
},
{
"type": "modonomicon:text",
"anchor": "",
"show_title_separator": true,
"text": "book.occultism.dictionary_of_spirits.familiar_rituals.demonic_partner.familiar.text",
"title": "book.occultism.dictionary_of_spirits.familiar_rituals.demonic_partner.familiar.title",
"use_markdown_in_title": false
},
{
"type": "modonomicon:entity",
"anchor": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"line_reversed": false
}
],
"show_when_any_parent_unlocked": false,
"x": 4,
"y": 1
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"line_reversed": false
}
],
"show_when_any_parent_unlocked": false,
"x": 4,
"y": -1
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import com.klikli_dev.modonomicon.api.datagen.book.page.BookEntityPageModel;
import com.klikli_dev.modonomicon.api.datagen.book.page.BookTextPageModel;
import com.klikli_dev.occultism.integration.modonomicon.pages.BookRitualRecipePageModel;
import com.klikli_dev.occultism.registry.OccultismItems;
import com.mojang.datafixers.util.Pair;

public class DemonicPartnerEntry extends EntryProvider {
Expand Down Expand Up @@ -68,6 +69,21 @@ protected void generatePages() {
Right-Click with a potion to get the effect for a significantly longer time.
""");

this.page("familiar", () -> BookTextPageModel.builder()
.withTitle(this.context().pageTitle())
.withText(this.context().pageText())
.build());
this.pageTitle("Not a Familiar");
this.pageText("""
The Demonic Partner Chapter is part of the Familiar Category of this book because of the similarities, however a Partner is obviously not a familiar.
\\
\\
As such, they also cannot be stored in a {0}. You can, however, use a {1} as for any other being.
""",
this.itemLink(OccultismItems.FAMILIAR_RING.get()),
this.itemLink(OccultismItems.SOUL_GEM_ITEM.get())
);

this.page("wife", () -> BookEntityPageModel.builder()
.withEntityId("occultism:demonic_wife")
.withEntityName(this.context().pageTitle())
Expand Down

0 comments on commit 4d9cc1e

Please sign in to comment.