mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-11 10:13:52 +01:00
20 lines
634 B
TypeScript
20 lines
634 B
TypeScript
/**
|
|
* Implements the purchasing of extra Duplicate Sleeves from The Covenant,
|
|
* as well as the purchasing of upgrades (memory)
|
|
*/
|
|
import { IPlayer } from "../IPlayer";
|
|
|
|
import { CovenantPurchasesRoot } from "./ui/CovenantPurchasesRoot";
|
|
import { createPopup, removePopup } from "../../ui/React/createPopup";
|
|
|
|
export const MaxSleevesFromCovenant = 5;
|
|
export const BaseCostPerSleeve = 10e12;
|
|
export const PopupId = "covenant-sleeve-purchases-popup";
|
|
|
|
export function createSleevePurchasesFromCovenantPopup(p: IPlayer): void {
|
|
createPopup(PopupId, CovenantPurchasesRoot, {
|
|
p: p,
|
|
closeFn: () => removePopup(PopupId),
|
|
});
|
|
}
|