Skip to content

Commit b0cd099

Browse files
Remove useless array
1 parent 69c9602 commit b0cd099

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Entity/Boss/Defender.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@ const DEFENDER_SIZE = 150;
7878
* Class which represents the boss "Defender"
7979
*/
8080
export default class Defender extends AbstractBoss {
81-
/** Defender's trap launchers */
82-
private trappers: Barrel[] = [];
8381
/** See AbstractBoss.movementSpeed */
8482
public movementSpeed = 0.2;
8583

@@ -99,7 +97,7 @@ export default class Defender extends AbstractBoss {
9997
const offset = 60 / (DEFENDER_SIZE * Math.SQRT1_2);
10098
for (let i = 0; i < count; ++i) {
10199
// Add trap launcher
102-
this.trappers.push(new Barrel(this, {
100+
this.barrels.push(new Barrel(this, {
103101
...TrapperDefinition,
104102
angle: PI2 * ((i / count) + 1 / (count * 2))
105103
}));

0 commit comments

Comments
 (0)