diff --git a/dist/bitburner.d.ts b/dist/bitburner.d.ts index fccca669b..483ebf0d4 100644 --- a/dist/bitburner.d.ts +++ b/dist/bitburner.d.ts @@ -1361,6 +1361,20 @@ export declare interface GangFormulas { * @returns The calculated money gain. */ moneyGain(gang: GangGenInfo, member: GangMemberInfo, task: GangTaskStats): number; + + /** + * Calculate ascension point gain. + * @param exp - Experience point before ascension. + * @returns The calculated ascension point gain. + */ + ascensionPointsGain(exp: number): number; + + /** + * Calculate ascension mult. + * @param points - Amount of ascension points. + * @returns The calculated ascension mult. + */ + ascensionMultiplier(points: number): number; } /** diff --git a/input/bitburner.api.json b/input/bitburner.api.json index 8868f657c..a508c9761 100644 --- a/input/bitburner.api.json +++ b/input/bitburner.api.json @@ -8573,6 +8573,94 @@ "releaseTag": "Public", "name": "GangFormulas", "members": [ + { + "kind": "MethodSignature", + "canonicalReference": "bitburner!GangFormulas#ascensionMultiplier:member(1)", + "docComment": "/**\n * Calculate ascension mult.\n *\n * @param points - Amount of ascension points.\n *\n * @returns The calculated ascension mult.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ascensionMultiplier(points: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isOptional": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "points", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "ascensionMultiplier" + }, + { + "kind": "MethodSignature", + "canonicalReference": "bitburner!GangFormulas#ascensionPointsGain:member(1)", + "docComment": "/**\n * Calculate ascension point gain.\n *\n * @param exp - Experience point before ascension.\n *\n * @returns The calculated ascension point gain.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ascensionPointsGain(exp: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isOptional": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "exp", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "ascensionPointsGain" + }, { "kind": "MethodSignature", "canonicalReference": "bitburner!GangFormulas#moneyGain:member(1)", diff --git a/markdown/bitburner.gangformulas.ascensionmultiplier.md b/markdown/bitburner.gangformulas.ascensionmultiplier.md new file mode 100644 index 000000000..b654ddf26 --- /dev/null +++ b/markdown/bitburner.gangformulas.ascensionmultiplier.md @@ -0,0 +1,26 @@ + + +[Home](./index.md) > [bitburner](./bitburner.md) > [GangFormulas](./bitburner.gangformulas.md) > [ascensionMultiplier](./bitburner.gangformulas.ascensionmultiplier.md) + +## GangFormulas.ascensionMultiplier() method + +Calculate ascension mult. + +Signature: + +```typescript +ascensionMultiplier(points: number): number; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| points | number | Amount of ascension points. | + +Returns: + +number + +The calculated ascension mult. + diff --git a/markdown/bitburner.gangformulas.ascensionpointsgain.md b/markdown/bitburner.gangformulas.ascensionpointsgain.md new file mode 100644 index 000000000..796be6b58 --- /dev/null +++ b/markdown/bitburner.gangformulas.ascensionpointsgain.md @@ -0,0 +1,26 @@ + + +[Home](./index.md) > [bitburner](./bitburner.md) > [GangFormulas](./bitburner.gangformulas.md) > [ascensionPointsGain](./bitburner.gangformulas.ascensionpointsgain.md) + +## GangFormulas.ascensionPointsGain() method + +Calculate ascension point gain. + +Signature: + +```typescript +ascensionPointsGain(exp: number): number; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| exp | number | Experience point before ascension. | + +Returns: + +number + +The calculated ascension point gain. + diff --git a/markdown/bitburner.gangformulas.md b/markdown/bitburner.gangformulas.md index 76544524a..eea043ad0 100644 --- a/markdown/bitburner.gangformulas.md +++ b/markdown/bitburner.gangformulas.md @@ -16,6 +16,8 @@ interface GangFormulas | Method | Description | | --- | --- | +| [ascensionMultiplier(points)](./bitburner.gangformulas.ascensionmultiplier.md) | Calculate ascension mult. | +| [ascensionPointsGain(exp)](./bitburner.gangformulas.ascensionpointsgain.md) | Calculate ascension point gain. | | [moneyGain(gang, member, task)](./bitburner.gangformulas.moneygain.md) | Calculate money gain per tick. | | [respectGain(gang, member, task)](./bitburner.gangformulas.respectgain.md) | Calculate respect gain per tick. | | [wantedLevelGain(gang, member, task)](./bitburner.gangformulas.wantedlevelgain.md) | Calculate wanted gain per tick. |