Skip to content

Commit 91891f9

Browse files
authored
Merge pull request #27 from valerian/Spawn.recycleCreep
added missing method Spawn.recycleCreep(target)
2 parents 3e7f28a + 0b462b4 commit 91891f9

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

dist/screeps.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1706,6 +1706,11 @@ declare class Spawn extends OwnedStructure {
17061706
* @param target The target creep object.
17071707
*/
17081708
renewCreep(target: Creep): number;
1709+
/**
1710+
* Kill the creep and drop up to 100% of resources spent on its spawning and boosting depending on remaining life time. The target should be at adjacent square.
1711+
* @param target The target creep object.
1712+
*/
1713+
recycleCreep(target: Creep): number;
17091714
/**
17101715
* Transfer the energy from the spawn to a creep.
17111716
* @param target The creep object which energy should be transferred to.

src/spawn.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ declare class Spawn extends OwnedStructure{
9797
* @param target The target creep object.
9898
*/
9999
renewCreep(target: Creep): number;
100+
/**
101+
* Kill the creep and drop up to 100% of resources spent on its spawning and boosting depending on remaining life time. The target should be at adjacent square.
102+
* @param target The target creep object.
103+
*/
104+
recycleCreep(target: Creep): number;
100105
/**
101106
* Transfer the energy from the spawn to a creep.
102107
* @param target The creep object which energy should be transferred to.

0 commit comments

Comments
 (0)