We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0cd099 commit 1893762Copy full SHA for 1893762
1 file changed
src/Entity/Boss/Summoner.ts
@@ -58,10 +58,6 @@ const SUMMONER_SIZE = 150;
58
* Class which represents the boss "Summoner"
59
*/
60
export default class Summoner extends AbstractBoss {
61
-
62
- /** Summoner spawners */
63
- private spawners: Barrel[] = [];
64
65
public constructor(game: GameServer) {
66
super(game);
67
@@ -71,8 +67,9 @@ export default class Summoner extends AbstractBoss {
71
this.physicsData.values.size = SUMMONER_SIZE * Math.SQRT1_2;
72
68
this.physicsData.values.sides = 4;
73
69
74
- for (let i = 0; i < 4; ++i) {
75
- this.spawners.push(new Barrel(this, {
70
+ const count = this.physicsData.values.sides;
+ for (let i = 0; i < count; ++i) {
+ this.barrels.push(new Barrel(this, {
76
...SummonerSpawnerDefinition,
77
angle: PI2 * ((i / 4))
78
}));
0 commit comments