Skip to content

Commit ae0adf6

Browse files
committed
add respawn functions, return result for place_spawn
1 parent a37e5c4 commit ae0adf6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

screepsapi/screepsapi.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,13 @@ def create_site(self, type, room, x, y, shard='shard0'):
197197
return self.post('game/create-construction', structureType=type, room=room, x=x, y=y, shard=shard)
198198

199199
def place_spawn(self, room, name, x, y, shard='shard0'):
200-
self.post('game/place-spawn', room=room, name=name, x=x, y=y, shard=shard)
201-
pass
200+
return self.post('game/place-spawn', room=room, name=name, x=x, y=y, shard=shard)
201+
202+
def respawn(self):
203+
return self.post('game/respawn')
202204

205+
def respawn_prohibited_rooms(self):
206+
return self.get('user/respawn_prohibited_rooms')
203207

204208
#### battle info methods
205209

0 commit comments

Comments
 (0)