feat: 实装天气系统

This commit is contained in:
AncTe committed 2024-11-17 21:25:14 +08:00
1 parent e1d38ef81b
commit 597333adf7
7 files changed
+32

No files matched your search

+3
View File
@@ -21,6 +21,7 @@ import {
} from './towerBossProjectile';
import { IStateDamageable } from '@/game/state/interface';
import { HeroRenderer } from '@/core/render/preset/hero';
import { controller } from '@/module/weather';
Mota.require('var', 'loading').once('coreInit', () => {
const shader = new Shader();
@@ -427,6 +428,8 @@ export class TowerBoss extends BarrageBoss {
const skill5Release = this.skill5Time * this.skill5Interval;
const attack = this.attackTime * this.attackInterval;
controller.activate('rain', 6);
if (time > skill4Release) {
this.releaseSkill4();
this.skill4Time++;