mirror of
https://github.com/MartinKral/Slash-The-Hordes
synced 2024-12-26 03:38:58 +00:00
Diagonal launcher upgrade
This commit is contained in:
parent
6d90260ae8
commit
b8e66195fb
@ -2,6 +2,7 @@ export enum UpgradeType {
|
|||||||
WeaponLength,
|
WeaponLength,
|
||||||
WeaponDamage,
|
WeaponDamage,
|
||||||
HorizontalProjectile,
|
HorizontalProjectile,
|
||||||
|
DiagonalProjectile,
|
||||||
HaloProjectlie,
|
HaloProjectlie,
|
||||||
Regeneration
|
Regeneration
|
||||||
}
|
}
|
||||||
@ -10,5 +11,7 @@ export enum MetaUpgradeType {
|
|||||||
MaxHp,
|
MaxHp,
|
||||||
OverallDamage,
|
OverallDamage,
|
||||||
ProjectilePiercing,
|
ProjectilePiercing,
|
||||||
MovementSpeed
|
MovementSpeed,
|
||||||
|
XPGatherer,
|
||||||
|
GoldGatherer
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,7 @@ export class Upgrader {
|
|||||||
private player: Player,
|
private player: Player,
|
||||||
private horizontalProjectileLauncher: WaveProjectileLauncher,
|
private horizontalProjectileLauncher: WaveProjectileLauncher,
|
||||||
private haloProjectileLauncher: HaloProjectileLauncher,
|
private haloProjectileLauncher: HaloProjectileLauncher,
|
||||||
|
private diagonalProjectileLauncher: WaveProjectileLauncher,
|
||||||
settings: UpgradeSettings
|
settings: UpgradeSettings
|
||||||
) {
|
) {
|
||||||
this.setTypeMaps(UpgradeType.WeaponLength, this.upgradeWeaponLength.bind(this), settings.maxWeaponLengthUpgrades);
|
this.setTypeMaps(UpgradeType.WeaponLength, this.upgradeWeaponLength.bind(this), settings.maxWeaponLengthUpgrades);
|
||||||
@ -22,6 +23,7 @@ export class Upgrader {
|
|||||||
this.upgradeHorizontalProjectileLauncher.bind(this),
|
this.upgradeHorizontalProjectileLauncher.bind(this),
|
||||||
settings.maxHorizontalProjectileUpgrades
|
settings.maxHorizontalProjectileUpgrades
|
||||||
);
|
);
|
||||||
|
this.setTypeMaps(UpgradeType.DiagonalProjectile, this.upgradeDiagonalProjectileLauncher.bind(this), settings.maxDiagonalProjectileUpgrades);
|
||||||
this.setTypeMaps(UpgradeType.HaloProjectlie, this.upgradeHaloProjectileLauncher.bind(this), settings.maxHaloProjectileUpgrades);
|
this.setTypeMaps(UpgradeType.HaloProjectlie, this.upgradeHaloProjectileLauncher.bind(this), settings.maxHaloProjectileUpgrades);
|
||||||
this.setTypeMaps(UpgradeType.Regeneration, this.upgradeRegeneration.bind(this), settings.maxRegenerationUpgrades);
|
this.setTypeMaps(UpgradeType.Regeneration, this.upgradeRegeneration.bind(this), settings.maxRegenerationUpgrades);
|
||||||
}
|
}
|
||||||
@ -64,6 +66,10 @@ export class Upgrader {
|
|||||||
this.horizontalProjectileLauncher.upgrade();
|
this.horizontalProjectileLauncher.upgrade();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private upgradeDiagonalProjectileLauncher(): void {
|
||||||
|
this.diagonalProjectileLauncher.upgrade();
|
||||||
|
}
|
||||||
|
|
||||||
private upgradeHaloProjectileLauncher(): void {
|
private upgradeHaloProjectileLauncher(): void {
|
||||||
this.haloProjectileLauncher.upgrade();
|
this.haloProjectileLauncher.upgrade();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user