2019-02-11 09:21:14 +01:00
|
|
|
/**
|
2019-03-27 09:36:14 +01:00
|
|
|
* Implements the purchasing of extra Duplicate Sleeves from The Covenant,
|
|
|
|
* as well as the purchasing of upgrades (memory)
|
2019-02-11 09:21:14 +01:00
|
|
|
*/
|
|
|
|
import { IPlayer } from "../IPlayer";
|
|
|
|
|
2019-03-27 09:36:14 +01:00
|
|
|
import { CovenantPurchasesRoot } from "./ui/CovenantPurchasesRoot";
|
|
|
|
import { createPopup,
|
|
|
|
removePopup } from "../../ui/React/createPopup";
|
2019-02-11 09:21:14 +01:00
|
|
|
|
2021-04-30 05:52:56 +02:00
|
|
|
export const MaxSleevesFromCovenant = 5;
|
|
|
|
export const BaseCostPerSleeve = 10e12;
|
|
|
|
export const PopupId = "covenant-sleeve-purchases-popup";
|
2019-02-11 09:21:14 +01:00
|
|
|
|
2019-03-27 09:36:14 +01:00
|
|
|
export function createSleevePurchasesFromCovenantPopup(p: IPlayer) {
|
|
|
|
const removePopupFn = removePopup.bind(null, PopupId);
|
|
|
|
createPopup(PopupId, CovenantPurchasesRoot, { p: p, closeFn: removePopupFn });
|
2019-02-11 09:21:14 +01:00
|
|
|
}
|