Skip to content

Commit

Permalink
add respawn functions, return result for place_spawn
Browse files Browse the repository at this point in the history
  • Loading branch information
tedivm committed Sep 4, 2017
1 parent a37e5c4 commit ae0adf6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions screepsapi/screepsapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,13 @@ def create_site(self, type, room, x, y, shard='shard0'):
return self.post('game/create-construction', structureType=type, room=room, x=x, y=y, shard=shard)

def place_spawn(self, room, name, x, y, shard='shard0'):
self.post('game/place-spawn', room=room, name=name, x=x, y=y, shard=shard)
pass
return self.post('game/place-spawn', room=room, name=name, x=x, y=y, shard=shard)

def respawn(self):
return self.post('game/respawn')

def respawn_prohibited_rooms(self):
return self.get('user/respawn_prohibited_rooms')

#### battle info methods

Expand Down

0 comments on commit ae0adf6

Please sign in to comment.