Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
fix reducer starting at tier 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Gagnon committed Jun 9, 2024
1 parent 863be2a commit 58a4719
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Myrian/Helper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const NewReducer = (name: string, x: number, y: number) => {
y,
content: [],
maxContent: 2,
tier: 0,
tier: 1,
});
};

Expand Down
2 changes: 1 addition & 1 deletion src/Myrian/formulas/formulas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const moveSpeed = (level: number) => 1000 / (level + 10);
export const reduceSpeed = (level: number) => 50000 / (level + 10);
export const transferSpeed = (level: number) => 1000 / (level + 10);
export const installSpeed = (level: number) => 100000 / (level + 10);
export const isocketSpeed = (level: number) => 10000 / (level + 10);
export const isocketSpeed = (level: number) => 100000 / (level + 10);

const countDevices = (type: DeviceType) => myrian.devices.reduce((acc, d) => (d.type === type ? acc + 1 : acc), 0);

Expand Down
2 changes: 1 addition & 1 deletion src/ScriptEditor/NetscriptDefinitions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5287,7 +5287,7 @@ interface Myrian {
*/
DEBUG_GIVE_VULNS(n: number): void;
/**
* Completely reset the myrian kernel, for debug purposes
* Completely reset the myrian os, for debug purposes
* @remarks
* RAM cost: 0 GB
*/
Expand Down

0 comments on commit 58a4719

Please sign in to comment.