Skip to content

Commit 5c16bcd

Browse files
committed
refact: replace outdated constants
1 parent b2f5ab7 commit 5c16bcd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/source/Creep.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ ERR_INVALID_ARGS | <code>enable</code> argument is not a boolean value.
802802
{% api_method pickup 'target' A %}
803803

804804
```javascript
805-
const target = creep.pos.findClosestByRange(FIND_DROPPED_ENERGY);
805+
const target = creep.pos.findClosestByRange(FIND_DROPPED_RESOURCES);
806806
if(target) {
807807
if(creep.pickup(target) == ERR_NOT_IN_RANGE) {
808808
creep.moveTo(target);

api/source/PowerCreep.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ ERR_INVALID_ARGS | <code>enable</code> argument is not a boolean value.
484484
{% api_method pickup 'target' A %}
485485

486486
```javascript
487-
const target = creep.pos.findClosestByRange(FIND_DROPPED_ENERGY);
487+
const target = creep.pos.findClosestByRange(FIND_DROPPED_RESOURCES);
488488
if(target) {
489489
if(creep.pickup(target) == ERR_NOT_IN_RANGE) {
490490
creep.moveTo(target);

0 commit comments

Comments
 (0)