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

View file

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