Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/source/Creep.md
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ if(creep.room.controller) {

```

Claims a neutral controller under your control. Requires the <code>CLAIM</code> body part. The target has to be at adjacent square to the creep. You need to have the corresponding Global Control Level in order to claim a new room. If you don't have enough GCL, consider <a href="#reserveController">reserving</a> this room instead. <a href="/control.html#Global-Control-Level">Learn more</a>
Claims a neutral controller under your control. Requires the <code>CLAIM</code> body part. The target has to be at adjacent square to the creep. You need to have the corresponding Global Control Level in order to claim a new room. If you don't have enough GCL, consider <a href="#Creep.reserveController">reserving</a> this room instead. <a href="/control.html#Global-Control-Level">Learn more</a>

{% api_method_params %}
target : <a href="#StructureController">StructureController</a>
Expand Down
6 changes: 3 additions & 3 deletions api/source/Market.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ An array of the last 100 outgoing transactions from your terminals with the foll

An object with your active and inactive buy/sell orders on the market.
See
<a href="#getAllOrders"><code>getAllOrders</code></a>
<a href="#Game.market.getAllOrders"><code>getAllOrders</code></a>
for properties explanation.


Expand Down Expand Up @@ -275,7 +275,7 @@ for(let i=0; i<orders.length; i++) {
}
```

Execute a trade deal from your Terminal in <code>yourRoomName</code> to another player's Terminal using the specified buy/sell order. Your Terminal will be charged energy units of transfer cost regardless of the order resource type. You can use <a href="#calcTransactionCost"><code>Game.market.calcTransactionCost</code></a> method to estimate it. When multiple players try to execute the same deal, the one with the shortest distance takes precedence. You cannot execute more than 10 deals during one tick.
Execute a trade deal from your Terminal in <code>yourRoomName</code> to another player's Terminal using the specified buy/sell order. Your Terminal will be charged energy units of transfer cost regardless of the order resource type. You can use <a href="#Game.market.calcTransactionCost"><code>Game.market.calcTransactionCost</code></a> method to estimate it. When multiple players try to execute the same deal, the one with the shortest distance takes precedence. You cannot execute more than 10 deals during one tick.

{% api_method_params %}
orderId : string
Expand Down Expand Up @@ -449,5 +449,5 @@ The order ID.
### Return value

An object with the order info. See
<a href="#getAllOrders"><code>getAllOrders</code></a>
<a href="#Game.market.getAllOrders"><code>getAllOrders</code></a>
for properties explanation.
3 changes: 1 addition & 2 deletions api/source/PowerCreep.md
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ Move the creep using the specified predefined path.

{% api_method_params %}
path : array|string
A path value as returned from <a href="#Room.findPath"><code>Room.findPath</code></a>, <a href="#RoomPosition.findPathTo"><code>RoomPosition.findPathTo</code></a>, or <a href="#PathFinder.PathFinder-search"><code>PathFinder.search</code></a> methods. Both array form and serialized string form are accepted.
A path value as returned from <a href="#Room.findPath"><code>Room.findPath</code></a>, <a href="#RoomPosition.findPathTo"><code>RoomPosition.findPathTo</code></a>, or <a href="#PathFinder.search"><code>PathFinder.search</code></a> methods. Both array form and serialized string form are accepted.
{% endapi_method_params %}


Expand Down Expand Up @@ -802,4 +802,3 @@ ERR_INVALID_ARGS | The resourceType is not one of the <code>RESOURCE_*</code> co
{% endapi_return_codes %}