Make the main player object an alias, makes it easier to import

This commit is contained in:
Olivier Gagnon
2022-10-09 18:42:14 -04:00
parent 3c03ac4f18
commit cbb7f58231
197 changed files with 225 additions and 222 deletions
@@ -1,6 +1,6 @@
import { CONSTANTS } from "../../Constants";
import { Player } from "../../Player";
import { Player } from "@player";
import { Multipliers } from "../Multipliers";
export const calculateEntropy = (stacks = 1): Multipliers => {
@@ -1,6 +1,6 @@
import { StaticAugmentations } from "../../Augmentation/StaticAugmentations";
import { GraftableAugmentation } from "./GraftableAugmentation";
import { Player } from "../../Player";
import { Player } from "@player";
export const getGraftingAvailableAugs = (): string[] => {
const augs: string[] = [];
@@ -15,7 +15,7 @@ import { Router } from "../../../ui/GameRoot";
import { ConfirmationModal } from "../../../ui/React/ConfirmationModal";
import { Money } from "../../../ui/React/Money";
import { convertTimeMsToTimeElapsedString, formatNumber } from "../../../utils/StringHelperFunctions";
import { Player } from "../../../Player";
import { Player } from "@player";
import { GraftableAugmentation } from "../GraftableAugmentation";
import { calculateGraftingTimeWithBonus, getGraftingAvailableAugs } from "../GraftingHelpers";
+1 -1
View File
@@ -1,7 +1,7 @@
import { Person } from "./Person";
import { calculateSkill } from "./formulas/skill";
import { BitNodeMultipliers } from "../BitNode/BitNodeMultipliers";
import { Player } from "../Player";
import { Player } from "@player";
import { ITaskTracker } from "./ITaskTracker";
export function gainHackingExp(this: Person, exp: number): void {
+1 -1
View File
@@ -7,7 +7,7 @@
* Sleeves are unlocked in BitNode-10.
*/
import { Player } from "../../Player";
import { Player } from "@player";
import { Person } from "../Person";
import { Augmentation } from "../../Augmentation/Augmentation";
+1 -1
View File
@@ -1,7 +1,7 @@
import { FactionNames } from "../../Faction/data/FactionNames";
import { Sleeve } from "./Sleeve";
import { Player } from "../../Player";
import { Player } from "@player";
import { Augmentation } from "../../Augmentation/Augmentation";
import { StaticAugmentations } from "../../Augmentation/StaticAugmentations";
@@ -1,4 +1,4 @@
import { Player } from "../../../Player";
import { Player } from "@player";
import { Generic_fromJSON, Generic_toJSON, IReviverValue, Reviver } from "../../../utils/JSONReviver";
import { Sleeve } from "../Sleeve";
import { applySleeveGains, Work, WorkType } from "./Work";
@@ -1,4 +1,4 @@
import { Player } from "../../../Player";
import { Player } from "@player";
import { Generic_fromJSON, Generic_toJSON, IReviverValue, Reviver } from "../../../utils/JSONReviver";
import { Sleeve } from "../Sleeve";
import { applySleeveGains, Work, WorkType } from "./Work";
@@ -1,4 +1,4 @@
import { Player } from "../../../Player";
import { Player } from "@player";
import { Generic_fromJSON, Generic_toJSON, IReviverValue, Reviver } from "../../../utils/JSONReviver";
import { Sleeve } from "../Sleeve";
import { applySleeveGains, Work, WorkType } from "./Work";
@@ -1,4 +1,4 @@
import { Player } from "../../../Player";
import { Player } from "@player";
import { Generic_fromJSON, Generic_toJSON, IReviverValue, Reviver } from "../../../utils/JSONReviver";
import { Sleeve } from "../Sleeve";
import { Work, WorkType } from "./Work";
@@ -1,4 +1,4 @@
import { Player } from "../../../Player";
import { Player } from "@player";
import { Generic_fromJSON, Generic_toJSON, IReviverValue, Reviver } from "../../../utils/JSONReviver";
import { Work, WorkType } from "./Work";
@@ -1,4 +1,4 @@
import { Player } from "../../../Player";
import { Player } from "@player";
import { Generic_fromJSON, Generic_toJSON, IReviverValue, Reviver } from "../../../utils/JSONReviver";
import { Sleeve } from "../Sleeve";
import { Work, WorkType } from "./Work";
+1 -1
View File
@@ -1,4 +1,4 @@
import { Player } from "../../../Player";
import { Player } from "@player";
import { IReviverValue } from "../../../utils/JSONReviver";
import { Sleeve } from "../Sleeve";
import { applyWorkStats, applyWorkStatsExp, scaleWorkStats, WorkStats } from "../../../Work/WorkStats";
@@ -11,7 +11,7 @@ import { BaseCostPerSleeve, MaxSleevesFromCovenant } from "../SleeveCovenantPurc
import { Money } from "../../../ui/React/Money";
import { Modal } from "../../../ui/React/Modal";
import { Player } from "../../../Player";
import { Player } from "@player";
import { dialogBoxCreate } from "../../../ui/React/DialogBox";
import Typography from "@mui/material/Typography";
@@ -5,7 +5,7 @@
import React, { useState } from "react";
import { Sleeve } from "../Sleeve";
import { Player } from "../../../Player";
import { Player } from "@player";
import { numeralWrapper } from "../../../ui/numeralFormat";
import { Money } from "../../../ui/React/Money";
@@ -1,7 +1,7 @@
import { Container, Typography, Paper } from "@mui/material";
import React, { useEffect, useState } from "react";
import { PurchasableAugmentations } from "../../../Augmentation/ui/PurchasableAugmentations";
import { Player } from "../../../Player";
import { Player } from "@player";
import { Modal } from "../../../ui/React/Modal";
import { Sleeve } from "../Sleeve";
+1 -1
View File
@@ -2,7 +2,7 @@ import { Box, Button, Paper, Tooltip, Typography } from "@mui/material";
import React, { useState } from "react";
import { FactionWorkType } from "../../../Work/data/FactionWorkType";
import { CONSTANTS } from "../../../Constants";
import { Player } from "../../../Player";
import { Player } from "@player";
import { numeralWrapper } from "../../../ui/numeralFormat";
import { ProgressBar } from "../../../ui/React/Progress";
import { Sleeve } from "../Sleeve";
+1 -1
View File
@@ -2,7 +2,7 @@ import React, { useState, useEffect } from "react";
import { Box, Typography, Button, Container } from "@mui/material";
import { Player } from "../../../Player";
import { Player } from "@player";
import { SleeveElem } from "./SleeveElem";
import { FAQModal } from "./FAQModal";
+1 -1
View File
@@ -1,6 +1,6 @@
import React, { useState } from "react";
import { Sleeve } from "../Sleeve";
import { Player } from "../../../Player";
import { Player } from "@player";
import { Crimes } from "../../../Crime/Crimes";
import { LocationName } from "../../../Locations/data/LocationNames";
import { CityName } from "../../../Locations/data/CityNames";
+1 -1
View File
@@ -6,7 +6,7 @@ import { WorldMap } from "../../../ui/React/WorldMap";
import { CityName } from "../../../Locations/data/CityNames";
import { Settings } from "../../../Settings/Settings";
import { dialogBoxCreate } from "../../../ui/React/DialogBox";
import { Player } from "../../../Player";
import { Player } from "@player";
import { Modal } from "../../../ui/React/Modal";
import Typography from "@mui/material/Typography";
import Button from "@mui/material/Button";