Add Golem boss wave 10 with clear-arena requirement

This commit is contained in:
2026-08-19 10:51:05 +02:00
parent 5ceb37fdb4
commit 1a4cccda6e
2 changed files with 52 additions and 14 deletions
+32
View File
@@ -0,0 +1,32 @@
import * as THREE from 'three';
import type { Game } from './Game';
import { Brute } from './Brute';
export class Golem extends Brute {
constructor() {
super();
this.health = 800;
this.speed = 3;
this.xp = 80;
this.contactDps = 50;
this.contactRadius = 3.4;
this.guaranteedDrop = true;
this.model.scale.setScalar(2.1);
// Crown
const crownMat = new THREE.MeshToonMaterial({ color: 0xffcc33 });
const crown = new THREE.Mesh(
new THREE.ConeGeometry(0.3, 0.4, 8, 1, true),
crownMat
);
crown.position.y = 2.25;
crown.castShadow = true;
this.registerFadeMesh(crown);
this.model.add(crown);
}
protected onDeath(_game: Game) {
this.beginFadeDeath();
}
}