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

@ -5,6 +5,10 @@
[resource]
script = ExtResource("1_cfg")
costs = {
"alien_ray": {
"alien_goop": 6,
"scrap": 10
},
"automated_defense": {
"scrap": 6,
"straw": 2,
@ -32,10 +36,19 @@ costs = {
"patch": {
"straw": 2
},
"potato_cannon": {
"scrap": 14,
"wood": 8
},
"pouch_upgrade": {
"straw": 8,
"wood": 10
},
"propane_torch": {
"scrap": 12,
"straw": 4,
"wood": 6
},
"pumpkin_bomb": {
"scrap": 6,
"straw": 12
@ -53,6 +66,10 @@ costs = {
"scrap": 6,
"wood": 20
},
"shurikens": {
"scrap": 6,
"straw": 4
},
"slowing_trap": {
"scrap": 3,
"wood": 1
@ -75,6 +92,13 @@ costs = {
}
}
upgrades = {
"alien_ray": {
"hidden": true,
"name": "Alien ray",
"shop": "shed",
"text": "A salvaged alien weapon: a fast, powerful beam",
"track": "Weapon"
},
"corn_shooter": {
"name": "Corn shooter",
"shop": "shed",
@ -96,6 +120,12 @@ upgrades = {
"text": "Turrets reach 30% farther",
"track": "Defenses"
},
"potato_cannon": {
"name": "Potato cannon",
"shop": "shed",
"text": "A slow heavy potato shot that hits hard from afar",
"track": "Weapon"
},
"pouch_upgrade": {
"add": 8,
"name": "Bigger pouch",
@ -103,6 +133,12 @@ upgrades = {
"text": "+8 pouch capacity (16 total)",
"track": "Scarecrow"
},
"propane_torch": {
"name": "Propane torch",
"shop": "shed",
"text": "A short-range jet of flame that burns everything in its cone while held",
"track": "Weapon"
},
"pumpkin_bomb": {
"name": "Pumpkin bombs",
"shop": "shed",
@ -131,6 +167,12 @@ upgrades = {
"text": "Fences and gates +50% health",
"track": "Defenses"
},
"shurikens": {
"name": "Shurikens",
"shop": "shed",
"text": "Fast, cheap throws for a quick hit",
"track": "Weapon"
},
"sprint": {
"name": "Sprint",
"text": "Sprint 80% faster for 4 s at a time, every 10 s",