API: Update type of Player.factions, GangGenInfo.faction and CorpMaterialConstantData.name (#2347)

This commit is contained in:
catloversg
2025-10-13 03:00:21 +07:00
committed by GitHub
parent d421d4fcf9
commit 950c21d734
7 changed files with 9 additions and 9 deletions

View File

@@ -166,7 +166,7 @@ number
</td><td>
string
[CorpMaterialName](./bitburner.corpmaterialname.md)
</td><td>

View File

@@ -9,5 +9,5 @@ Name of the material
**Signature:**
```typescript
name: string;
name: CorpMaterialName;
```

View File

@@ -9,5 +9,5 @@ Name of faction that the gang belongs to ("Slum Snakes", etc.)
**Signature:**
```typescript
faction: string;
faction: FactionName;
```

View File

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

View File

@@ -7,5 +7,5 @@
**Signature:**
```typescript
factions: string[];
factions: FactionName[];
```

View File

@@ -62,7 +62,7 @@ number
</td><td>
string\[\]
[FactionName](./bitburner.factionname.md)<!-- -->\[\]
</td><td>

View File

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