mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-20 21:25:47 +01:00
SLEEVE: added storedCycles to getSleeve() (#279)
This commit is contained in:
parent
d00ed1f4ee
commit
7d98c680e5
@ -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;
|
||||||
|
7
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
7
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -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.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user