From 4fecb6817071e88e5b519da062318da92577328a Mon Sep 17 00:00:00 2001
From: thepaperpilot
Date: Sun, 14 May 2023 14:02:23 -0500
Subject: [PATCH] Make influences appear as discovered
---
src/data/help.tsx | 159 +++++++++++++++++++++++++++++-----------------
1 file changed, 99 insertions(+), 60 deletions(-)
diff --git a/src/data/help.tsx b/src/data/help.tsx
index f939556..7e3efc6 100644
--- a/src/data/help.tsx
+++ b/src/data/help.tsx
@@ -4,6 +4,7 @@ import { createTab } from "features/tabs/tab";
import { createTabFamily } from "features/tabs/tabFamily";
import { Persistent, persistent } from "game/persistence";
import { renderJSX } from "util/vue";
+import { main } from "./projEntry";
export interface ModalData {
modal: JSXFunction;
@@ -217,66 +218,104 @@ export function getPortalHelp() {
influence will multiply the energy cost of creating the portal.
- Influences:
-
- -
- +resource: Can be connected to
- resources and will cause any treasures that reference resources
- (caches, gens, and resource mults) to have increased odds of picking
- a selected resource.
-
- -
- -resource: Can be connected to
- resources and will cause any treasures that reference resources
- (caches, gens, and resource mults) to have decreased odds of picking
- a selected resource.
-
- -
- +length: Cause the plane to have
- 1 extra treasure than it otherwise would have.
-
- -
- +caches: Causes treasures to
- have an increased chance to be caches.
-
- -
- +gens: Causes treasures to have
- an increased chance to be gens.
-
- -
- +resource mults: Causes
- treasures to have an increased chance to be resource mults.
-
- -
- +energy mults: Causes treasures
- to have an increased chance to be energy mults.
-
- -
- +influences: Causes treasures to
- have an increased chance to be influences.
-
- -
- +relic: Maximizes length and
- difficulty for this tier of plane, and makes the last treasure a
- relic (unique per tier of plane). Overrides any other
- difficulty-changing influences.
-
- -
- +difficulty: Causes the
- difficulty and rewards to be in the upper half of what's possible at
- this tier.
-
- -
- -difficulty: Causes the
- difficulty and rewards to be in the lower half of what's possible at
- this tier.
-
- -
- +rewards: Causes the quality of
- treasures to be 1 tier higher. Does not affect influences or relics
- treasures.
-
-
+ {Object.keys(main.influenceNodes.value).length > 0 ? (
+
+ Discovered influences:
+
+ {main.influenceNodes.value.increaseResources == null ? null : (
+ -
+ +resource: Can be
+ connected to resources and will cause any treasures that
+ reference resources (caches, gens, and resource mults)
+ to have increased odds of picking a selected resource.
+
+ )}
+ {main.influenceNodes.value.decreaseResources == null ? null : (
+ -
+ -resource: Can be
+ connected to resources and will cause any treasures that
+ reference resources (caches, gens, and resource mults)
+ to have decreased odds of picking a selected resource.
+
+ )}
+ {main.influenceNodes.value.increaseLength == null ? null : (
+ -
+ +length: Cause the
+ plane to have 1 extra treasure than it otherwise would
+ have.
+
+ )}
+ {main.influenceNodes.value.increaseCaches == null ? null : (
+ -
+ +caches: Causes
+ treasures to have an increased chance to be caches.
+
+ )}
+ {main.influenceNodes.value.increaseGens == null ? null : (
+ -
+ +gens: Causes
+ treasures to have an increased chance to be gens.
+
+ )}
+ {main.influenceNodes.value.increaseResourceMults ==
+ null ? null : (
+ -
+ +resource mults:
+ Causes treasures to have an increased chance to be
+ resource mults.
+
+ )}
+ {main.influenceNodes.value.increaseEnergyMults ==
+ null ? null : (
+ -
+ +energy mults:
+ Causes treasures to have an increased chance to be
+ energy mults.
+
+ )}
+ {main.influenceNodes.value.increaseInfluences == null ? null : (
+ -
+ +influences: Causes
+ treasures to have an increased chance to be influences.
+
+ )}
+ {main.influenceNodes.value.relic == null ? null : (
+ -
+ +relic: Maximizes
+ length and difficulty for this tier of plane, and makes
+ the last treasure a relic (unique per tier of plane).
+ Overrides any other difficulty-changing influences.
+
+ )}
+ {main.influenceNodes.value.increaseDiff == null ? null : (
+ -
+ +difficulty: Causes
+ the difficulty and rewards to be in the upper half of
+ what's possible at this tier.
+
+ )}
+ {main.influenceNodes.value.decreaseDiff == null ? null : (
+ -
+ -difficulty: Causes
+ the difficulty and rewards to be in the lower half of
+ what's possible at this tier.
+
+ )}
+ {main.influenceNodes.value.increaseRewards == null ? null : (
+ -
+ +rewards: Causes the
+ quality of treasures to be 1 tier higher. Does not
+ affect influences or relics treasures.
+
+ )}
+
+
+ ) : (
+
+ Once you discover influences, summaries will appear here describing
+ their effects.
+
+ )}
))
}))