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:
LJ
2024-02-23 13:58:22 -07:00
committed by GitHub
parent d00fad472e
commit f6871f0911
7 changed files with 69 additions and 9 deletions

View File

@@ -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