Add quarry and empowerer help

This commit is contained in:
thepaperpilot 2023-05-14 12:46:59 -05:00
parent 586e124adc
commit 8e0111688d
3 changed files with 48 additions and 4 deletions

View file

@ -92,3 +92,43 @@ export function getDowsingHelp() {
)) ))
); );
} }
export function getQuarryHelp() {
return createModal(
"Quarry",
jsx(() => (
<div>
<p>
You've created the Quarry (⛏️)! This machine let's you gather specified
resources. Unlike the mine, this machine will always output the same resources.
However, rarer resources will take longer to gather.
</p>
<br />
<p>
Specify resources to gather by dragging them to the quarry. You can only select
a single resource to start, but that can be increased using an action.
</p>
</div>
))
);
}
export function getEmpowererHelp() {
return createModal(
"Tool Empowerer",
jsx(() => (
<div>
<p>
You've created the Tool Empowerer (🔌)! This machine let's you increase the
effect of specified passives. Experimenting with which passives to empower can
really help you progress!
</p>
<br />
<p>
Specify passives to empower by dragging them to the empowerer. You can only
select a single passive to start, but that can be increased using an action.
</p>
</div>
))
);
}

View file

@ -379,7 +379,8 @@ export const quarry = {
actions: [ actions: [
deselectAllAction, deselectAllAction,
getIncreaseConnectionsAction(x => x.add(2).pow_base(10000), 16), getIncreaseConnectionsAction(x => x.add(2).pow_base(10000), 16),
togglePoweredAction togglePoweredAction,
showHelpAction("quarry")
], ],
progress: node => progress: node =>
isPowered(node) isPowered(node)
@ -428,7 +429,8 @@ export const empowerer = {
actions: [ actions: [
deselectAllAction, deselectAllAction,
getIncreaseConnectionsAction(x => x.add(3).pow_base(1000), 24), getIncreaseConnectionsAction(x => x.add(3).pow_base(1000), 24),
togglePoweredAction togglePoweredAction,
showHelpAction("empowerer")
], ],
canAccept: canAcceptTool, canAccept: canAcceptTool,
onDrop: onDropTool, onDrop: onDropTool,

View file

@ -58,6 +58,7 @@ import {
resourceNames, resourceNames,
tools tools
} from "./data"; } from "./data";
import { getDowsingHelp, getEmpowererHelp, getForgeHelp, getMineHelp, getQuarryHelp } from "./help";
import "./main.css"; import "./main.css";
import { import {
automator, automator,
@ -78,7 +79,6 @@ import {
upgrader upgrader
} from "./nodeTypes"; } from "./nodeTypes";
import { GenericPlane, createPlane } from "./planes"; import { GenericPlane, createPlane } from "./planes";
import { getDowsingHelp, getForgeHelp, getMineHelp } from "./help";
const toast = useToast(); const toast = useToast();
@ -776,7 +776,9 @@ export const main = createLayer("main", function (this: BaseLayer) {
const helpModals = { const helpModals = {
mine: getMineHelp(), mine: getMineHelp(),
factory: getForgeHelp(), factory: getForgeHelp(),
dowsing: getDowsingHelp() dowsing: getDowsingHelp(),
quarry: getQuarryHelp(),
empowerer: getEmpowererHelp()
}; };
helpModals.mine.showModal[DefaultValue] = true; helpModals.mine.showModal[DefaultValue] = true;
helpModals.mine.showModal.value = true; helpModals.mine.showModal.value = true;