def room(): from autospawner.spawner import Spawner spawner = Spawner() shard = spawner.getShard() room = spawner.getRoom(shard) position = spawner.getPosition(room, shard) click.echo("%s %s %s,%s" % (shard, room, position['x'], position['y']))
def respawn(): from autospawner.spawner import Spawner spawner = Spawner() if not spawner.shouldSpawn(): click.echo('Not appropriate to spawn at this time') sys.exit(-1) shard = spawner.getShard() room = spawner.getRoom(shard) position = spawner.getPosition(room, shard) click.echo("%s %s %s,%s" % (shard, room, position['x'], position['y']))
def room(): from autospawner.spawner import Spawner spawner = Spawner() shard = spawner.getShard() room = spawner.getRoom(shard) if not room: click.echo('No suitable room') sys.exit(-1) position = spawner.getPosition(room, shard) click.echo("%s %s %s,%s" % (shard, room, position['x'], position['y']))