mirror of
https://github.com/Sheldan/canvas.git
synced 2026-04-25 14:53:24 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user