tasks: check off #18; drop stale Alien Ray projectile comments

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Forrest 2026-10-06 13:42:09 -04:00
parent 0012b8c098
commit fe308d2b72
3 changed files with 13 additions and 4 deletions

View file

@ -31,7 +31,7 @@ var _dx := PackedFloat32Array()
var _dz := PackedFloat32Array()
var _life := PackedFloat32Array()
## Per-shot speed (m/s): cfg.projectile_speed unless fire() was given its own (Task #7's Potato
## Cannon, Shurikens, and Alien Ray fly at their own speeds).
## Cannon and Shurikens fly at their own speeds).
var _speed := PackedFloat32Array()
var _damage := PackedInt32Array()
## The avatar slot that fired each shot (EnemySystem.attacker when it was fired; -1 for the
@ -81,8 +81,8 @@ func clear() -> void:
## origin -> muzzle segment is tested first, so a barrel poking through a wall resolves there
## instead of spawning the shot on the far side. Returns false if the shot was skipped.
## speed/lifetime (<= 0: cfg.projectile_speed / cfg.projectile_lifetime) let a weapon's shot fly at
## its own pace (Task #7: the Potato Cannon's slow heavy shot, Shurikens, and the Alien Ray's fast
## one), with every other caller unchanged.
## its own pace (Task #7: the Potato Cannon's slow heavy shot and Shurikens), with every other
## caller unchanged.
func fire(origin: Vector3, muzzle: Vector3, dir: Vector3, damage: int = 1, speed: float = -1.0, lifetime: float = -1.0) -> bool:
if active_count >= capacity:
exhausted += 1