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
Copy file name to clipboardExpand all lines: dist/screeps.d.ts
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1706,6 +1706,11 @@ declare class Spawn extends OwnedStructure {
1706
1706
* @param target The target creep object.
1707
1707
*/
1708
1708
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;
1709
1714
/**
1710
1715
* Transfer the energy from the spawn to a creep.
1711
1716
* @param target The creep object which energy should be transferred to.
Copy file name to clipboardExpand all lines: src/spawn.ts
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -97,6 +97,11 @@ declare class Spawn extends OwnedStructure{
97
97
* @param target The target creep object.
98
98
*/
99
99
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;
100
105
/**
101
106
* Transfer the energy from the spawn to a creep.
102
107
* @param target The creep object which energy should be transferred to.
0 commit comments