survivors: madding death split mechanic to projectiles

adding generic method for coordinate splitting around points
refactored projectile stats and weapon stats
This commit is contained in:
Sheldan
2025-08-22 15:29:23 +02:00
parent 8ecfbf499f
commit e714fc35f6
6 changed files with 154 additions and 37 deletions

View File

@@ -123,7 +123,11 @@ export class ShootingEnemy extends BasicEnemy implements Shooting {
}
createProjectile() {
let stats = new ProjectileStats(0, 1, 5, 2)
let stats = new ProjectileStats()
.withPiercings(0)
.withSize(1)
.withDamage(5)
.withSpeed(2)
let projectile = StraightProjectile.createStraightProjectile(this.world, this._position, this.world.player.position, this, stats)
this.projectiles.push(projectile)
return projectile