Add remaining help modals

This commit is contained in:
thepaperpilot 2023-05-14 14:33:47 -05:00
parent 84ecc634c4
commit c68c4ec5fc
3 changed files with 104 additions and 6 deletions

View file

@ -334,3 +334,89 @@ export function getPortalHelp() {
{ tabFamily } { tabFamily }
); );
} }
export function getBoosterHelp() {
return createModal(
"Booster",
jsx(() => (
<div>
<p>
You've created the Booster (⌛)! This machine let's you increase the rate of
time of planes! This affects its resource gain, gen treasures, and any other
effects of time.
</p>
<br />
<p>
Specify planes to boost by dragging their portals to the booster. You can only
select a single plane to start, but that can be increased using an action.
</p>
<br />
<p>
Initially the booster will double the rate of time, but that can be increased
using an action.
</p>
</div>
))
);
}
export function getUpgraderHelp() {
return createModal(
"Upgrader",
jsx(() => (
<div>
<p>
You've created the Upgrader (🤖)! This machine let's you automatically purchase
upgrades within planes (includes prestiges but not repeatables or dimensions)!
</p>
<br />
<p>
Specify planes to auto-purchase upgrades from by dragging their portals to the
booster. You can only select a single plane to start, but that can be increased
using an action.
</p>
</div>
))
);
}
export function getAutomatorHelp() {
return createModal(
"Automator",
jsx(() => (
<div>
<p>
You've created the Automator (🦾)! This machine let's you automatically purchase
repeatables and dimensions within planes!
</p>
<br />
<p>
Specify planes to auto-purchase repeatables and dimensions from by dragging
their portals to the booster. You can only select a single plane to start, but
that can be increased using an action.
</p>
</div>
))
);
}
export function getInvestmentsHelp() {
return createModal(
"Investments",
jsx(() => (
<div>
<p>
You've created the Investments machine (💱)! This machine let's you
automatically gain the resources from conversions without spending the plane's
primary resource!
</p>
<br />
<p>
Specify planes to gain converted resources from by dragging their portals to the
booster. You can only select a single plane to start, but that can be increased
using an action.
</p>
</div>
))
);
}

View file

@ -798,7 +798,8 @@ export const booster = {
} }
} }
}, },
togglePoweredAction togglePoweredAction,
showHelpAction("booster")
], ],
canAccept: canAcceptPortal, canAccept: canAcceptPortal,
onDrop: onDropPortal, onDrop: onDropPortal,
@ -834,7 +835,8 @@ export const upgrader = {
actions: [ actions: [
deselectAllAction, deselectAllAction,
getIncreaseConnectionsAction(x => x.add(4).pow_base(1e6)), getIncreaseConnectionsAction(x => x.add(4).pow_base(1e6)),
togglePoweredAction togglePoweredAction,
showHelpAction("upgrader")
], ],
canAccept: canAcceptPortal, canAccept: canAcceptPortal,
onDrop: onDropPortal, onDrop: onDropPortal,
@ -870,7 +872,8 @@ export const automator = {
actions: [ actions: [
deselectAllAction, deselectAllAction,
getIncreaseConnectionsAction(x => x.add(4).pow_base(1e6)), getIncreaseConnectionsAction(x => x.add(4).pow_base(1e6)),
togglePoweredAction togglePoweredAction,
showHelpAction("automator")
], ],
canAccept: canAcceptPortal, canAccept: canAcceptPortal,
onDrop: onDropPortal, onDrop: onDropPortal,
@ -906,7 +909,8 @@ export const investments = {
actions: [ actions: [
deselectAllAction, deselectAllAction,
getIncreaseConnectionsAction(x => x.add(3).pow_base(1e8)), getIncreaseConnectionsAction(x => x.add(3).pow_base(1e8)),
togglePoweredAction togglePoweredAction,
showHelpAction("investments")
], ],
canAccept: canAcceptPortal, canAccept: canAcceptPortal,
onDrop: onDropPortal, onDrop: onDropPortal,

View file

@ -59,12 +59,16 @@ import {
tools tools
} from "./data"; } from "./data";
import { import {
getAutomatorHelp,
getBoosterHelp,
getDowsingHelp, getDowsingHelp,
getEmpowererHelp, getEmpowererHelp,
getForgeHelp, getForgeHelp,
getInvestmentsHelp,
getMineHelp, getMineHelp,
getPortalHelp, getPortalHelp,
getQuarryHelp getQuarryHelp,
getUpgraderHelp
} from "./help"; } from "./help";
import "./main.css"; import "./main.css";
import { import {
@ -786,7 +790,11 @@ export const main = createLayer("main", function (this: BaseLayer) {
dowsing: getDowsingHelp(), dowsing: getDowsingHelp(),
quarry: getQuarryHelp(), quarry: getQuarryHelp(),
empowerer: getEmpowererHelp(), empowerer: getEmpowererHelp(),
portalGenerator: getPortalHelp() portalGenerator: getPortalHelp(),
booster: getBoosterHelp(),
upgrader: getUpgraderHelp(),
automator: getAutomatorHelp(),
investments: getInvestmentsHelp()
}; };
helpModals.mine.showModal[DefaultValue] = true; helpModals.mine.showModal[DefaultValue] = true;
helpModals.mine.showModal.value = true; helpModals.mine.showModal.value = true;