mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 14:28:36 +02:00
GANG: Clarify install behavior & add getInstallResult() (#1119)
New function returns post-install ascension ratios. * Add ascension penalty to Gang constants * Improve wording of Gang install message * Add GangMember#getInstallResults() * Update prestiging to use getInstallResults() * Add ns.gang.getInstallResults(memberName) * Update definitions * Add ram cost for ns.gang.getInstallResult() * Fix typo * More specific wording in documentation * Fix another typo * Run prettier * Rename getInstallResults to getPostInstallPoints * Update Prestige.ts * Update Gang.ts
This commit is contained in:
28
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
28
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@@ -961,6 +961,22 @@ interface GangMemberInfo {
|
||||
moneyGain: number;
|
||||
}
|
||||
|
||||
/** @public */
|
||||
interface GangMemberInstall {
|
||||
/** Factor by which the hacking ascension multiplier was decreased (newMult / oldMult) */
|
||||
hack: number;
|
||||
/** Factor by which the strength ascension multiplier was decreased (newMult / oldMult) */
|
||||
str: number;
|
||||
/** Factor by which the defense ascension multiplier was decreased (newMult / oldMult) */
|
||||
def: number;
|
||||
/** Factor by which the dexterity ascension multiplier was decreased (newMult / oldMult) */
|
||||
dex: number;
|
||||
/** Factor by which the agility ascension multiplier was decreased (newMult / oldMult) */
|
||||
agi: number;
|
||||
/** Factor by which the charisma ascension multiplier was decreased (newMult / oldMult) */
|
||||
cha: number;
|
||||
}
|
||||
|
||||
/** @public */
|
||||
interface GangMemberAscension {
|
||||
/** Amount of respect lost from ascending */
|
||||
@@ -3832,6 +3848,18 @@ export interface Gang {
|
||||
*/
|
||||
getAscensionResult(memberName: string): GangMemberAscension | undefined;
|
||||
|
||||
/**
|
||||
* Get the effect of an install on ascension multipliers without installing.
|
||||
* @remarks
|
||||
* RAM cost: 2 GB
|
||||
*
|
||||
* Get {@link GangMemberInstall} effects on ascension multipliers for a gang member after installing without performing the install.
|
||||
*
|
||||
* @param memberName - Name of member.
|
||||
* @returns Object with info about the install results on ascension multipliers, or undefined if ascension is not possible.
|
||||
*/
|
||||
getInstallResult(memberName: string): GangMemberInstall | undefined;
|
||||
|
||||
/**
|
||||
* Enable/Disable territory clashes.
|
||||
* @remarks
|
||||
|
||||
Reference in New Issue
Block a user