mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-11 02:03:58 +01:00
commit
638e0e8a13
14
dist/bitburner.d.ts
vendored
14
dist/bitburner.d.ts
vendored
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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)",
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
26
markdown/bitburner.gangformulas.ascensionmultiplier.md
Normal file
26
markdown/bitburner.gangformulas.ascensionmultiplier.md
Normal file
@ -0,0 +1,26 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [GangFormulas](./bitburner.gangformulas.md) > [ascensionMultiplier](./bitburner.gangformulas.ascensionmultiplier.md)
|
||||
|
||||
## GangFormulas.ascensionMultiplier() method
|
||||
|
||||
Calculate ascension mult.
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
ascensionMultiplier(points: number): number;
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| points | number | Amount of ascension points. |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
number
|
||||
|
||||
The calculated ascension mult.
|
||||
|
26
markdown/bitburner.gangformulas.ascensionpointsgain.md
Normal file
26
markdown/bitburner.gangformulas.ascensionpointsgain.md
Normal file
@ -0,0 +1,26 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [GangFormulas](./bitburner.gangformulas.md) > [ascensionPointsGain](./bitburner.gangformulas.ascensionpointsgain.md)
|
||||
|
||||
## GangFormulas.ascensionPointsGain() method
|
||||
|
||||
Calculate ascension point gain.
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
ascensionPointsGain(exp: number): number;
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| exp | number | Experience point before ascension. |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
number
|
||||
|
||||
The calculated ascension point gain.
|
||||
|
@ -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. |
|
||||
|
@ -376,7 +376,8 @@ export function NetscriptFunctions(workerScript: WorkerScript): NS {
|
||||
Player.scriptProdSinceLastAug += moneyGained;
|
||||
workerScript.scriptRef.recordHack(server.hostname, moneyGained, threads);
|
||||
Player.gainHackingExp(expGainedOnSuccess);
|
||||
if (manual) Player.gainIntelligenceExp(expGainedOnSuccess / CONSTANTS.IntelligenceTerminalHackBaseExpGain);
|
||||
if (manual)
|
||||
Player.gainIntelligenceExp(expGainedOnSuccess / (threads * CONSTANTS.IntelligenceTerminalHackBaseExpGain));
|
||||
workerScript.scriptRef.onlineExpGained += expGainedOnSuccess;
|
||||
workerScript.log(
|
||||
"hack",
|
||||
|
Loading…
Reference in New Issue
Block a user