Skip to content

Commit

Permalink
Fixed building 'Electro tower'
Browse files Browse the repository at this point in the history
  • Loading branch information
neki-dev committed Nov 6, 2023
1 parent 90a9d66 commit 3304c02
Show file tree
Hide file tree
Showing 12 changed files with 233 additions and 275 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.git
.vscode
.idea
node_modules/
dist/
Expand Down
4 changes: 2 additions & 2 deletions src/const/langs/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export const EN = {
BUILDING_DESCRIPTION_TOWER_FROZEN: 'Freezes enemies for some time',
BUILDING_NAME_TOWER_LAZER: 'Laser tower',
BUILDING_DESCRIPTION_TOWER_LAZER: 'Instant and continuous laser attack of enemies',
BUILDING_NAME_ELECTRO: 'Electro tower',
BUILDING_DESCRIPTION_ELECTRO: 'Mass electric shock',
BUILDING_NAME_TOWER_ELECTRO: 'Electro tower',
BUILDING_DESCRIPTION_TOWER_ELECTRO: 'Mass electric shock',
BUILDING_NAME_GENERATOR: 'Generator',
BUILDING_DESCRIPTION_GENERATOR: 'Generates resources for builds and upgrades',
BUILDING_NAME_AMMUNITION: 'Ammunition',
Expand Down
4 changes: 2 additions & 2 deletions src/const/langs/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export const ES = {
BUILDING_DESCRIPTION_TOWER_FROZEN: 'Congela a los enemigos durante algún tiempo',
BUILDING_NAME_TOWER_LAZER: 'Torre laser',
BUILDING_DESCRIPTION_TOWER_LAZER: 'Ataque de láser instantáneo y continuo de los enemigos',
BUILDING_NAME_ELECTRO: 'Torre electrica',
BUILDING_DESCRIPTION_ELECTRO: 'Ataque masivo de electricidad',
BUILDING_NAME_TOWER_ELECTRO: 'Torre electrica',
BUILDING_DESCRIPTION_TOWER_ELECTRO: 'Ataque masivo de electricidad',
BUILDING_NAME_GENERATOR: 'Generador',
BUILDING_DESCRIPTION_GENERATOR: 'Genera recursos para construcciones y mejoras',
BUILDING_NAME_AMMUNITION: 'Municion',
Expand Down
4 changes: 2 additions & 2 deletions src/const/langs/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export const FR = {
BUILDING_DESCRIPTION_TOWER_FROZEN: 'Gèle les ennemis pendant un certain temps',
BUILDING_NAME_TOWER_LAZER: 'Tour laser',
BUILDING_DESCRIPTION_TOWER_LAZER: 'Attaque au laser instantanée et continue des ennemis',
BUILDING_NAME_ELECTRO: 'Tour electrique',
BUILDING_DESCRIPTION_ELECTRO: 'Attaque électrique de masse',
BUILDING_NAME_TOWER_ELECTRO: 'Tour electrique',
BUILDING_DESCRIPTION_TOWER_ELECTRO: 'Attaque électrique de masse',
BUILDING_NAME_GENERATOR: 'Generateur',
BUILDING_DESCRIPTION_GENERATOR: 'Génère des ressources pour les constructions',
BUILDING_NAME_AMMUNITION: 'Munitions',
Expand Down
4 changes: 2 additions & 2 deletions src/const/langs/ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export const RU = {
BUILDING_DESCRIPTION_TOWER_FROZEN: 'Замедление врагов',
BUILDING_NAME_TOWER_LAZER: 'Лазерная башня',
BUILDING_DESCRIPTION_TOWER_LAZER: 'Моментальная лазерная атака врагов',
BUILDING_NAME_ELECTRO: 'Электро башня',
BUILDING_DESCRIPTION_ELECTRO: 'Массовая атака электричеством',
BUILDING_NAME_TOWER_ELECTRO: 'Электро башня',
BUILDING_DESCRIPTION_TOWER_ELECTRO: 'Массовая атака электричеством',
BUILDING_NAME_GENERATOR: 'Генератор',
BUILDING_DESCRIPTION_GENERATOR: 'Генерация ресурсов для построек',
BUILDING_NAME_AMMUNITION: 'Амуниция',
Expand Down
18 changes: 9 additions & 9 deletions src/const/world/difficulty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,15 +175,15 @@ export const DIFFICULTY = {
* Building: Tower: Electro
*/

BUILDING_ELECTRO_COST: 120, // Building cost
BUILDING_ELECTRO_HEALTH: 400, // Health
BUILDING_ELECTRO_ALLOW_BY_WAVE: 15, // Minimal wave for allow build
BUILDING_ELECTRO_RADIUS: 90, // Attack radius
BUILDING_ELECTRO_RADIUS_GROWTH: 0.15, // Radius growth by level (Linear)
BUILDING_ELECTRO_DELAY: 1500, // Pause between attacks
BUILDING_ELECTRO_DELAY_GROWTH: -0.1, // Pause growth by level (Linear)
BUILDING_ELECTRO_DAMAGE: 110, // Attack damage
BUILDING_ELECTRO_DAMAGE_GROWTH: 0.9, // Damage growth by level (Linear)
BUILDING_TOWER_ELECTRO_COST: 120, // Building cost
BUILDING_TOWER_ELECTRO_HEALTH: 400, // Health
BUILDING_TOWER_ELECTRO_ALLOW_BY_WAVE: 15, // Minimal wave for allow build
BUILDING_TOWER_ELECTRO_RADIUS: 90, // Attack radius
BUILDING_TOWER_ELECTRO_RADIUS_GROWTH: 0.15, // Radius growth by level (Linear)
BUILDING_TOWER_ELECTRO_DELAY: 1500, // Pause between attacks
BUILDING_TOWER_ELECTRO_DELAY_GROWTH: -0.1, // Pause growth by level (Linear)
BUILDING_TOWER_ELECTRO_DAMAGE: 110, // Attack damage
BUILDING_TOWER_ELECTRO_DAMAGE_GROWTH: 0.8, // Damage growth by level (Linear)

/**
* Building: Generator
Expand Down
4 changes: 2 additions & 2 deletions src/const/world/entities/buildings.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { BuildingAmmunition } from '~entity/building/variants/ammunition';
import { BuildingBooster } from '~entity/building/variants/booster';
import { BuildingElectro } from '~entity/building/variants/electro';
import { BuildingGenerator } from '~entity/building/variants/generator';
import { BuildingRadar } from '~entity/building/variants/radar';
import { BuildingTowerElectro } from '~entity/building/variants/tower/variants/electro';
import { BuildingTowerFire } from '~entity/building/variants/tower/variants/fire';
import { BuildingTowerFrozen } from '~entity/building/variants/tower/variants/frozen';
import { BuildingTowerLazer } from '~entity/building/variants/tower/variants/lazer';
Expand All @@ -14,7 +14,7 @@ export const BUILDINGS: Record<BuildingVariant, IBuildingFactory> = {
[BuildingVariant.TOWER_FROZEN]: BuildingTowerFrozen,
[BuildingVariant.TOWER_FIRE]: BuildingTowerFire,
[BuildingVariant.TOWER_LAZER]: BuildingTowerLazer,
[BuildingVariant.ELECTRO]: BuildingElectro,
[BuildingVariant.TOWER_ELECTRO]: BuildingTowerElectro,
[BuildingVariant.GENERATOR]: BuildingGenerator,
[BuildingVariant.AMMUNITION]: BuildingAmmunition,
[BuildingVariant.BOOSTER]: BuildingBooster,
Expand Down
220 changes: 0 additions & 220 deletions src/game/scenes/world/entities/building/variants/electro.ts

This file was deleted.

Loading

0 comments on commit 3304c02

Please sign in to comment.