SLEEVE: added storedCycles to getSleeve() (#279)

This commit is contained in:
zerbosh 2023-01-02 15:45:51 +01:00 committed by GitHub
parent d00ed1f4ee
commit 7d98c680e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

@ -162,6 +162,7 @@ export function NetscriptSleeve(): InternalAPI<Sleeve> {
shock: sl.shock, shock: sl.shock,
sync: sl.sync, sync: sl.sync,
memory: sl.memory, memory: sl.memory,
storedCycles: sl.storedCycles,
}; };
return data; return data;

@ -59,9 +59,14 @@ interface Player extends Person {
/** @public */ /** @public */
interface SleevePerson extends Person { interface SleevePerson extends Person {
/** Number 0-100 Experience earned and shared is multiplied with shock% before sync% */
shock: number; shock: number;
/** Number 1-100 Experience earned by this sleeve and shared with the player is multiplied with sync% after shock% */
sync: number; sync: number;
/** Number 1-100 initial Value of sync on BN start */
memory: number; memory: number;
/** Number of 200ms cycles which are stored as bonus time */
storedCycles: number;
} }
/** @public */ /** @public */
@ -3568,6 +3573,8 @@ export interface Sleeve {
* *
* Return a person object for this sleeve * Return a person object for this sleeve
* *
* storedCycles is the amount of Bonus Time in cycles, each translates to 200ms
*
* @param sleeveNumber - Index of the sleeve to retrieve information. * @param sleeveNumber - Index of the sleeve to retrieve information.
* @returns Object containing information about this sleeve. * @returns Object containing information about this sleeve.
*/ */