<>
+
+<>
<>
\ No newline at end of file
diff --git a/src/Meta/ImportDiscriminator.twee b/src/Meta/ImportDiscriminator.twee
new file mode 100644
index 000000000..49e61cb6c
--- /dev/null
+++ b/src/Meta/ImportDiscriminator.twee
@@ -0,0 +1,10 @@
+:: ImportDiscriminator
+<><><><><><>
\ No newline at end of file
diff --git a/src/Meta/ImportPatreon.twee b/src/Meta/ImportPatreon.twee
new file mode 100644
index 000000000..20bb98828
--- /dev/null
+++ b/src/Meta/ImportPatreon.twee
@@ -0,0 +1,11 @@
+:: ImportPatreon
+<><><>
+This is a [[Hero tier Patron|https://www.patreon.com/join/eigengrausgenerator?]] only feature.
+
+However, I'm not one for hard content walls; if you are not a Patreon supporter, you can access it by compiling from source, which is downloadable from our GitHub.
+
+Eigengrau's Generator runs on a "goal based content unlocking" system, where paywalls come down when we hit Patreon milestones. So, it's in your best interests to spread the word! Send the blog to Kotaku, Geek and Sundry, and any other blog, and tell them to cover it!
+
+If you are a Hero tier Patron, take a look at the [[membership page|https://www.patreon.com/eigengrausgenerator/membership]], and enter the code below:
+
+<> -- <>
diff --git a/src/NPCGeneration/NPCProfile/NPCProfile.twee b/src/NPCGeneration/NPCProfile/NPCProfile.twee
index b16c6efb6..7162a3056 100644
--- a/src/NPCGeneration/NPCProfile/NPCProfile.twee
+++ b/src/NPCGeneration/NPCProfile/NPCProfile.twee
@@ -7,7 +7,7 @@
\<><> $currentNPC.vocalPattern. <>
\<><> is <> <>
\When $currentNPC.heshe is relaxed, $currentNPC.heshe is $currentNPC.calmTrait. In moments of stress, $currentNPC.heshe becomes $currentNPC.stressTrait.
-\Religion-wise, $currentNPC.firstName is <> of <><>.
+\Religion-wise, $currentNPC.firstName is <> of <><>.
\
< 0>>Despite sexism against $currentNPC.himher, <>Perhaps due to sexism, <>$currentNPC.professionSuccess, with a background of being <>.
\<>
\<> belongs to the <> social class
diff --git a/src/Religion/EditPantheon.twee b/src/Religion/EditPantheon.twee
new file mode 100644
index 000000000..0234d4edc
--- /dev/null
+++ b/src/Religion/EditPantheon.twee
@@ -0,0 +1,44 @@
+:: EditPantheon [nobr]
+<>
+<><><><><><><><> --
+<><><>
+<>
+<>
+ --
+ <>
+<> -- <>
+
+<>
Join the Patreon at the Hero or higher tier [[here|https://www.patreon.com/join/eigengrausgenerator?]]
+
Find the code in the [[welcome note|https://www.patreon.com/eigengrausgenerator/membership]]
+
Enter it <><><>
+<>
+
Import custom pantheon as a valid {{{.json}}} file. You can access a template of the pantheon {{{.json}}} file online, or in our Discord server.
+
Select desired pantheon from the drop-down menu.
+
+
+<>Current Pantheon Data for <> loaded:
+<>
+
+<>
+Custom patheon name: <><>
+Custom Pantheon Data:
+<>
+
+<>none currently loaded<>
+<>
\ No newline at end of file
diff --git a/src/Religion/ImportPantheon.twee b/src/Religion/ImportPantheon.twee
deleted file mode 100644
index 26e656b93..000000000
--- a/src/Religion/ImportPantheon.twee
+++ /dev/null
@@ -1,22 +0,0 @@
-:: ImportPantheon
-<>
-\<> -- <>
-\<><><>
-\<> -- <><>
-1. Import custom pantheon as a valid {{{.json}}} file. You can access a template of the pantheon {{{.json}}} file online, or in our Discord server.
-2. Select desired pantheon from the drop-down menu.
-----
-<>Current Pantheon Data for <> loaded:
-\<>
-
-----<>
-\Custom patheon name: <><>
-Custom Pantheon Data:
-\<>
-
-<>none currently loaded<>
-<>
\ No newline at end of file
diff --git a/src/Settings/Breadcrumb.twee b/src/Settings/Breadcrumb.twee
index 4b64ab5cc..0bc22085f 100644
--- a/src/Settings/Breadcrumb.twee
+++ b/src/Settings/Breadcrumb.twee
@@ -1,5 +1,5 @@
:: Breadcrumb
-<><>
+<><>
<>
><>
\ No newline at end of file
+<><>
\ No newline at end of file
diff --git a/src/Settings/PassageHeader.twee b/src/Settings/PassageHeader.twee
index 370e5baa5..09987b4a0 100644
--- a/src/Settings/PassageHeader.twee
+++ b/src/Settings/PassageHeader.twee
@@ -1,6 +1,2 @@
:: PassageHeader
-<>
-
- <>
-
-<>
\ No newline at end of file
+<>
\ No newline at end of file
diff --git a/src/Settings/Setting.js b/src/Settings/Setting.js
index 283ad5915..0c1c5803c 100644
--- a/src/Settings/Setting.js
+++ b/src/Settings/Setting.js
@@ -11,7 +11,7 @@ $(document).on(':dialogopened', function () {
},
() => setup.openDialog({
header: 'Pantheon Setup',
- passage: 'ImportPantheon',
+ passage: 'EditPantheon',
rerender: true
})
)
@@ -26,9 +26,42 @@ $(document).on(':dialogopened', function () {
Dialog.close()
}
)
+ setup.addSettingButton({
+ target: 'tutorial',
+ name: 'patreon',
+ description: patreonContent(),
+ buttonDescription: buttonName()
+ },
+ () => {
+ if (isPatron()) {
+ return window.open('https://www.patreon.com/join/eigengrausgenerator?', 'Patreon')
+ } else {
+ setup.openDialog({
+ header: 'Patreon Content',
+ passage: 'ImportPatreon',
+ rerender: true
+ })
+ }
+ }
+ )
}
})
+function buttonName () {
+ if (isPatron()) return 'Visit Patreon page'
+ return 'Enter Code'
+}
+
+function isPatron () {
+ if (State.metadata.get('patreonPass') === State.variables._) return true
+ return false
+}
+
+function patreonContent () {
+ if (isPatron()) return 'Patreon content is unlocked.'
+ return 'Patreon content is not currently unlocked.'
+}
+
Setting.addHeader('Content Settings')
Setting.addToggle('darkMode', {
diff --git a/src/Settings/StoryStuff/StoryAuthor.twee b/src/Settings/StoryStuff/StoryAuthor.twee
index 293019038..2c26ae05e 100644
--- a/src/Settings/StoryStuff/StoryAuthor.twee
+++ b/src/Settings/StoryStuff/StoryAuthor.twee
@@ -2,14 +2,14 @@
Created by /u/rcgy
v[[setup.data.versionNumber|https://github.com/ryceg/Eigengrau-s-Essential-Establishment-Generator/blob/master/CHANGELOG.md]]
<><>
-
+
<>
/* , imgArgs: "style='width:100%'" */
-
+
<>
-
+
<>
@@ -17,5 +17,5 @@ Created by /u/rcgy
$(output).append(setup.data.badges.fun);
<>
-
+<>
<><>
\ No newline at end of file
diff --git a/src/Settings/StoryStuff/StoryMenu.twee b/src/Settings/StoryStuff/StoryMenu.twee
index c31f0fddc..5970583f4 100644
--- a/src/Settings/StoryStuff/StoryMenu.twee
+++ b/src/Settings/StoryStuff/StoryMenu.twee
@@ -3,7 +3,11 @@
<><><>
-<><><><><><><>
+<><><><><><><><>
[[Submit a bug or suggestion|https://github.com/ryceg/Eigengrau-s-Essential-Establishment-Generator/issues/new/choose]]
diff --git a/src/Settings/StoryStuff/StoryTest.twee b/src/Settings/StoryStuff/StoryTest.twee
new file mode 100644
index 000000000..0b4967ca3
--- /dev/null
+++ b/src/Settings/StoryStuff/StoryTest.twee
@@ -0,0 +1,2 @@
+:: Auth
+<><><><>Patreon features unlocked! Thank you :)<><>
\ No newline at end of file
diff --git a/src/Settings/Tippy/tooltips.ts b/src/Settings/Tippy/tooltips.ts
index 39934acd8..cc276e28e 100644
--- a/src/Settings/Tippy/tooltips.ts
+++ b/src/Settings/Tippy/tooltips.ts
@@ -106,7 +106,7 @@ export const createPercentageTooltip = (source: HTMLElement, target: string, per
const tip = $(`${content}`)
tippy(tip.get(0), {
content: source,
- interactive: false,
+ interactive: true,
allowHTML: true
})
const htmlTarget = Array.from(document.getElementsByClassName(target))
@@ -127,6 +127,17 @@ export function createReligionHTML (percentages: Record, target:
const list = lib.formatPercentile(array as [string, number][])
const html = lib.formatAsList(list)
createPercentageTooltip(html, target, percentages, lib.getPredominantReligion(State.variables.town, percentages).amountDescriptive)
+ const button = $('', {
+ text: 'Edit',
+ click () {
+ setup.openDialog({
+ header: 'Edit Pantheon',
+ passage: 'EditPantheon',
+ rerender: true
+ })
+ }
+ })
+ $(button).appendTo(html)
}
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
diff --git a/src/Start/BriefDescription.twee b/src/Start/BriefDescription.twee
index 8b92baf48..21f02936c 100644
--- a/src/Start/BriefDescription.twee
+++ b/src/Start/BriefDescription.twee
@@ -1,6 +1,6 @@
:: BriefDescription
The <> of $town.name
-\
$town.name is <> located in the $town.terrain $town.location, where the vegetation is $town.vegetation. $town.name grew around $town.origin, and is comprised <>
+\
$town.name is <> located <> the $town.terrain $town.location, where the vegetation is $town.vegetation. $town.name grew around $town.origin, and is comprised <>
<>. They are
<><> <>
<>
diff --git a/src/Start/CustomStart/BiomeGeneration.twee b/src/Start/CustomStart/BiomeGeneration.twee
index 84910bc57..dd415fbbc 100644
--- a/src/Start/CustomStart/BiomeGeneration.twee
+++ b/src/Start/CustomStart/BiomeGeneration.twee
@@ -10,7 +10,7 @@
<>
<>
<><>
-----
+
<>Attributes
@@ -28,7 +28,7 @@
Sexist (in favour of ) -- Total Egalitarianism:
<>
<>
-----
+
<>Racial Demographics
<><>$town.name is <> comprised <>.
Town Population: <>
diff --git a/src/Start/ReligionPercentageList.twee b/src/Start/ReligionPercentageList.twee
index e43b2a0c8..1f8b32f04 100644
--- a/src/Start/ReligionPercentageList.twee
+++ b/src/Start/ReligionPercentageList.twee
@@ -1,2 +1,2 @@
:: ReligionPercentageList
-<><><>
\ No newline at end of file
+<><><>
\ No newline at end of file
diff --git a/src/Start/Start.twee b/src/Start/Start.twee
index 3bf8a452c..1600843ed 100644
--- a/src/Start/Start.twee
+++ b/src/Start/Start.twee
@@ -6,4 +6,4 @@
<>
<>
<>
-<>
+<>
\ No newline at end of file
diff --git a/src/Start/StoryInit.twee b/src/Start/StoryInit.twee
index e19032f6c..d4c22870b 100644
--- a/src/Start/StoryInit.twee
+++ b/src/Start/StoryInit.twee
@@ -5,8 +5,7 @@
<>
<>
<
>
<>
-
+<><>
+<><><>
+<><><><>Patreon features are unlocked since you're running locally.<>
+<>
<