Task #7: four new shed weapons (Potato Cannon, Shurikens, Propane Torch, Alien Ray)

All four go in the main hand alongside the pitchfork and corn shooter, cooldown-based
with no ammo, every stat GameConfig-tunable: Potato Cannon is a slow heavy shot,
Shurikens a fast cheap throw, Propane Torch a sustained cone DoT while held (shares
the pitchfork's cone-hit test), and Alien Ray a fast powerful shot that stays hidden
in the shop until enough Alien Goop is collected. FarmProjectiles.fire() gained
optional speed/lifetime overrides (backward compatible) so each ranged weapon can fly
at its own pace. WeaponModels gained tinted placeholder pivots for the new weapons
(no new art), and the number-key switch loop and HUD panel layout were fixed to not
go out of bounds now that there are more main weapons than number keys.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Forrest 2026-10-05 15:39:56 -04:00
parent b43af8a680
commit b9dcd24b5d
9 changed files with 399 additions and 62 deletions

View file

@ -114,7 +114,8 @@ func _upgrades(r: GameTestRunner, sim: FarmSim, player: PlayerCharacter) -> void
var es := sim.enemies
var st := sim.structures
c.begin_day()
s.resources.shed = {"wood": 200, "scrap": 200, "straw": 200}
s.resources.shed = {"wood": 200, "scrap": 200, "straw": 200, "alien_goop": 200}
s.night_events["gathered_alien_goop"] = cfg.hidden_reveal_goop # so the Alien Ray (#7, hidden) buys below
var fence := st.place("fence", 8.0, -8.0, 0)
_settle(sim)
var before := {