29 lines
721 B
JavaScript
29 lines
721 B
JavaScript
import { EProjectileEffectType, GdProjectileEffect } from "./index.js";
|
|
export class GdTower {
|
|
cost = 0;
|
|
projectileEffect = null;
|
|
projectileRange = 0;
|
|
projectileRate = 0;
|
|
projectileSize = 0;
|
|
aoeEffect = null;
|
|
aoeRange = 0;
|
|
aoeRate = 0;
|
|
static addTowers(gdRoot) {
|
|
gdRoot.towers.push(createTower0());
|
|
}
|
|
;
|
|
}
|
|
function createTower0() {
|
|
return {
|
|
...new GdTower(),
|
|
cost: 75,
|
|
projectileEffect: new GdProjectileEffect(EProjectileEffectType.Damage, 2, 10),
|
|
projectileRange: 2,
|
|
projectileRate: 5,
|
|
projectileSize: 0.2,
|
|
aoeEffect: null,
|
|
aoeRange: 0,
|
|
aoeRate: 0,
|
|
};
|
|
}
|
|
//# sourceMappingURL=GdTower.js.map
|