Grafting API RAM cost & doc update

This commit is contained in:
nickofolas 2022-03-27 15:33:31 -04:00
parent 9f6c827dee
commit 3b32811f5e
3 changed files with 15 additions and 4 deletions

@ -386,6 +386,12 @@ export const RamCosts: IMap<any> = {
getGameInfo: 0, getGameInfo: 0,
}, },
grafting: {
getAugmentationCraftPrice: 3.75,
getAugmentationCraftTime: 3.75,
craftAugmentation: 7.5,
},
heart: { heart: {
// Easter egg function // Easter egg function
break: 0, break: 0,

@ -225,6 +225,9 @@ async function parseOnlyRamCalculate(
} else if (ref in workerScript.env.vars.ui) { } else if (ref in workerScript.env.vars.ui) {
func = workerScript.env.vars.ui[ref]; func = workerScript.env.vars.ui[ref];
refDetail = `ui.${ref}`; refDetail = `ui.${ref}`;
} else if (ref in workerScript.env.vars.grafting) {
func = workerScript.env.vars.grafting[ref];
refDetail = `grafting.${ref}`;
} else { } else {
func = workerScript.env.vars[ref]; func = workerScript.env.vars[ref];
refDetail = `${ref}`; refDetail = `${ref}`;

@ -3724,7 +3724,7 @@ export interface Grafting {
/** /**
* Retrieve the crafting cost of an aug. * Retrieve the crafting cost of an aug.
* @remarks * @remarks
* RAM cost: TODO * RAM cost: 3.75 GB
* *
* @param augName - Name of the aug to check the price of. Must be an exact match. * @param augName - Name of the aug to check the price of. Must be an exact match.
* @returns The cost required to craft the named augmentation. * @returns The cost required to craft the named augmentation.
@ -3734,7 +3734,7 @@ export interface Grafting {
/** /**
* Retrieves the time required to craft an aug. * Retrieves the time required to craft an aug.
* @remarks * @remarks
* RAM cost: TODO * RAM cost: 3.75 GB
* *
* @param augName - Name of the aug to check the crafting time of. Must be an exact match. * @param augName - Name of the aug to check the crafting time of. Must be an exact match.
* @returns The time required, in millis, to craft the named augmentation. * @returns The time required, in millis, to craft the named augmentation.
@ -3744,11 +3744,13 @@ export interface Grafting {
/** /**
* Begins crafting the named aug. You must be in New Tokyo to use this. * Begins crafting the named aug. You must be in New Tokyo to use this.
* @remarks * @remarks
* RAM cost: TODO * RAM cost: 7.5 GB
* *
* @param augName - The name of the aug to begin crafting. Must be an exact match. * @param augName - The name of the aug to begin crafting. Must be an exact match.
* @param focus - Acquire player focus on this Augmentation crafting. Optional. Defaults to true. * @param focus - Acquire player focus on this Augmentation crafting. Optional. Defaults to true.
* @returns True if the aug successfully began crafting, false otherwise. * @returns True if the aug successfully began crafting, false otherwise (e.g. not enough money, or
* invalid Augmentation name provided).
* @throws Will error if called while you are not in New Tokyo.
*/ */
craftAugmentation(augName: string, focus?: boolean): boolean; craftAugmentation(augName: string, focus?: boolean): boolean;
} }