use boxa() method instead of box() for arrays

This commit is contained in:
walterhiggins 2013-02-07 22:16:50 +00:00
parent ec45b50a60
commit b7790d1c1c

View file

@ -29,7 +29,11 @@ Drone.extend('fort', function(side, height)
.fwd(); .fwd();
turret.push('109:'+ Drone.PLAYER_STAIRS_FACING[this.dir]); turret.push('109:'+ Drone.PLAYER_STAIRS_FACING[this.dir]);
turret.push('109:'+ Drone.PLAYER_STAIRS_FACING[(this.dir+2)%4]); turret.push('109:'+ Drone.PLAYER_STAIRS_FACING[(this.dir+2)%4]);
this.box(turret,1,1,side-2).fwd(side-2).turn(); try{
this.boxa(turret,1,1,side-2).fwd(side-2).turn();
}catch(e){
self.sendMessage("ERROR: " + e.toString());
}
} }
// //
// build battlement's floor // build battlement's floor
@ -47,8 +51,10 @@ Drone.extend('fort', function(side, height)
// //
var torch = '50:' + Drone.PLAYER_TORCH_FACING[this.dir]; var torch = '50:' + Drone.PLAYER_TORCH_FACING[this.dir];
this.move('fort').right((side/2)-1).door2() // double doors this.move('fort').right((side/2)-1).door2() // double doors
.back().left().up().box(torch) // left torch .back().left().up()
.right(3).box(torch); // right torch .box(torch) // left torch
.right(3)
.box(torch); // right torch
// //
// add ladder up to battlements // add ladder up to battlements
// //