mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
API: Update type of Player.factions, GangGenInfo.faction and CorpMaterialConstantData.name (#2347)
This commit is contained in:
@@ -166,7 +166,7 @@ number
|
||||
|
||||
</td><td>
|
||||
|
||||
string
|
||||
[CorpMaterialName](./bitburner.corpmaterialname.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
@@ -9,5 +9,5 @@ Name of the material
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
name: string;
|
||||
name: CorpMaterialName;
|
||||
```
|
||||
|
||||
@@ -9,5 +9,5 @@ Name of faction that the gang belongs to ("Slum Snakes", etc.)
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
faction: string;
|
||||
faction: FactionName;
|
||||
```
|
||||
|
||||
@@ -64,7 +64,7 @@ Gang gives a discount on all equipment. This multiplier is applied to the equipm
|
||||
|
||||
</td><td>
|
||||
|
||||
string
|
||||
[FactionName](./bitburner.factionname.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
@@ -7,5 +7,5 @@
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
factions: string[];
|
||||
factions: FactionName[];
|
||||
```
|
||||
|
||||
@@ -62,7 +62,7 @@ number
|
||||
|
||||
</td><td>
|
||||
|
||||
string\[\]
|
||||
[FactionName](./bitburner.factionname.md)<!-- -->\[\]
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
6
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
6
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@@ -56,7 +56,7 @@ interface Player extends Person {
|
||||
numPeopleKilled: number;
|
||||
entropy: number;
|
||||
jobs: Partial<Record<CompanyName, JobName>>;
|
||||
factions: string[];
|
||||
factions: FactionName[];
|
||||
totalPlaytime: number;
|
||||
location: LocationName;
|
||||
karma: number;
|
||||
@@ -844,7 +844,7 @@ interface BladeburnerCurAction {
|
||||
*/
|
||||
interface GangGenInfo {
|
||||
/** Name of faction that the gang belongs to ("Slum Snakes", etc.) */
|
||||
faction: string;
|
||||
faction: FactionName;
|
||||
/** Indicating whether or not it's a hacking gang */
|
||||
isHacking: boolean;
|
||||
/** Money earned per game cycle */
|
||||
@@ -9919,7 +9919,7 @@ type CorpResearchName =
|
||||
*/
|
||||
interface CorpMaterialConstantData {
|
||||
/** Name of the material */
|
||||
name: string;
|
||||
name: CorpMaterialName;
|
||||
/** Size of the material */
|
||||
size: number;
|
||||
demandBase: number;
|
||||
|
||||
Reference in New Issue
Block a user