mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-24 23:22:29 +01:00
33 lines
855 B
Markdown
33 lines
855 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [Singularity](./bitburner.singularity.md) > [travelToCity](./bitburner.singularity.traveltocity.md)
|
|
|
|
## Singularity.travelToCity() method
|
|
|
|
Travel to another city.
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
travelToCity(city: CityName | `${CityName}`): boolean;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| city | [CityName](./bitburner.cityname.md) \| \`${[CityName](./bitburner.cityname.md)<!-- -->}\` | City to travel to. |
|
|
|
|
**Returns:**
|
|
|
|
boolean
|
|
|
|
True if action is successful, false otherwise.
|
|
|
|
## Remarks
|
|
|
|
RAM cost: 2 GB \* 16/4/1
|
|
|
|
This function allows the player to travel to any city. The cost for using this function is the same as the cost for traveling through the Travel Agency.
|
|
|