File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ class ManyCrashersManager extends ShapeManager {
2929
3030 protected spawnShape ( ) : AbstractShape {
3131 const shape = new Crasher ( this . arena . game , Math . random ( ) < 0.3 ) ;
32- const loc = this . arena . findSpawnLocation ( false ) ;
32+ const loc = this . arena . findSpawnLocation ( ) ;
3333 shape . positionData . values . x = loc . x ;
3434 shape . positionData . values . y = loc . y ;
3535 return shape ;
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ export default class MazeArena extends ArenaEntity {
6262
6363 this . mazeGenerator . buildMaze ( ) ;
6464
65- this . allowBoss = false ;
65+ this . bossManager = null ; // Disables boss spawning
6666 }
6767
6868 public isValidSpawnLocation ( x : number , y : number ) : boolean {
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ export default class MothershipArena extends ArenaEntity {
7171 public spawnPlayer ( tank : TankBody , client : Client ) {
7272 if ( ! this . motherships . length && ! this . playerTeamMotMap . has ( client ) ) {
7373 const team = this . teams [ ~ ~ ( Math . random ( ) * this . teams . length ) ] ;
74- const { x, y } = this . findSpawnLocation ( ) ;
74+ const { x, y } = this . findPlayerSpawnLocation ( ) ;
7575
7676 tank . positionData . values . x = x ;
7777 tank . positionData . values . y = y ;
@@ -91,7 +91,7 @@ export default class MothershipArena extends ArenaEntity {
9191 tank . positionData . values . x = mothership . positionData . values . x ;
9292 tank . positionData . values . y = mothership . positionData . values . y ;
9393 } else {
94- const { x, y } = this . findSpawnLocation ( ) ;
94+ const { x, y } = this . findPlayerSpawnLocation ( ) ;
9595
9696 tank . positionData . values . x = x ;
9797 tank . positionData . values . y = y ;
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ export default class TagArena extends ArenaEntity {
108108 if ( ! this . playerTeamMap . has ( client ) ) {
109109 const team = this . getAlivePlayers ( ) . length <= MIN_PLAYERS ? this . teams [ this . teams . length - 1 ] :
110110 this . teams [ 0 ] ; // If there are not enough players to start the game, choose the team with least players. Otherwise choose the one with highest player count
111- const { x, y } = this . findSpawnLocation ( ) ;
111+ const { x, y } = this . findPlayerSpawnLocation ( ) ;
112112
113113 tank . positionData . values . x = x ;
114114 tank . positionData . values . y = y ;
You can’t perform that action at this time.
0 commit comments