mirror of
https://github.com/thepaperpilot/Planar-Pioneers.git
synced 2024-11-21 16:13:54 +00:00
Add quarry and empowerer help
This commit is contained in:
parent
586e124adc
commit
8e0111688d
3 changed files with 48 additions and 4 deletions
|
@ -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>
|
||||
))
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue