You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add one more available safe mode activation to a room controller. The creep has to be at adjacent square to the target room controller and have 1000 ghodium resource.
143
143
* @param target The target room controller.
144
144
* @returns Result Code: OK, ERR_NOT_OWNER, ERR_BUSY, ERR_NOT_ENOUGH_RESOURCES, ERR_INVALID_TARGET, ERR_NOT_IN_RANGE
* Change the price of an existing order. If `newPrice` is greater than old price, you will be charged `(newPrice-oldPrice)*remainingAmount*0.05` credits.
43
43
* @param orderId The order ID as provided in Game.market.orders
44
44
* @param newPrice The new order price.
45
45
* @returns Result Code: OK, ERR_NOT_OWNER, ERR_NOT_ENOUGH_RESOURCES, ERR_INVALID_ARGS
* Add more capacity to an existing order. It will affect `remainingAmount` and `totalAmount` properties. You will be charged `price*addAmount*0.05` credits.
83
87
* Extending the order doesn't update its expiration time.
84
88
* @param orderId The order ID as provided in Game.market.orders
85
89
* @param addAmount How much capacity to add. Cannot be a negative value.
86
90
* @returns One of the following codes: `OK`, `ERR_NOT_ENOUGH_RESOURCES`, `ERR_INVALID_ARGS`
Copy file name to clipboardexpand all lines: src/path-finder.ts
+1-1
Original file line number
Diff line number
Diff line change
@@ -130,7 +130,7 @@ interface CostMatrix {
130
130
* @param y Y position in the room.
131
131
* @param cost Cost of this position. Must be a whole number. A cost of 0 will use the terrain cost for that tile. A cost greater than or equal to 255 will be treated as unwalkable.
* Upgrade the creep, adding a new power ability to it or increasing the level of the existing power. You need one free Power Level in your account to perform this action.
Copy file name to clipboardexpand all lines: src/raw-memory.ts
+1-1
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ interface RawMemory {
43
43
* Request memory segments using the list of their IDs. Memory segments will become available on the next tick in RawMemory.segments object.
44
44
* @param ids An array of segment IDs. Each ID should be a number from 0 to 99. Maximum 10 segments can be active at the same time. Subsequent calls of setActiveSegments override previous ones.
0 commit comments